// アコーディオン(簡易) ///////////////////////////////////////////////////////////////////////////////////// $(function () { $(".or_accSwitch").click(function () { $(this).next(".or_accBox").slideToggle("slow"); $(this).children(".or_accAttri").toggleClass("or_accOpen"); var $container = $('.tu_grid');  $container.imagesLoaded(function(){ $container.masonry({ itemSelector: '.tu_grid li',  isFitWidth: false }); }); }); }); // レスポンシブ対応モーダル (ポップアップ単一)///////////////////////////////////////////////////////////////////////////////////// $(function(){ $('.or_modalOpen').click(function(){ var p = $(window).scrollTop(); var gatHref = $(this).attr('href'); var gatID = gatHref.replace(/#/g,''); $('.or_modal').css('top', p+'px'); $('.or_mask, .or_modal, .'+gatID).css({'display': 'block', 'opacity': '0'}); $('.or_mask').stop().animate({opacity: 1}, 500, function(){ $(' .or_modal, .'+gatID).stop().animate({opacity: 1}, 500); }); return false; }); $('.or_mask, .or_close').click(function(){ $('.or_mask, .or_modal, .or_modal .or_modalBox ').stop().animate({opacity: 0}, 300, function(){ $(this).css({'display': 'none', 'opacity': '0'}); }); }); }); // レスポンシブ対応モーダル (フェードスライダー)///////////////////////////////////////////////////////////////////////////////////// $(function(){ $('.or_mod_sliderOpen').click(function(){ var pms = $(window).scrollTop(); var gatHrefms = $(this).attr('href'); var gatIDms = gatHrefms.replace(/#/g,''); $('.or_mod_slider').css('top', pms+'px'); $('.or_mod_slider_mask, .or_mod_slider, .'+gatIDms).css({'display': 'block', 'opacity': '0'}); $('.or_mod_slider_mask').stop().animate({opacity: 1}, 500, function(){ $(' .or_mod_slider, .'+gatIDms).stop().animate({opacity: 1}, 500); }); //ch $('.or_msNext,.or_msPrev,.or_msPager').click(function () { var gatHrefN = $(this).attr('href'); var nextID = gatHrefN.replace(/#/g,''); $('.or_mod_slider .or_mod_sliderBox, .'+nextID).css({'display': 'none', 'opacity': '0'}); $('.or_mod_slider_mask').stop().animate({opacity: 1}, 500, function(){ $('.or_mod_slider, .'+nextID).css('display', 'block'); $('.or_mod_slider, .'+nextID).stop().animate({opacity: 1}, 500); }); return false; }); }); $('.or_mod_slider_mask, .or_mod_slider_close').click(function(){ $('.or_mod_slider_mask, .or_mod_slider, .or_mod_slider .or_mod_sliderBox ').stop().animate({opacity: 0}, 300, function(){ $(this).css({'display': 'none', 'opacity': '0'}); }); }); });