// javascript document $(function(){ var winwidth = $(window).width(); var winheight = $(window).height(); if(winwidth <992){ $('.header-custom').removeclass('container').addclass('container-fluid'); $('.mod-10>.bg').hide(); $('.mod-10>.img:nth-child(2n)').after('
'); } else if(winwidth>991){ $('.mod-10>.bg').hide(); $('.mod-10>.img:nth-child(4n)').after('
'); $('.mod-11 .item:nth-child(2n) .inner').each(function(){ $(this).addclass('col-md-offset-6'); }) } $(window).resize(function(){ var winwidth = $(window).width(); if(winwidth <992){ $('.header-custom').removeclass('container').addclass('container-fluid'); $('.mod-10>.bg').hide(); $('.mod-10>.img:nth-child(2n)').after('
'); } else if(winwidth>991){ $('.mod-10>.bg').hide(); $('.mod-10>.img:nth-child(4n)').after('
'); $('.mod-11 .item:nth-child(2n) .inner').each(function(){ $(this).addclass('col-md-offset-6'); }) } }) $('.mod-01 .box').hover(function(){ $(this).addclass('on'); $(this).find('img:first').hide(); $(this).find('img:last').show(); },function(){ $(this).removeclass('on'); $(this).find('img:last').hide(); $(this).find('img:first').show(); }) $('.mod-04 .item').hover(function(){ $(this).find('.bg1').stop().fadeout(); $(this).find('.bg2').stop().fadein(); },function(){ $(this).find('.bg2').stop().fadeout(); $(this).find('.bg1').stop().fadein(); }) $('.search-btn').click(function(){ $('.search-con').show(); }) $('.mod-09 .box').hover(function(){ $(this).find('.text').stop().fadein(); },function(){ $(this).find('.text').stop().fadeout(); }) $('.mod-14 .box .img').click(function(){ var windowtop = $(window).scrolltop(); $('.layer-bg').fadein(); $('.img-box').css({ top: windowtop+100 }).fadein(); }) $('.layer-bg,.close-img').click(function(){ $('.layer-bg').fadeout(); $('.img-box').fadeout(); }) $('.mod-18>div').hover(function(){ $(this).find('.text-1').stop().fadeout(); $(this).find('.text-2').stop().fadein(); },function(){ $(this).find('.text-2').stop().fadeout(); $(this).find('.text-1').stop().fadein(); }) $('.mod-20 .text .title').click(function(){ $(this).addclass('on').parent().siblings().find('.title').removeclass('on'); $(this).siblings('.content').stop().slidedown(); $(this).parent().siblings().children('.content').stop().slideup(); }) })