1/* 2============================ 3List 4============================ 5+ 6============================ 7[End Activation Code] 8============================ 9*/ 10 11 12(function ($) { 13"use strict"; 14 15 // ---------------------------------------------- 16 // ie problem fix : background-attachment:fixed 17 // ---------------------------------------------- 18 $(document).ready(function (){ 19 if(navigator.userAgent.match(/Trident\/7\./)) { // if IE 20 $('body').on("mousewheel", function () { 21 // remove default behavior 22 event.preventDefault(); 23 24 //scroll without smoothing 25 var wheelDelta = event.wheelDelta; 26 var currentScrollPosition = window.pageYOffset; 27 window.scrollTo(0, currentScrollPosition - wheelDelta); 28 }); 29 } 30 }); 31 32 33 // ---------------------------------------------- 34 // mvis fullpage 35 // ---------------------------------------------- 36 $(document).ready(function(){ 37 $(window).on('resize', function(){ 38 var $mvis = $('.slider_item'); 39 var mvisH = $mvis.height(); 40 var winH = $(window).height(); 41 $mvis.css('height',winH); 42 }); 43 $(window).trigger('resize'); 44 }); 45 46 // ---------------------------------------------- 47 // nav fixed 48 // ---------------------------------------------- 49 50 51 $(window).on('load',function(){ 52 var $header = $('#header'); 53 $(window).on('resize', function(){ 54 var hdTop = $header.removeClass('fixed').offset().top; 55 56 // console.log(hdTop); 57 $(window).on('scroll', function(){ 58 var hdH = $header.innerHeight(); 59 var scrTop = $(window).scrollTop(); 60 // console.log(scrTop,hdTop); 61 62 if (scrTop > hdTop) { 63 $header.addClass('fixed').next().css('margin-top',hdH); 64 } else { 65 $header.removeClass('fixed').next().css('margin-top',0); 66 } 67 }); 68 }); 69 $(window).trigger('resize'); 70 }); 71 72 73 74 // ---------------------------------------------- 75 // navi menu width 76 // ---------------------------------------------- 77 78 79 // ---------------------------------------------- 80 // background fixed scroll ie hack 81 // ---------------------------------------------- 82 83 // ---------------------------------------------- 84 // slick slider : mvis 85 // ---------------------------------------------- 86 87 $(document).ready(function(){ 88 $('.slider').slick({ 89 dots: true, 90 infinite: true, 91 autoplaySpeed: 1500, 92 speed: 1500, 93 fade: true, 94 autoplay: true, 95 cssEase: 'linear' 96 //accessibility: false 97 }); 98 }); 99 100 $(document).ready(function(){ 101 102 var scrUp = $('.scroll-up'); 103 var body = $("html, body"); 104 scrUp.click(function(){ 105 body.stop().animate({scrollTop:0}, 1000, 'swing'); 106 }) 107 108 }); 109 110 // ---------------------------------------------- 111 // ie bug fix 112 // ---------------------------------------------- 113 var agent = navigator.userAgent.toLowerCase(); 114 if ( (navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (agent.indexOf("msie") != -1)) { 115 // ieì¼ ê²½ì° 116 //$('html').css({'height':'100%','overflow':'hidden'}) 117 //$('body').css({'height':'100%','overflow':'auto'}) 118 119 }else{ 120 // ieê° ìë ê²½ì° 121 } 122 123 124})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.