var laptopWidth = 1366; var tabletWidth = 1024; var mobileWidth = 800; $(document).ready(function () { /* ************************ * Func : fullpage * fullpage.js , detectBrowser() ************************ */ if ($.exists('#fullpage')) { // if($(window).width() > 800){ var $fullPage = $("#fullpage"); var $fullPageSection = $fullPage.children(".section"); $fullPage.fullpage({ css3: true, fitToSection: false, anchors: ["first", "second", "third", "fourth", "fifth" , "footer"], navigation: true, scrollBar:false, scrollingSpeed:500, navigationPosition: 'right', responsiveWidth: mobileWidth, bigSectionsDestination: top, responsiveHeight : 600, sectionsColor: ['#fff', '#fff', '#fff', '#fff', '#fff', '#fff'], normalScrollElements: '.seminar_wrap,.proce_wrap', onLeave : function(origin, destination, direction){ // console.log(destination); if ( destination > 1) { // console.log('1'); // console.log(destination); $("#header").addClass("top-fixed"); }else { $("#header").removeClass("top-fixed"); } if ( destination > 9) { $("#header").hide(); }else { $("#header").fadeIn(); } } }); // }; }; });