1$(document).ready(function(){ 2 3 4 /* ---- Countdown timer ---- */ 5 6 $('#counter').countdown({ 7 timestamp : (new Date()).getTime() + 08*10*60*60*1000 8 }); 9 10 11 /* ---- Animations ---- */ 12 13 $('#links a').hover( 14 function(){ $(this).animate({ left: 3 }, 'fast'); }, 15 function(){ $(this).animate({ left: 0 }, 'fast'); } 16 ); 17 18 $('footer a').hover( 19 function(){ $(this).animate({ top: 3 }, 'fast'); }, 20 function(){ $(this).animate({ top: 0 }, 'fast'); } 21 ); 22 23 24 /* ---- Using Modernizr to check if the "required" and "placeholder" attributes are supported ---- */ 25 26 //if (!Modernizr.input.placeholder) { 27// $('.email').val('Input your e-mail address here...'); 28// $('.email').focus(function() { 29// if($(this).val() == 'Input your e-mail address here...') { 30// $(this).val(''); 31// } 32// }); 33// } 34 35 // for detecting if the browser is Safari 36 //var browser = navigator.userAgent.toLowerCase(); 37// 38// if(!Modernizr.input.required || (browser.indexOf("safari") != -1 && browser.indexOf("chrome") == -1)) { 39// $('form').submit(function() { 40// $('.popup').remove(); 41// if(!$('.email').val() || $('.email').val() == 'Input your e-mail address here...') { 42// $('form').append('<p class="popup">Please fill out this field.</p>'); 43// $('.email').focus(); 44// return false; 45// } 46// }); 47// $('.email').keydown(function() { 48// $('.popup').remove(); 49// }); 50// $('.email').blur(function() { 51// $('.popup').remove(); 52// }); 53// } 54 55 56});
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.