1$(function(){ 2 3 $(window).resize(function(){ 4 }).triggerHandler('resize'); 5 6}); 7 8$(window).load(function() { 9 $('.flexslider').flexslider({ 10 animation: "fade", 11 directionNav: false 12 }); 13 animations(); 14 anchorNav(); 15 twenty_one_pop_up(); 16 toggle(); 17}); 18 19function twenty_one_pop_up() { 20 21 //$.cookie('twenty-one', 'no'); 22 23 if($.cookie('twenty-one') != 'yes') { 24 $('#twenty-one-pop-up').fancybox({ 25 modal: true, 26 }).trigger('click'); 27 } 28 29 $('#twenty-one-pop-up .content .buttons li a[href="#no"]').click(function() { 30 window.location.href = 'https://consumer.ftc.gov/features/we-dont-serve-teens'; 31 return false; 32 }); 33 34 $('#twenty-one-pop-up .content .buttons li a[href="#yes"]').click(function() { 35 $.cookie('twenty-one', 'yes'); 36 parent.$.fancybox.getInstance().close(); 37 return false; 38 }); 39 40} 41 42function animations() { 43 44 if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 45 if($(window).width() > 990) { 46 skrollr.init({ 47 forceHeight: false, 48 edgeStrategy: 'set' 49 }); 50 } 51 } 52 53 $('.animate').on('inview', function(event, isInView) { 54 if(isInView) { 55 $(this).addClass('in-view'); 56 } 57 }); 58 59 $('footer').on('inview', function(event, isInView) { 60 if(isInView) { 61 $(this).addClass('in-view'); 62 } else { 63 $(this).removeClass('in-view'); 64 } 65 }); 66 67 $('img.lazy').Lazy({ 68 afterLoad: function(element) { 69 $(element).closest('.image.lazy').addClass('loaded'); 70 } 71 }); 72 73 $('.cover').Lazy({ 74 afterLoad: function(element) { 75 $(element).addClass('loaded'); 76 } 77 }); 78} 79 80function anchorNav() { 81 $("ul.anchor-nav li a").click(function(e) { 82 console.log('clicked'); 83 e.preventDefault(); 84 var aid = $(this).attr("href"); 85 $('html,body').animate({scrollTop: (($(aid).offset().top))},'slow'); 86 }); 87} 88 89function toggle() { 90 $('a#toggle').click(function(e) { 91 e.preventDefault(); 92 $('body').toggleClass('open'); 93 }); 94 95 $('ul#nav li a').click(function(event){ 96 $('body').toggleClass('open'); 97 }); 98 99 $('html').click(function() { 100 $('body').removeClass('open'); 101 }); 102 103 $('ul#nav, a#toggle').click(function(event){ 104 event.stopPropagation(); 105 }); 106 107 $('html').on('touchstart', function(e) { 108 $('body').removeClass('open'); 109 }); 110 111 $('ul#nav, a#toggle').on('touchstart',function(e) { 112 e.stopPropagation(); 113 }); 114} 115 116function singleWork() { 117 $('.loop').owlCarousel({ 118 center: true, 119 items:3, 120 loop:true, 121 margin:50, 122 nav: true, 123 autoWidth:true, 124/* 125 autoplay : true, 126 slideTransition: 'linear', 127 autoplayTimeout : 5000, 128 autoplayHoverPause : false, 129 autoplaySpeed : 5000, 130*/ 131 responsive:{ 132 1400: { 133 margin:70, 134 }, 135 1680: { 136 margin:100, 137 }, 138 } 139 }); 140}
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.