PageSourceSearch

https://iranled.com/forum/jscripts/thx.js?ver=1400

js iranled.com collected 2026-09-27 08:28:56 UTC 2,995 bytes, 115 lines download raw bytes

1/**
2  * Thank you 3.0.2
3  * written by [email protected]
4  * website  WWW.CodeCorona.com
5  * **************************
6  * Thank you 3.0.6
7  * Upgrade for MyBB 1.4 : AmirH Hassaneini,Hamed Arfaee
8  * w w w . i r a n v i g . c o m
9  * ***************************
10  * babyy . 95.02.13
11  * change thx_action:	line 21
12  * add    thx_action:  line 22
13  * change thx:		line 71 , 73 , 74
14  * add	   thx:		line 78 to 87
15*/
16var pid=-1;
17var spinner='';
18var ThankYou = {
19
20thx_action: function(response) {
21
22	//delete and add by babyy
23	//xml=response.responseXML;
24	xml=response;
25	
26	table=document.getElementById("thx"+pid);
27	list=document.getElementById("thx_list"+pid);
28
29	table.style.display=xml.getElementsByTagName("display").item(0).firstChild.data!=0 ?
30		'' : 'none';
31	
32	list.innerHTML= xml.getElementsByTagName('list').item(0).firstChild.data;
33	
34	lin=document.getElementById('a'+pid);
35	lin.onclick= new Function("","return ThankYou.rthx("+pid+");");
36		
37	lin.href='showthread.php?action=remove_thank&pid='+pid;
38	
39	img=document.getElementById('i'+pid);
40	
41	img.src=xml.getElementsByTagName('image').item(0).firstChild.data;
42	
43  document.body.style.cursor = 'default';
44	spinner.destroy();
45	spinner='';
46},
47
48rthx_action: function (response) {
49
50	//xml=response.responseXML;
51	xml=response;
52
53	table=document.getElementById("thx"+pid);
54	list=document.getElementById("thx_list"+pid);
55	table.style.display=xml.getElementsByTagName("display").item(0).firstChild.data!=0 ?
56		'' : 'none';
57	
58	list.innerHTML=xml.getElementsByTagName("list").item(0).firstChild.data;
59	
60	lin=document.getElementById("a"+pid);
61	lin.onclick= new Function("","return ThankYou.thx("+pid+");");
62	lin.href='showthread.php?action=thank&pid='+pid;
63	
64	img=document.getElementById('i'+pid);
65	
66	img.src=xml.getElementsByTagName('image').item(0).firstChild.data;
67	
68	document.body.style.cursor = 'default';
69	spinner.destroy();
70	spinner='';
71},
72
73thx: function (id) {
74
75	//spinner = new ActivityIndicator("body", {image: "images/spinner_big.gif"});
76	document.body.style.cursor = 'wait';
77	pid=id;
78	//b="pid="+pid;
79	//new Ajax.Request('xmlhttp.php?action=thankyou',{method: 'post', postBody:b ,onComplete: function(request) { ThankYou.thx_action(request); }});
80	//add from babyy
81	var bb = $.ajax({
82	  url: "xmlhttp.php?action=thankyou",
83	  method: "POST",
84	  data: {pid : pid },
85	  });
86	
87	bb.always(
88	    function( request ){
89	      ThankYou.thx_action(request);
90	   });
91
92	return false;
93},
94
95rthx: function rthx(id) {
96
97	//spinner = new ActivityIndicator("body", {image: "images/spinner_big.gif"});
98	document.body.style.cursor = 'wait';
99	pid=id;
100	//b="pid="+pid;
101	//new Ajax.Request('xmlhttp.php?action=remove_thankyou',{method: 'post', postBody:b ,onComplete: function(request) { ThankYou.rthx_action(request); }});
102		//add from babyy
103	var bb = $.ajax({
104	  url: "xmlhttp.php?action=remove_thankyou",
105	  method: "POST",
106	  data: {pid : pid },
107	  });
108	
109	bb.always(
110	    function( request ){
111	      ThankYou.rthx_action(request);
112	   });
113	return false;
114}
115};

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.