1function twitchAnimation(obj, event) { 2 if (event.type == 'mouseover') { 3 obj.setAttribute("style", "left: 8px;"); 4 setTimeout(function(){ 5 obj.setAttribute("style", "left: -6px;"); 6 setTimeout(function(){ 7 obj.setAttribute("style", "left: 4px;"); 8 setTimeout(function(){ 9 obj.setAttribute("style", "left: 2px;"); 10 setTimeout(function(){ 11 obj.setAttribute("style", "left: 0px;"); 12 }, 70); 13 }, 80); 14 }, 90); 15 }, 100); 16 } else { 17 obj.setAttribute("style", "left: 0px;");; 18 } 19} 20 21function transferSnl () { 22 var objDonor = document.getElementById('ab-position-indiv'); 23 if (objDonor) { 24 var objRecipient = document.getElementById('snl'); 25 if (objRecipient) { 26 while (objDonor.lastChild) { 27 objRecipient.insertBefore(objDonor.lastChild, objRecipient.firstChild); 28 } 29 } 30 var elements = document.querySelectorAll('.snl'); 31 if (elements) { 32 for (var i = 0; i < elements.length; i++) { 33 if (i+1 == elements.length) { 34 elements[i].appendChild(objDonor); 35 } else { 36 var objDonorCopy = objDonor.cloneNode(true); 37 elements[i].appendChild(objDonorCopy); 38 } 39 } 40 } 41 } else { 42 var objDonor = document.getElementById('ab-position-right'); 43 if (!objDonor) { 44 var objDonor = document.getElementById('ab-position-left'); 45 } 46 if (objDonor) { 47 while (objDonor.lastChild) { 48 document.body.insertBefore(objDonor.lastChild, document.body.firstChild); 49 } 50 } 51 } 52} 53 54document.addEventListener("DOMContentLoaded", transferSnl);
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.