1var e = document.createElement('div'); 2e.style.display = "none"; 3 4function cssIsActive () { 5 return (window.getComputedStyle(e, null).display == 'none'); 6} 7 8window.onload = function () { 9 10 document.body.appendChild(e); 11 12 if (cssIsActive()) { 13 var rest_imgs = document.querySelectorAll(".item img:not(.img_main)"); 14 if (rest_imgs != null) { 15 for (var i=0; i < rest_imgs.length; i++) { 16 var sib = rest_imgs[i].previousElementSibling; 17 if (sib != null && sib.nodeName == "IMG" && sib.classList.contains('img_main')) { 18 sib.style.position = "absolute"; 19 sib.style.top = 0; 20 sib.style.left = 0; 21 sib.style.zIndex = 9999; 22 sib.onmouseover = function (event) { 23 if (! cssIsActive()) { 24 location.reload(); 25 } 26 this.style.visibility='hidden'; 27 this.nextElementSibling.style.visibility='visible'; 28 }; 29 rest_imgs[i].style.position = "absolute"; 30 rest_imgs[i].style.top = 0; 31 rest_imgs[i].style.left = 0; 32 rest_imgs[i].style.zIndex = 0; 33 rest_imgs[i].style.visibility = 'hidden'; 34 rest_imgs[i].onmouseout = function (event) { 35 if (! cssIsActive()) { 36 location.reload(); 37 } 38 this.previousElementSibling.style.visibility='visible'; 39 this.style.visibility='hidden'; 40 }; 41 } 42 } 43 } 44 } else { 45 var imgs = document.querySelectorAll(".item img"); 46 if (imgs != null) { 47 for (var i=0; i < imgs.length; i++) { 48 imgs[i].onmouseout = function (event) { 49 if (cssIsActive()) { 50 location.reload(); 51 } 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.