1// 2// GLOBAL JS PLUGINS INIT 3// 4$(document).ready(function(){ 5 //DISABLE RIGHT CLICK MENU 6 //$(document).bind("contextmenu",function(e){ 7 // return false; 8 //}); 9 10 //MENU SLIDE for MOBILE 11 //based on jquery.pageslide.min.js 12 $("#btnFlyMenu").pageslide(); 13 14 // DELAY DIV LOADING 15 $('.fx').each(function(index){ 16 var _this = this; 17 var delay = index*100; 18 setTimeout( function(){ $(_this).fadeIn('slow').removeClass('fx'); }, 1000+index ); 19 }); 20 21 // OPEN/CLOSE PANELS 22 // Expand Panel 23 $("#btnOSearchPanel").click(function() { 24 $("#topSearchPanel").slideToggle(400,"linear"); 25 $("#btnOSearchPanel").hide(); 26 $("#btnCSearchPanel").show(); 27 }); 28 $("#btnCSearchPanel").click(function() { 29 $("#topSearchPanel").slideToggle(400,"linear"); 30 $("#btnCSearchPanel").hide(); 31 $("#btnOSearchPanel").show(); 32 }); 33 34 // OPEN/CLOSE SITE MENU 35 $("#btnFlyMenuSite").click(function() { 36 $("#navTopSite").slideToggle(400,"linear"); 37 }); 38 39 40 //SHOW PANELS 41 $("#btnLeaveComm").click(function(){ 42 $("#respondArea").slideToggle("fast"); 43 $(this).fadeOut("fast"); 44 }); 45 46 //COPYRIGHT LINK+TEXT ON COPY TEXT 47 function addCopyrightLink() { 48 var body_element = document.getElementsByTagName('body')[0]; 49 var selection; 50 selection = window.getSelection(); 51 var pagelink = "<br /><br /> Read more at: <a href='"+document.location.href+"'>"+document.location.href+"</a>"; // change copyright text 52 var copytext = selection + pagelink; 53 var newdiv = document.createElement('div'); 54 newdiv.style.position='absolute'; 55 newdiv.style.left='-99999px'; 56 body_element.appendChild(newdiv); 57 newdiv.innerHTML = copytext; 58 selection.selectAllChildren(newdiv); 59 window.setTimeout(function() { 60 body_element.removeChild(newdiv); 61 },0); 62 } 63 document.oncopy = addCopyrightLink; 64 65}); //end ready
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.