$(function(){ var swiper = new Swiper('.topslide', { //effect: 'fade', loop:true, speed:1000, autoplay: { delay: 6000, disableOnInteraction: false, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, pagination: { el: '.swiper-pagination', clickable: true, }, }); }); $(window).on('load',function(){ }); $(window).on('resize',function () { }); $(window).on('orientationchange', function(){ }); $(window).on('scroll', function(){ }); /* function scrolldown(){ scl = $('body').scrollTop(); if(scl==0){scl = $('html').scrollTop();} if(scl > 100){ if(!$('#head .headwrap').hasClass('onn')){ $('#head .headwrap').addClass('onn'); } }else{ if($('#head .headwrap').hasClass('onn')){ $('#head .headwrap').removeClass('onn'); } } } */