1$(function() { 2 var page = $('body').attr('id'); 3 4 switch (page) { 5 6 case "general-page": 7 8 $(window).scroll(function() { 9 $('header').css("left", -$(window).scrollLeft()); 10 }); 11 12 $(function() { 13 var slider = $('.main-slide'); 14 15 slider.slick({ 16 autoplay: true, 17 autoplaySpeed: 3000, 18 speed: 1000, 19 arrows: true, 20 dots: true, 21 variableWidth: true, 22 centerMode: true, 23 slidesToShow: 1, 24 }); 25 26 var first_img = slider.find('[data-slick-index="0"]').find('.img').attr('style'); 27 $('.main-bg-in').attr('style',first_img); 28 29 slider.on('beforeChange', function(event, slick, currentSlide, nextSlide) { 30 var img = slider.find('[data-slick-index=' + nextSlide +']').find('.img').attr('style'); 31 $('.main-bg-in').attr('style',img) 32 }); 33 34 var num = 1; 35 slider.children('.slick-dots').find('li').each(function(){ 36 $(this).prepend('<div class="num-box"><p class="num">0' + num++ + '</p></div>'); 37 }); 38 39 }); 40 41 $('.sec-slide').each(function(){ 42 var slider = $(this); 43 var indicator = $(this).parents('section').find('.sec-slide-indicator'); 44 45 slider.slick({ 46 autoplay: true, 47 autoplaySpeed: 3000, 48 speed: 1000, 49 arrows: true, 50 dots: true, 51 appendArrows: indicator, 52 appendDots: indicator, 53 variableWidth: true, 54 slidesToShow: 1, 55 }); 56 57 }); 58 59 $(function(){ 60 $('a[href^="#"]').click(function() { 61 var headerHight = 0; 62 var speed = 400; 63 var href= $(this).attr("href"); 64 var target = $(href == "#" || href == "" ? 'html' : href); 65 var position = target.offset().top - headerHight; 66 $('body,html').animate({scrollTop:position}, speed, 'swing'); 67 return false; 68 }); 69 }); 70 71 break; 72 73 } 74});
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.