1/*$(document).ready(function(){ 2 alert("cat banana"); 3 4 $('#nav-icon').click(function(){ 5 $(this).toggleClass('open'); 6 $(".navTray").toggleClass('open'); 7 $("header").toggleClass('open'); 8 $(".logoBox").toggleClass('closed'); 9 //setTimeout(easeMenu, 1); 10 easeMenu(); 11 }); 12 13 $('.searchToggle').click(function(){ 14 $("header").toggleClass('search'); 15 easeSearch(); 16 }); 17 18 $(window).scroll(function () { 19 var scrollTop = $(this).scrollTop(); 20 21 if ( $(".staticScrollWatch").length ) { 22 $('.background1, .logoBox.header').each(function() { 23 var topDistance = $(this).offset().top; 24 var top2Distance = $(".staticScrollWatch").offset().top; 25 var distanceAdjust = parseInt(top2Distance) - 100; 26 27 if ( distanceAdjust < scrollTop ) { 28 if ( $(".fixed").length ) { 29 //Do Nothing 30 } else { 31 $(".logoBox.header").addClass("fixed"); 32 console.log("fix added") 33 } 34 } 35 36 if ( distanceAdjust > scrollTop ) { 37 if ( $(".fixed").length ) { 38 $(".logoBox.header").removeClass("fixed"); 39 } else { 40 //Do Nothing 41 } 42 } 43 // staticScrollWatch 44 }); 45 } 46 47 if ($(".fixed").length) { 48 $('.scrollup').fadeIn(); 49 $("header").addClass("scrolledHeader"); 50 } else { 51 $('.scrollup').fadeOut(); 52 $("header").removeClass("scrolledHeader"); 53 } 54 }); 55 56 $('.scrollup').click(function () { 57 $("html, body").animate({ 58 scrollTop: 0 59 }, 600); 60 return false; 61 }); 62 63 if ($('.recentNewSliderSection').length){ 64 $('.recentNewSliderSection').owlCarousel({ 65 loop: true, 66 margin: 0, 67 nav: true, 68 autoplay: true, 69 autoplayHoverPause: true, 70 singleItem:true 71 }); 72 } 73 74});*/ 75 76//Countdown Script 77/* 78$(document).ready(function(){ 79 if ($('#countdown').length){ 80 // Set the date we're counting down to 81 var countDownDate = new Date("Jan 19, 2018 18:37:25").getTime(); 82 83 // Update the count down every 1 second 84 var x = setInterval(function() { 85 // Get todays date and time 86 var now = new Date().getTime(); 87 88 // Find the distance between now an the count down date 89 var distance = countDownDate - now; 90 91 // Time calculations for days, hours, minutes and seconds 92 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 93 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 94 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 95 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 96 var Ndays = ('0' + days).slice(-2); 97 var Nhours = ('0' + hours).slice(-2); 98 var Nmins = ('0' + minutes).slice(-2); 99 var Nsecs = ('0' + seconds).slice(-2); 100 101 // Display the result in the element with id="demo" 102 document.getElementById("countdown").innerHTML = 103 "<div class='cdDisplayBox'><span>" + Ndays + ":</span><span>Days</span></div><div class='cdDisplayBox'><span>" + Nhours + ":</span><span>Hours</span></div><div class='cdDisplayBox'><span>" + Nmins + ":</span><span>Minutes</span></div><div class='cdDisplayBox'><span>" + Nsecs + "</span><span>Seconds</span></div>"; 104 105 if ($('#demo').length){ 106 document.getElementById("demo").innerHTML = 107 "<div class='cdDisplayBox'><span>" + Ndays + ":</span><span>Days</span></div><div class='cdDisplayBox'><span>" + Nhours + "</span><span>Hrs</span></div><div class='cdDisplayBox'><span>" + Nmins + "</span><span>Mins</span></div><div class='cdDisplayBox'><span>" + Nsecs + "</span><span>Secs</span></div>"; 108 } 109 // If the count down is finished, write some text 110 if (distance < 0) { 111 clearInterval(x); 112 document.getElementById("countdown").innerHTML = "<h2>Launch will be starting soon.<br />Tune into the live feed below for more info</h2>"; 113 } 114 }, 1); 115 } 116}); 117*/ 118 119$(function() { 120 /* 121 -------------------------------------------------------------------------------- 122 Floating Labels 123 -------------------------------------------------------------------------------- 124 */ 125 126 $('input, select, textarea').bind('checkval',function() { 127 128 var floatLabel = $(this).parent('.float-field'); 129 130 if(this.value !== '') { 131 floatLabel.addClass('active'); 132 } else { 133 floatLabel.removeClass('active'); 134 } 135 136 }).on('change',function() { 137 138 $(this).trigger('checkval'); 139 140 }).on('keyup',function() { 141 142 $(this).trigger('checkval'); 143 144 }).on('focus',function() { 145 146 $(this).parent('.float-field').addClass('on'); 147 148 }).on('blur',function() { 149 150 $(this).parent('.float-field').removeClass('on'); 151 152 }).trigger('checkval'); 153 154 /* 155 -------------------------------------------------------------------------------- 156 Auto expanding Textarea 157 -------------------------------------------------------------------------------- 158 */ 159
160 161 $('.float-textarea').each(function() { 162 var floatarea = $(this), textarea = floatarea.children('textarea'); 163 164 textarea.on('input', function() { 165 floatarea.css('min-height', this.scrollHeight); 166 this.rows = 1; 167 rows = this.scrollHeight / parseInt(textarea.css('line-height')); 168 this.rows = rows; 169 floatarea.css('min-height', 0); 170 }); 171 172 $(window).resize(function() { 173 textarea.trigger('input'); 174 }); 175 }); 176}); 177 178 179//Misc Function Declarations 180function easeMenu() { 181 if($('.navTray').css('opacity') == 0) { 182 $('.navTray').css( 'opacity', "1" ); 183 }else{ 184 $('.navTray').css( 'opacity', "0" ); 185 } 186} 187 188function easeSearch() { 189 if($('.searchBox').css('opacity') == 0) { 190 $('.searchBox').css( 'opacity', "1" ); 191 }else{ 192 $('.searchBox').css( 'opacity', "0" ); 193 } 194}
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.