1var myMenuArray = new Array(); 2var ww = 1000; 3 4$(document).ready(function() { 5 ww = document.body.clientWidth; 6 adjustMyMenu(); 7}); 8 9$(window).bind('resize orientationchange', function() { 10 ww = document.body.clientWidth; 11 adjustMyMenu(); 12}); 13 14function adjustMyMenu() { 15 if(myMenuArray.length==0 && ww<=768) { 16 var arrowCount = 1; 17 while(document.getElementById('myMenu'+arrowCount)) arrowCount++; 18 arrowCount--; 19 20 for(mCnt=arrowCount; mCnt>=1; mCnt--) { 21 myMenuArray[mCnt] = document.getElementById('myMenu'+mCnt).innerHTML; 22 document.getElementById('myMenu'+mCnt).innerHTML = ''; 23 } 24 25 $(document).keyup(function(e) { 26 if(e.keyCode==27 && $('#aktopnavig').css('display')=='block') { 27 $('.top-menu .menu').click(); 28 } 29 }); 30 31 $(document).click(function(e) { 32 var parents = $(e.target).parents('.top-menu'); 33 if(parents.length==0 && $('#aktopnavig').css('display')=='block') { 34 $('.top-menu .menu').click(); 35 } 36 }); 37 } 38} 39 40function showMyMenu(mCnt) { 41 if(ww<=768) { 42 if(document.getElementById('myMenu'+mCnt).innerHTML=='') { 43 document.getElementById('myMenu'+mCnt).innerHTML = myMenuArray[mCnt]; 44 } else { 45 document.getElementById('myMenu'+mCnt).innerHTML = ''; 46 } 47 return false; 48 } 49 50}
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.