$(function(){ // $('.mobilenav_title').click(function(){ if($(this).hasclass('on')){ $('.mobilenav_list').slideup(); $(this).removeclass('on'); $(this).parent().removeclass('on'); }else{ $(this).addclass('on'); $(this).parent().addclass('on'); $('.mobilenav_list').slidedown(); } }); // $('.t-pagetop').click(function(){ $("html,body").animate({ scrolltop: 0 }, 500); return false; }); // $(".navmenu_bg_left_mid ul:nth-child(1) li").hover(function () { //$(this).siblings().find('dl dd a').css('color','#999'); //$(this).siblings().find('a:nth-child(1)').css('color','#999'); $(this).siblings().addclass('on'); }, function () { $(this).siblings().removeclass('on'); //$(this).siblings().find('a:nth-child(1)').css('color','#002e94'); //$(this).siblings().find('dl dd a').css('color','#252525'); }); // // var ath = 95; $(".bottom-header li").hover(function () { if ($(this).find("dl").length > 0) { $(this).children("a.biga").addclass("bigaon"); $(this).children("dl").stop(false, false).animate({"opacity": "show" }, 800); }; }, function () { $(this).children("a.biga").removeclass("bigaon"); $(this).children("dl").stop(false, false).fadeout(250, function () { }) }); // h(); $(window).scroll(function(e){h();}) $(window).resize(function(){h();}) }); $(function(){ var loading = document.getelementsbyclassname("loading2")[0]; var h = $('.o-splashscreen_logo img.dflogo').height(); var bigger = setinterval(function(){ h--; if(h <0) h=$('.o-splashscreen_logo img.dflogo').height(); loading.style.height = h + "px"; }, 40); }); window.onload=function(){ $('.js-splashscreen').addclass('hide'); $('.js-page-transition-animation').addclass('init'); } function h(){ var scrolltop=$(document).scrolltop(); if (scrolltop>80) { $('body').addclass('bodyon'); // $('#header').addclass('headerfix'); $('.gotops').show(); } else { $('body').removeclass('bodyon'); // $('#header').removeclass('headerfix'); $('.gotops').hide(); $('#header').removeclass('headerfix'); $('#header').css('position','relative'); } }