PageSourceSearch

https://altao.pl/js/toppost.php

js altao.pl collected 2026-10-02 22:36:17 UTC 5,701 bytes, 260 lines download raw bytes

1	  
2
3var blok=0;
4
5
6$(document).ready(function()
7{
8
9 
10
11
12$(document).on('click','#dodajtoppost', function(){ 
13blok=1;
14                                          $.ajax({
15                                            type: 'POST',
16                                            global: true,
17                                            cache: false,
18                                            url: 'https://altao.pl/ajax/dodaj_toppost.php',
19                                            data:  'page=0',
20                                            dataType: 'json',
21
22                                              success: function(dataz){
23 
24                                                  
25                                                    $('#ekrantoppost').html(dataz[0]);
26													$('#dodajtoppost').hide();
27                                                },
28
29                                              error: function (xhr, ajaxOptions, thrownError){
30                                               
31                                                }
32                                          });
33});
34
35// procedura dodania toppostu
36$(document).on('click', '#proceduratoppost', function(){ 
37
38                                          $.ajax({
39                                            type: 'POST',
40                                            global: true,
41                                            cache: false,
42                                            url: 'https://altao.pl/ajax/dodaj_toppost2.php',
43                                            data: '&tresctp='+document.forms['dodajtoppostform'].tresctp.value+
44											'&nazwatp='+document.forms['dodajtoppostform'].nazwatp.value+
45											'&urltp='+document.forms['dodajtoppostform'].urltp.value+
46												  '&kategoriatp='+document.forms['dodajtoppostform'].kategoriatp.value,
47                                            dataType: 'json',
48
49                                              success: function(dataz){
50													$('#dodajtoppost').show();
51													$('#ekrantoppost').html('Dodano post');
52                                                     
53                                                    
54													$('#ekrantoppost').html(dataz[0]);
55                                                },
56
57                                              error: function (xhr, ajaxOptions, thrownError){
58                                               
59                                                }
60                                          });
61});
62
63
64
65
66
67
68
69
70 
71
72
73
74$(document).on('click', '#nastepnytoppost', function(){ 
75blok=0;
76fnexttop();
77
78});
79
80
81$(document).on('click', '#poprzednitoppost', function(){ 
82var idd=$('#idtoppost').attr('rel');
83                                          $.ajax({
84                                            type: 'POST',
85                                            global: true,
86                                            cache: false,
87                                            url: 'https://altao.pl/ajax/ranking_toppost.php',
88                                            data: '&id='+idd+
89												  '&rank=2'+
90												  '&back=1',
91												 
92                                            dataType: 'json',
93
94                                              success: function(dataz){
95													 
96													 
97                                                     
98                                                    
99													$('#ekrantoppost').html(dataz[0]);
100													 
101                                                },
102
103                                              error: function (xhr, ajaxOptions, thrownError){
104                                               
105                                                }
106                                          });
107});
108
109
110
111 
112
113
114 
115
116
117
118
119
120
121
122
123
124
125   
126   
127
128
129
130 
131   
132   
133   
134   
135   
136   
137   
138   
139
140
141
142});
143
144var timer_is_ona1=0;
145
146var ca1=0;
147var ta1;
148
149function doTimera1()
150{
151if (!timer_is_ona1)
152  {
153  timer_is_ona1=1;
154  timedCounta1();
155  }
156}
157
158function stopCounta1()
159{
160 
161clearTimeout(ta1);
162timer_is_ona1=0;
163 
164}
165
166
167
168
169
170
171function timedCounta1()
172{
173
174 //$('.b1').html(ca1);
175//ca1=ca1+1;
176
177 
178 
179
180if(ca1%4==0) //co 68 sek
181{
182ftimebar();
183}
184
185
186ca1++;
187ta1=setTimeout('timedCounta1()',1);
188
189
190}
191
192
193
194
195
196
197
198
199function ftimebar()
200{
201
202if(blok==0)
203{
204
205timebar=timebar+1;
206$('.timebar').width(timebar);
207
208if(timebar>525)
209{
210$('#ekrantoppost').fadeOut(550);
211timebar=-250;
212$('.timebar').width(timebar);
213fnexttop();
214 								  
215										  
216										  
217}
218
219}
220}
221
222
223
224
225
226function fnexttop()
227{
228$('#ekrantoppost').fadeOut(0, function(){
229var idd=$('#idtoppost').attr('rel');
230                                          $.ajax({
231                                            type: 'POST',
232                                            global: true,
233                                            cache: false,
234                                            url: 'https://altao.pl/ajax/ranking_toppost.php',
235                                            data: '&id='+idd+
236												  '&rank=2',
237												  
238                                            dataType: 'json',
239
240                                              success: function(dataz){
241													 
242													 
243                                                     
244                                                    
245													$('#ekrantoppost').html(dataz[0]);
246													$('#ekrantoppost').fadeIn(1200);
247													timebar=0;
248                                                },
249
250                                              error: function (xhr, ajaxOptions, thrownError){
251                                               
252                                                }
253                                          });
254});
255}
256
257 
258
259
260

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.