1var pos = 0; 2var poz = 0; 3var sea = null; 4var width = 460; 5var vk = new Object(); 6(vk = { 7 init: function () { 8 document.write("<div id=\"player-vk-write\" align=\"center\"> <ul id=\"player-vk-season\"><li id=\"seasons\"></li></ul> <div id=\"player-vk-player\"></div> <ul id=\"player-vk-serial\"></ul> <a href=\"javascript://\" class=\"prev\" onclick=\"vk.move(1);\">prev</a> <a href=\"javascript://\" class=\"next\" onclick=\"vk.move(0);\">next</a> <a href=\"javascript://\" class=\"prev1\" onclick=\"vk.move1(1);\">prev</a> <a href=\"javascript://\" class=\"next1\" onclick=\"vk.move1(0);\">next</a> <\/div>") 9 }, 10 player: function (a, b) { 11 document.getElementById("player-vk-player").innerHTML = ""; 12 var d = document.createElement("iframe"); 13 d.src = String(a); 14 d.width = "100%"; 15 d.height = "420"; 16 d.setAttribute("border", "0"); 17 d.setAttribute("frameborder", "0"); 18 d.setAttribute("scrolling", "no"); 19 d.setAttribute("allowfullscreen", ""); 20 d.setAttribute("webkitallowfullscreen", ""); 21 d.setAttribute("mozallowfullscreen", ""); 22 d.setAttribute("oallowfullscreen", ""); 23 d.setAttribute("msallowfullscreen", ""); 24 25 var frmae = '<iframe width="100%" height="100%" allow="encrypted-media" frameborder="0" allowfullscreen="true" gesture="media" src="' + String(a) + '"></iframe>'; 26 27 28 29 var prevframe = document.createElement("iframe"); 30 prevframe.src = "data:text/html," + frmae; 31 prevframe.width = "100%"; 32 prevframe.height = "420"; 33 prevframe.setAttribute("border", "0"); 34 prevframe.setAttribute("frameborder", "0"); 35 prevframe.setAttribute("scrolling", "no"); 36 prevframe.setAttribute("allowfullscreen", ""); 37 prevframe.setAttribute("webkitallowfullscreen", ""); 38 prevframe.setAttribute("mozallowfullscreen", ""); 39 prevframe.setAttribute("oallowfullscreen", ""); 40 prevframe.setAttribute("msallowfullscreen", ""); 41 42 43 44 // prevframe.appendChild(d); 45 document.getElementById("player-vk-player").append(prevframe); 46 47 48 console.log(prevframe) 49 50 if (document.getElementById("player-vk-serial")) { 51 c = document.getElementById("player-vk-serial").getElementsByTagName("span"); 52 for (var i = 0; i < c.length; i++) { 53 c[i].removeAttribute("class") 54 } 55 } 56 b.setAttribute("class", "active") 57 }, 58 season: function (a, b) { 59 if (document.getElementById("player-vk-season")) { 60 c = document.getElementById("player-vk-season").getElementsByTagName("span"); 61 for (var i = 0; i < c.length; i++) { 62 document.getElementById("season" + i).style.display = "none"; 63 c[i].removeAttribute("class") 64 } 65 document.getElementById("season" + a).style.display = ""; 66 sea = a 67 } 68 b.setAttribute("class", "active") 69 }, 70 show: function (a, b) { 71 for (var i = 0; i < a; i++) { 72 document.getElementById("player-vk-season").getElementsByTagName("li")[0].innerHTML += "<span onclick=\"vk.season(" + i + ", this)\">Сезон " + (i + 1) + "</span>"; 73 document.getElementById("player-vk-serial").innerHTML += "<li id=\"season" + i + "\" style=\"display:none;\"></li>" 74 } 75 for (var i = 0; i < a; i++) { 76 for (var j = 0; j < b[i].length; j++) { 77 document.getElementById("season" + i).innerHTML += "<span onclick=\"vk.player('" + b[i][j] + "', this);\">СеÑÐ¸Ñ " + (j + 1) + "</span>" 78 } 79 } 80 document.getElementById("player-vk-season").getElementsByTagName("span")[0].setAttribute("class", "active"); 81 document.getElementById("player-vk-season").getElementsByTagName("span")[0].click(); 82 document.getElementById("season0").getElementsByTagName("span")[0].click(); 83 document.getElementById("season0").style.display = "" 84 }, 85 move: function (d) { 86 var a, b; 87 var c = document.getElementById("seasons"); 88 var e = c.offsetWidth; 89 var f = c.offsetLeft; 90 if (d == 0) { 91 clearTimeout(a); 92 b = setInterval(function () { 93 pos = pos - 10; 94 if (pos >= (f - width) && pos >= -(e - width)) { 95 c.style.left = pos + "px" 96 } else clearTimeout(b) 97 }, 15) 98 } 99 if (d == 1) { 100 clearTimeout(b); 101 b = setInterval(function () { 102 pos = pos + 10; 103 if (pos <= (f + width) && pos <= 0) { 104 c.style.left = pos + "px" 105 } else clearTimeout(b) 106 }, 15) 107 } 108 }, 109 move1: function (d) { 110 var a, b; 111 var c = document.getElementById("season" + sea);
112 var e = c.offsetWidth; 113 var f = c.offsetLeft; 114 if (d == 0) { 115 clearTimeout(a); 116 b = setInterval(function () { 117 poz = poz - 10; 118 if (poz >= (f - width) && poz >= -(e - width)) { 119 c.style.left = poz + "px" 120 } else clearTimeout(b) 121 }, 15) 122 } 123 if (d == 1) { 124 clearTimeout(b); 125 b = setInterval(function () { 126 poz = poz + 10; 127 if (poz <= (f + width) && poz <= 0) { 128 c.style.left = poz + "px" 129 } else clearTimeout(b) 130 }, 15) 131 } 132 } 133});
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.