PageSourceSearch

https://kancelaria-litwin.pl/templates/eranews/js/progressbar.js

js kancelaria-litwin.pl collected 2026-09-24 14:06:07 UTC 13,968 bytes, 477 lines download raw bytes

1(function( jQuery ){
2  // Simple wrapper around jQuery animate to simplify animating progress from your app
3  // Inputs: Progress as a percent, Callback
4  // TODO: Add options and jQuery UI support.
5  jQuery.fn.animateProgress = function(progress, callback) {    
6    return this.each(function() {
7      jQuery(this).animate({
8        width: progress+'%'
9      }, {
10        duration: 2000, 
11        
12        // swing or linear
13        easing: 'swing',
14
15        // this gets called every step of the animation, and updates the label
16        step: function( progress ){
17          var labelEl = jQuery('.ui-label', this),
18              valueEl = jQuery('.value', labelEl);
19          
20          if (Math.ceil(progress) < 20 && jQuery('.ui-label', this).is(":visible")) {
21            labelEl.hide();
22          }else{
23            if (labelEl.is(":hidden")) {
24              labelEl.fadeIn();
25            };
26          }
27          
28          if (Math.ceil(progress) == 100) {
29            labelEl.text('Done');
30            setTimeout(function() {
31              labelEl.fadeOut();
32            }, 1000);
33          }else{
34            valueEl.text(Math.ceil(progress) + '%');
35          }
36        },
37        complete: function(scope, i, elem) {
38          if (callback) {
39            callback.call(this, i, elem );
40          };
41        }
42      });
43    });
44  };
45})( jQuery );
46
47jQuery(function() {
48  // Hide the label at start
49  jQuery('#progress_bar .ui-progress .ui-label').hide();
50  // Set initial value
51  jQuery('#progress_bar .ui-progress').css('width', '7%');
52
53  // Simulate some progress
54  jQuery('#progress_bar .ui-progress').animateProgress(90, function() {
55    jQuery(this).animateProgress(81, function() {
56      setTimeout(function() {
57        jQuery('#progress_bar .ui-progress').animateProgress(90, function() {
58          jQuery('#main_content').slideDown();
59          jQuery('#fork_me').fadeIn();
60        });
61      }, 2000);
62    });
63  });
64  
65});
66
67
68jQuery(function() {
69  // Hide the label at start
70  jQuery('#progress_bar2 .ui-progress .ui-label').hide();
71  // Set initial value
72  jQuery('#progress_bar2 .ui-progress').css('width', '7%');
73
74  // Simulate some progress
75  jQuery('#progress_bar2 .ui-progress').animateProgress(72, function() {
76    jQuery(this).animateProgress(63, function() {
77      setTimeout(function() {
78        jQuery('#progress_bar2 .ui-progress').animateProgress(72, function() {
79          jQuery('#main_content').slideDown();
80          jQuery('#fork_me').fadeIn();
81        });
82      }, 2000);
83    });
84  });
85  
86});
87
88
89jQuery(function() {
90  // Hide the label at start
91  jQuery('#progress_bar3 .ui-progress .ui-label').hide();
92  // Set initial value
93  jQuery('#progress_bar3 .ui-progress').css('width', '7%');
94
95  // Simulate some progress
96  jQuery('#progress_bar3 .ui-progress').animateProgress(80, function() {
97    jQuery(this).animateProgress(85, function() {
98      setTimeout(function() {
99        jQuery('#progress_bar3 .ui-progress').animateProgress(80, function() {
100          jQuery('#main_content').slideDown();
101          jQuery('#fork_me').fadeIn();
102        });
103      }, 2000);
104    });
105  });
106  
107});
108
109
110jQuery(function() {
111  // Hide the label at start
112  jQuery('#progress_bar4 .ui-progress .ui-label').hide();
113  // Set initial value
114  jQuery('#progress_bar4 .ui-progress').css('width', '7%');
115
116  // Simulate some progress
117  jQuery('#progress_bar4 .ui-progress').animateProgress(94, function() {
118    jQuery(this).animateProgress(90, function() {
119      setTimeout(function() {
120        jQuery('#progress_bar4 .ui-progress').animateProgress(94, function() {
121          jQuery('#main_content').slideDown();
122          jQuery('#fork_me').fadeIn();
123        });
124      }, 2000);
125    });
126  });
127  
128});
129
130jQuery(function() {
131  // Hide the label at start
132  jQuery('#progress_bar5 .ui-progress .ui-label').hide();
133  // Set initial value
134  jQuery('#progress_bar5 .ui-progress').css('width', '7%');
135
136  // Simulate some progress
137  jQuery('#progress_bar5 .ui-progress').animateProgress(85, function() {
138    jQuery(this).animateProgress(80, function() {
139      setTimeout(function() {
140        jQuery('#progress_bar5 .ui-progress').animateProgress(85, function() {
141          jQuery('#main_content').slideDown();
142          jQuery('#fork_me').fadeIn();
143        });
144      }, 2000);
145    });
146  });
147  
148});
149
150
151// gray bars
152jQuery(function() {
153  // Hide the label at start
154  jQuery('#progress_bar_gray .ui-progress3 .ui-label').hide();
155  // Set initial value
156  jQuery('#progress_bar_gray .ui-progress3').css('width', '7%');
157
158  // Simulate some progress
159  jQuery('#progress_bar_gray .ui-progress3').animateProgress(90, function() {
160    jQuery(this).animateProgress(81, function() {
161      setTimeout(function() {
162        jQuery('#progress_bar_gray .ui-progress3').animateProgress(90, function() {
163          jQuery('#main_content').slideDown();
164          jQuery('#fork_me').fadeIn();
165        });
166      }, 2000);
167    });
168  });
169  
170});
171
172
173jQuery(function() {
174  // Hide the label at start
175  jQuery('#progress_bar_gray2 .ui-progress3 .ui-label').hide();
176  // Set initial value
177  jQuery('#progress_bar_gray2 .ui-progress3').css('width', '7%');
178
179  // Simulate some progress
180  jQuery('#progress_bar_gray2 .ui-progress3').animateProgress(72, function() {
181    jQuery(this).animateProgress(63, function() {
182      setTimeout(function() {
183        jQuery('#progress_bar_gray2 .ui-progress3').animateProgress(72, function() {
184          jQuery('#main_content').slideDown();
185          jQuery('#fork_me').fadeIn();
186        });
187      }, 2000);
188    });
189  });
190  
191});
192
193
194jQuery(function() {
195  // Hide the label at start
196  jQuery('#progress_bar_gray3 .ui-progress3 .ui-label').hide();
197  // Set initial value
198  jQuery('#progress_bar_gray3 .ui-progress3').css('width', '7%');
199
200  // Simulate some progress
201  jQuery('#progress_bar_gray3 .ui-progress3').animateProgress(80, function() {
202    jQuery(this).animateProgress(85, function() {
203      setTimeout(function() {
204        jQuery('#progress_bar_gray3 .ui-progress3').animateProgress(80, function() {
205          jQuery('#main_content').slideDown();
206          jQuery('#fork_me').fadeIn();
207        });
208      }, 2000);
209    });
210  });
211  
212});
213
214
215jQuery(function() {
216  // Hide the label at start
217  jQuery('#progress_bar_gray4 .ui-progress3 .ui-label').hide();
218  // Set initial value
219  jQuery('#progress_bar_gray4 .ui-progress3').css('width', '7%');
220
221  // Simulate some progress
222  jQuery('#progress_bar_gray4 .ui-progress3').animateProgress(94, function() {
223    jQuery(this).animateProgress(90, function() {
224      setTimeout(function() {
225        jQuery('#progress_bar_gray4 .ui-progress3').animateProgress(94, function() {
226          jQuery('#main_content').slideDown();
227          jQuery('#fork_me').fadeIn();
228        });
229      }, 2000);
230    });
231  });
232  
233});
234
235jQuery(function() {
236  // Hide the label at start
237  jQuery('#progress_bar_gray5 .ui-progress3 .ui-label').hide();
238  // Set initial value
239  jQuery('#progress_bar_gray5 .ui-progress3').css('width', '7%');
240
241  // Simulate some progress
242  jQuery('#progress_bar_gray5 .ui-progress3').animateProgress(85, function() {
243    jQuery(this).animateProgress(80, function() {
244      setTimeout(function() {
245        jQuery('#progress_bar_gray5 .ui-progress3').animateProgress(85, function() {
246          jQuery('#main_content').slideDown();
247          jQuery('#fork_me').fadeIn();
248        });
249      }, 2000);
250    });
251  });
252  
253});
254
255
256
257// gray bars two
258jQuery(function() {
259  // Hide the label at start
260  jQuery('#progress_bar_gray001 .ui-progress1 .ui-label').hide();
261  // Set initial value
262  jQuery('#progress_bar_gray001 .ui-progress1').css('width', '7%');
263
264  // Simulate some progress
265  jQuery('#progress_bar_gray001 .ui-progress1').animateProgress(90, function() {
266    jQuery(this).animateProgress(81, function() {
267      setTimeout(function() {
268        jQuery('#progress_bar_gray001 .ui-progress1').animateProgress(90, function() {
269          jQuery('#main_content').slideDown();
270          jQuery('#fork_me').fadeIn();
271        });
272      }, 2000);
273    });
274  });
275  
276});
277
278
279jQuery(function() {
280  // Hide the label at start
281  jQuery('#progress_bar_gray002 .ui-progress1 .ui-label').hide();
282  // Set initial value
283  jQuery('#progress_bar_gray002 .ui-progress1').css('width', '7%');
284
285  // Simulate some progress
286  jQuery('#progress_bar_gray002 .ui-progress1').animateProgress(72, function() {
287    jQuery(this).animateProgress(63, function() {
288      setTimeout(function() {
289        jQuery('#progress_bar_gray002 .ui-progress1').animateProgress(72, function() {
290          jQuery('#main_content').slideDown();
291          jQuery('#fork_me').fadeIn();
292        });
293      }, 2000);
294    });
295  });
296  
297});
298
299
300jQuery(function() {
301  // Hide the label at start
302  jQuery('#progress_bar_gray003 .ui-progress1 .ui-label').hide();
303  // Set initial value
304  jQuery('#progress_bar_gray003 .ui-progress1').css('width', '7%');
305
306  // Simulate some progress
307  jQuery('#progress_bar_gray003 .ui-progress1').animateProgress(80, function() {
308    jQuery(this).animateProgress(85, function() {
309      setTimeout(function() {
310        jQuery('#progress_bar_gray003 .ui-progress1').animateProgress(80, function() {
311          jQuery('#main_content').slideDown();
312          jQuery('#fork_me').fadeIn();
313        });
314      }, 2000);
315    });
316  });
317  
318});
319
320
321jQuery(function() {
322  // Hide the label at start
323  jQuery('#progress_bar_gray004 .ui-progress1 .ui-label').hide();
324  // Set initial value
325  jQuery('#progress_bar_gray004 .ui-progress1').css('width', '7%');
326
327  // Simulate some progress
328  jQuery('#progress_bar_gray004 .ui-progress1').animateProgress(94, function() {
329    jQuery(this).animateProgress(90, function() {
330      setTimeout(function() {
331        jQuery('#progress_bar_gray001 .ui-progress1').animateProgress(94, function() {
332          jQuery('#main_content').slideDown();
333          jQuery('#fork_me').fadeIn();
334        });
335      }, 2000);
336    });
337  });
338  
339});
340
341jQuery(function() {
342  // Hide the label at start
343  jQuery('#progress_bar_gray005 .ui-progress1 .ui-label').hide();
344  // Set initial value
345  jQuery('#progress_bar_gray005 .ui-progress1').css('width', '7%');
346
347  // Simulate some progress
348  jQuery('#progress_bar_gray005 .ui-progress1').animateProgress(85, function() {
349    jQuery(this).animateProgress(80, function() {
350      setTimeout(function() {
351        jQuery('#progress_bar_gray005 .ui-progress1').animateProgress(85, function() {
352          jQuery('#main_content').slideDown();
353          jQuery('#fork_me').fadeIn();
354        });
355      }, 2000);
356    });
357  });
358  
359});
360
361
362
363
364
365
366
367jQuery(function() {
368  // Hide the label at start
369  jQuery('#progress_bar001 .ui-progress2 .ui-label').hide();
370  // Set initial value
371  jQuery('#progress_bar001 .ui-progress2').css('width', '7%');
372
373  // Simulate some progress
374  jQuery('#progress_bar001 .ui-progress2').animateProgress(90, function() {
375    jQuery(this).animateProgress(81, function() {
376      setTimeout(function() {
377        jQuery('#progress_bar001 .ui-progress2').animateProgress(90, function() {
378          jQuery('#main_content').slideDown();
379          jQuery('#fork_me').fadeIn();
380        });
381      }, 2000);
382    });
383  });
384  
385});
386
387
388jQuery(function() {
389  // Hide the label at start
390  jQuery('#progress_bar002 .ui-progress2 .ui-label').hide();
391  // Set initial value
392  jQuery('#progress_bar002 .ui-progress2').css('width', '7%');
393
394  // Simulate some progress
395  jQuery('#progress_bar002 .ui-progress2').animateProgress(72, function() {
396    jQuery(this).animateProgress(63, function() {
397      setTimeout(function() {
398        jQuery('#progress_bar002 .ui-progress2').animateProgress(72, function() {
399          jQuery('#main_content').slideDown();
400          jQuery('#fork_me').fadeIn();
401        });
402      }, 2000);
403    });
404  });
405  
406});
407
408
409jQuery(function() {
410  // Hide the label at start
411  jQuery('#progress_bar003 .ui-progress2 .ui-label').hide();
412  // Set initial value
413  jQuery('#progress_bar003 .ui-progress2').css('width', '7%');
414
415  // Simulate some progress
416  jQuery('#progress_bar003 .ui-progress2').animateProgress(80, function() {
417    jQuery(this).animateProgress(85, function() {
418      setTimeout(function() {
419        jQuery('#progress_bar003 .ui-progress2').animateProgress(80, function() {
420          jQuery('#main_content').slideDown();
421          jQuery('#fork_me').fadeIn();
422        });
423      }, 2000);
424    });
425  });
426  
427});
428
429
430jQuery(function() {
431  // Hide the label at start
432  jQuery('#progress_bar004 .ui-progress2 .ui-label').hide();
433  // Set initial value
434  jQuery('#progress_bar004 .ui-progress2').css('width', '7%');
435
436  // Simulate some progress
437  jQuery('#progress_bar004 .ui-progress2').animateProgress(94, function() {
438    jQuery(this).animateProgress(90, function() {
439      setTimeout(function() {
440        jQuery('#progress_bar004 .ui-progress2').animateProgress(94, function() {
441          jQuery('#main_content').slideDown();
442          jQuery('#fork_me').fadeIn();
443        });
444      }, 2000);
445    });
446  });
447  
448});
449
450
451jQuery(function() {
452  // Hide the label at start
453  jQuery('#progress_bar005 .ui-progress2 .ui-label').hide();
454  // Set initial value
455  jQuery('#progress_bar005 .ui-progress2').css('width', '7%');
456
457  // Simulate some progress
458  jQuery('#progress_bar005 .ui-progress2').animateProgress(85, function() {
459    jQuery(this).animateProgress(80, function() {
460      setTimeout(function() {
461        jQuery('#progress_bar005 .ui-progress2').animateProgress(85, function() {
462          jQuery('#main_content').slideDown();
463          jQuery('#fork_me').fadeIn();
464        });
465      }, 2000);
466    });
467  });
468  
469});
470
471
472
473
474
475
476
477

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.