1var html = document.documentElement; // html element 2var path = ''; // location scripts and styles 3 4Modernizr.load([ 5 { // if not supported attribute placeholder - load fix script 6 test : Modernizr.input.placeholder, 7 nope : [ path + 'js/jplaceholder.js'], 8 callback : function() { 9 10 $('[placeholder]').jplaceholder(); 11 } 12 } 13]); 14 15$(function() { 16 17 $('.js-carousel_1').each(function () { 18 initCarousel1(this); 19 }); 20 21 if ($(window).width() < 768) { 22 initNav(); 23 } 24 25 26}); 27 28function initNav() { 29 var $nav = $('.nav'); 30 var $toogle = $nav.find('.toggle'); 31 var $list = $nav.find('.list'); 32 33 $toogle.click(function(event) { 34 event.preventDefault(); 35 $list.toggle(); 36 }); 37} 38 39function initCarousel1(obj) { 40 var $car = $(obj); 41 var $list = $car.find('.list'); 42 var $items = $car.find('.item'); 43 var $prev = $car.find('.prev'); 44 var $next = $car.find('.next'); 45 var i = 0; 46 var l = $items.length - 1; 47 var w = 259; 48 49 if ($(window).width() < 768) { 50 w = $car.width(); 51 $items.width(w); 52 w = w+19; 53 } 54 55 56 57 $prev.click(function(event) { 58 event.preventDefault(); 59 i>0?i--:i=l; 60 clearInterval(t); 61 $list.stop().animate({ 62 'marginLeft': '-' + i*w 63 },500); 64 }); 65 66 $next.click(function(event) { 67 event.preventDefault(); 68 i<l?i++:i=0; 69 clearInterval(t); 70 $list.stop().animate({ 71 'marginLeft': '-' + i*w 72 },500); 73 }); 74 75 var t = setInterval(function(){ 76 i<l?i++:i=0; 77 $list.stop().animate({ 78 'marginLeft': '-' + i*w 79 },500); 80 },5000); 81} 82 83 84 85 86
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.