PageSourceSearch

https://voxnews.al/poll/poll0.js

js voxnews.al collected 2026-10-02 07:34:16 UTC 1,799 bytes, 72 lines download raw bytes

1
2if(typeof mbush != 'function'){
3   window.mbush = function(res,id){
4   document.getElementById("poll" + id).innerHTML=res;
5   };
6}
7
8
9
10
11if(typeof post != 'function'){
12   window.post = function(url,id, params,thirrCallBack){
13	var http = new XMLHttpRequest();
14	http.open('POST', url, true);
15	http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
16	http.onreadystatechange = function() {
17    	if(http.readyState == 4 && http.status == 200) {
18    		var res=http.responseText;
19        		thirrCallBack(res,id);
20    	} 
21	}
22http.send(Object.keys(params).map(key => key + '=' + params[key]).join('&'));
23};
24}
25
26
27
28if(typeof post1 != 'function'){
29   window.post1 = function(url, ke){
30	var http = new XMLHttpRequest();
31	http.open('GET', url, true);
32	http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
33	http.onreadystatechange = function() {
34    	if(http.readyState == 4 && http.status == 200) {
35    		var res=http.responseText;
36    		document.getElementById(ke).innerHTML=res;
37    		var myScripts = document.getElementById(ke).getElementsByTagName("script");
38            if (myScripts.length > 0) {
39                eval(myScripts[0].innerHTML);
40            }
41    	} 
42	}
43http.send();
44};
45}
46
47
48if(typeof voto != 'function'){
49   window["voto"] = function(i,id){
50	var u=document.getElementById("u" + id).value;
51	post("/poll/vote.php",id,{u: u,id:i,p:id},thirr);
52};
53}
54
55if(typeof thirr != 'function'){
56   window["thirr"] = function(res,id){
57		if (res == '1') {
58		post1("/poll/?id=" + id,"p" + id); 
59		}
60};
61}
62
63
64
65var x = document.getElementsByClassName("referendumet");
66var id="";
67for (var i = 0; i < x.length; i++) {
68  var id=x[i].getAttribute('data-id');
69  x[i].setAttribute("id", "p" + id);
70  x[i].classList.remove("referendumet");
71  post1("/poll/?id=" + id,"p" + id);   
72}

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.