-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
563 lines (555 loc) · 23.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
<!DOCTYPE html>
<html lang="sk">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Domov | Katedra aplikovanej informatiky UCM</title>
<meta name="keywords" content="ucm,kai,katedra,informatika,Trnava">
<meta name="description" content="Katedrový web KAI">
<meta name="author" content="Andrea Hornáčková, Timea Danišová, Lukáš Maár">
<link rel="shortcut icon" href="http://kai.rf.gd/images/kai_favi.png" type="image/x-icon" />
<link rel="apple-touch-icon" href="#" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/pogo-slider.min.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/responsive.css" />
<link rel="stylesheet" href="css/animate.css" />
<!-- <link rel="stylesheet" href="css/custom.css" /> --> </head>
<body id="home" data-spy="scroll" data-target="#navbar-wd" data-offset="98">
<div id="preloader">
<div class="loader"> <img src="images/loader.gif" alt="#" /></div>
</div>
<header class="top-header">
<nav class="navbar header-nav navbar-expand-lg">
<div class="container-fluid"><a href="http://kai.rf.gd/"><img src="images/kai_small.png" alt="KAI logo"/></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-wd" aria-controls="navbar-wd" aria-expanded="false" aria-label="Toggle navigation"> <span></span> <span></span> <span></span> </button>
<div class="collapse navbar-collapse justify-content-end" id="navbar-wd">
<ul class="navbar-nav">
<li><a class="nav-link active" href="index.html">Domov</a></li>
<li><a class="nav-link" href="studenti.html">Študenti</a></li>
<li><a class="nav-link" href="zamestnanci.html">Zamestnanci</a></li>
<li><a class="nav-link" href="erasmus.html">Erasmus</a></li>
<li><a class="nav-link" href="itlab.html">IT Laboratóriá</a></li>
<li><a class="nav-link" href="reaserch.html">Výskum</a></li>
<li><a class="nav-link" href="https://kai.fpv.ucm.sk/moodle/">Moodle</a></li>
<li><a class="nav-link" href="https://ais2.ucm.sk/ais/start.do">AIS</a></li>
<li><a class="nav-link" href="contact.html">Kontakt</a></li>
</ul>
<div id="google_translate_element"></div>
</div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages : 'sk,en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, 'google_translate_element');
}
</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<div class="search-box">
<script>
// Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// This notice must stay intact for use
// Enter domain of site to search.
var domainroot="www.kai.rf.gd"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
</script>
<form action="http://www.google.com/search" method="get" onSubmit="Gsitesearch(this)">
<input name="q" type="hidden" />
<input name="qfront" type="text" class="search-txt" placeholder="Vyhľadať text na webe">
<a class="search-btn"> <img src="images/search_icon.png" alt="#" /> </a>
</form>
</div>
</div>
</nav>
</header>
<div class="ulockd-home-slider">
<div class="container-fluid">
<div class="row">
<div class="pogoSlider" id="js-main-slider">
<div class="pogoSlider-slide" style="background-image:url(images/kai_slide.png);">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="slide_text">
<!--<h3><span class="theme_color">Vitajte na webe</span><br>Katedry aplikovanej informatiky</h3>
<h4>Univerzity sv. Cyrila a Metoda v Trnave</h4>
<div class="full center"> <a class="contact_bt" href="https://e-prihlaska.ucm.sk/ais/eprihlas/#!/home">Pridaj sa k nám</a></div> -->
</div>
</div>
</div>
</div>
</div>
<div class="pogoSlider-slide" style="background-image:url(images/itlab_switche.jpg);">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="slide_text">
<h3><span class="theme_color">Kurzy<br></span>CISCO</h3>
<h4>pre každého</h4>
<br>
<div class="full center"> <a class="contact_bt" href="cisco.html">Tam chcem ísť</a> </div>
</div>
</div>
</div>
</div>
</div>
<div class="pogoSlider-slide" style="background-image:url(images/erasmus_slide.jpg);">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="slide_text">
<h3 style="color:rgb(0, 0, 0);">ERASMUS</h3>
<h4 style="color:rgb(0, 0, 0);">Štúdium | Zážitky | Zábava | Prax</h4>
<br>
<div class="full center"> <a class="contact_bt" href="erasmus.html">Chcem viac info</a> </div>
</div>
</div>
</div>
</div>
</div>
<div class="pogoSlider-slide" style="background-image:url(images/ar_custom.png);">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="slide_text">
<!--<h3><span class="theme_color">Virtuálna realita</span><br>Príď a vyskúšaj aj ty!</h3>
<h4>,,Hranica medzi fantáziou a realitou je niekedy veľmi krehká a často ani neexistuje"</h4>
<div class="full center"> <a class="contact_bt" href="https://e-prihlaska.ucm.sk/ais/eprihlas/#!/home">Pridaj sa k nám</a> </div> -->
</div>
</div>
</div>
</div>
</div>
<div class="pogoSlider-slide" style="background-image:url(images/itlab.jpg);">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="slide_text">
<h3><span class="theme_color">IT Laboratóriá</span></h3>
<h4 style="color:rgb(255, 255, 255);">Naše špecializované laboratóriá pre študentov</h4>
<br>
<div class="full center"> <a class="contact_bt" href="itlab.html">Chcem viac info</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Banner -->
<!-- section -->
<div class="section tabbar_menu">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="tab_menu">
<ul>
<li><a href="http://kai.rf.gd/about.html"><span class="icon"><img src="images/i1.png" alt="#" /></span><span>O nás</span></a></li>
<li><a href="https://uplatnenie.sk/?degree=V%C5%A0&vs=720000000&faculty=720020000&field=2511R00&year=2019"><span class="icon"><img src="images/i2.png" alt="#" /></span><span>Absolventi</span></a></li>
<li><a href="https://www.facebook.com/KatedraAplikovanejInformatiky/"><span class="icon"><img src="images/i4.png" alt="#" /></span><span>Sociálne siete</span></a></li>
<li><a href="https://www.google.com/maps/place/Univerzita+sv.+Cyrila+a+Metoda+v+Trnave/@48.3833631,17.5868667,17z/data=!3m1!4b1!4m5!3m4!1s0x476ca0835e979103:0xa0ffd0b8e0b3eb33!8m2!3d48.3833631!4d17.5890554"><span class="icon"><img src="images/i5.png" alt="#" /></span><span>Kde sídlime?</span></a></li>
<li><a href="mailto:studijne_fpv@ucm.sk"><span class="icon"><img src="images/i6.png" alt="" /></span><span>E-mail</span></a></li>
<li><a href="#"><span class="icon"><img src="images/i7_blue.png" alt="#" /></span><span>0335565316</span></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- section -->
<!--<div class="alert">
<span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
<h1 style="color:rgb(255,255,255);"><b>INFORMÁCIA OD AUTOROV WEBU!</b></h1>Na obrázkoch pre horný slideshow pracujeme, aktuálne <u>ide o <b>placeholdery</b></u> a obrázky budú čoskoro zmenené.<br>Ďakujeme za pochopenie.<br><br>Autori webu (Lukáš Maár, Timea Danišová, Andrea Hornáčková)<br><i>Zverejnené dňa 08.04.2022</i>
</div> -->
<div class="section margin-top_50">
<div class="container">
<div class="row">
<div class="col-md-6 layout_padding_2">
<div class="full">
<div class="heading_main text_align_left">
<h2><span>Vitajte na webe</span> Katedry aplikovanej informatiky</h2> </div>
<div class="full">
<p>Študijný program aplikovaná informatika je súčasťou študijného odboru 18 informatika. Zameriava sa na princípy, metódy a nástroje pre tvorbu softvérových aplikácií, technológie vývoja softvérových aplikácií, grafické spracovanie údajov a vizualizáciu údajov v prírodných vedách. Študijný program je navrhnutý tak, aby jeho absolvent bol schopný po jeho úspešnom ukončení nastúpiť do zamestnania a realizovať sa podľa vlastných predstáv a možností trhu práce.</p>
</div>
<!-- <div class="full">
<a class="hvr-radial-out button-theme" href="http://kai.rf.gd/about.html">Chcem viac info</a>
</div> --></div>
</div>
<div class="col-md-6">
<div class="full"> <img src="images/img2.png" alt="#" /> </div>
</div>
</div>
</div>
</div>
<!-- end section -->
<!-- section -->
<div class="section layout_padding">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="full">
<div class="heading_main text_align_center">
<h2><span>Rozhodni sa</span> správne!</h2></div>
</div>
</div>
<div class="col-md-5">
<div class="full blog_img_popular text_align_center"> <img class="img-responsive" src="images/p1.png" alt="#" />
<p>
<h4>Bakalár</h4>
<br>Predpokladaný počet prijatých uchádzačov: <b>80/50</b>
<br>
<br>Prihlášky do (1. kolo): <b>30.04.2022</b>
<br>Prihlášky do (2. kolo): <b>15.08.2022</b>
<br>
<br>Prihlášku je možné podať:
<ul>
<li>> poštou</li>
<li>> osobne v podateľni UCM</li>
<li>> elektronicky</li>
</ul>
<br> Prijímacia skúška: <b>bez prijímacích skúšok</b>
<br> Poplatok za prijímacie konanie: <b>25 €</b>
<br> Elektronické podanie prihlášky: <b>20 €</b> </div>
</div>
<div class="col-md-1">
<div class="full blog_img_popular"> </div>
</div>
<div class="col-md-5">
<div class="full blog_img_popular text_align_center"> <img class="img-responsive" src="images/p2.png" alt="#" />
<p>
<h4>Magister</h4>
<br>Predpokladaný počet prijatých uchádzačov: <b>30</b>
<br>
<br>Prihlášky do (1. kolo): <b>30.04.2022</b>
<br>Prihlášky do (2. kolo): <b>15.08.2022</b>
<br>
<br>Prihlášku je možné podať:
<ul>
<li>> poštou</li>
<li>> osobne v podateľni UCM</li>
<li>> elektronicky</li>
</ul>
<br> Prijímacia skúška: <b>bez prijímacích skúšok</b>
<br> Poplatok za prijímacie konanie: <b>25 €</b>
<br> Elektronické podanie prihlášky: <b>20 €</b> </div>
</div>
</div>
</div>
</div>
</div>
<!-- end section -->
<!-- section -->
<div class="section margin-top_50 silver_bg">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="full float-right_img">
<br>
<br>
<br>
<br> <img src="images/img6.png" alt="#" /> </div>
</div>
<div class="col-md-6 layout_padding_2">
<div class="full">
<div class="heading_main text_align_left">
<h2><span>CISCO Networking Academy</span></h2> </div>
<div class="full">
<p>Sieťový akademický program Cisco Networking Academy je dnes najväčší a najkomplexnejší profesne orientovaný vzdelávací program na svete, ktorý od roku 1999 získal na Slovensku významnú pozíciu v oblasti odborného vzdelávania.</p>
</div>
<div class="full"> <a class="hvr-radial-out button-theme" href="http://kai.rf.gd/ciscoform.html">Prihlás sa tu</a> </div>
</div>
</div>
</div>
</div>
</div>
<!-- end section -->
<!-- section -->
<div class="section layout_padding padding_bottom-0">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="full">
<div class="heading_main text_align_left">
<h2><span>Profil katedry</span></h2> </div>
<div class="full">
<p>Katedra aplikovanej informatiky sa dnes zameriava predovšetkým na výučbu, výskum a aplikácie v študijnom odbore Aplikovaná informatika.</p>
</div>
<div class="full"> <a class="hvr-radial-out button-theme" href="http://kai.rf.gd/about.html">Chcem viac info</a> </div>
</div>
</div>
<div class="col-md-6">
<div class="full"> <img class="img-responsive" src="images/img7.png" alt="#" /> </div>
</div>
</div>
</div>
</div>
<!-- end section -->
<!-- section -->
<div class="section layout_padding padding_bottom-0">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="full">
<div class="heading_main text_align_center">
<h2><span>Katedrové novinky</span></h2> </div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div id="demo" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="full blog_img_popular"> <img class="img-responsive" src="images/onlinevyucba.png" alt="#" />
<h4>Výučba od 08.11.2021</h4>
<p>Na základe rozhodnutia dekana FPV UCM v Trnave rozvrhy pre študijné programy aplikovaná informatika denné a externé štúdium sú v systéme AIS a všetko bude od <b>8.11.2021</b> prebiehať <b>online formou</b>.</p>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="full blog_img_popular"> <img class="img-responsive" src="images/vedatechnika.png" alt="#" />
<h4>Týždeň vedy a techniky na FPV UCM</h4>
<p>Týždeň vedy a techniky bude tento rok prezenčne aj online od 08.11.2021 do 12.11.2021</p>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="full blog_img_popular"> <img class="img-responsive" src="images/ochranaovzdusia.png" alt="#" />
<h4>Ochrana ovzdušia 2021</h4>
<p>Konferencia bude prebiehať súbežne v prezenčnej aj v online forme. Pripravili sme si pre Vás hodnotný program v rámci vybraných tém, ktoré súvisia s aktuálnou problematikou v oblasti ochrany ovzdušia.</p>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="full blog_img_popular"> <img class="img-responsive" src="images/stipendium.png" alt="#" />
<h4>Národný štipendijný program</h4>
<p>Výzva na predkladanie žiadostí na letný semester akademického roka 2021/2022 je <b>otvorená</b>. Štipendiá a cestovné granty NŠP sú určené pre študentov a doktorandov slovenských vysokých škôl, ako aj pre postdoktorandov. Deadline na podávanie prihlášok: <b>31.10.2021</b></p>
</div>
</div>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo" data-slide="prev"> <span class="carousel-control-prev-icon"></span> </a>
<a class="carousel-control-next" href="#demo" data-slide="next"> <span class="carousel-control-next-icon"></span> </a>
</div>
</div>
</div>
</div>
</div>
<!-- end section -->
<!-- section -->
<div class="section layout_padding padding_bottom-0">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="full">
<div class="heading_main text_align_center">
<h2><span>Napíšte nám</span></h2> </div>
</div>
</div>
</div>
</div>
</div>
<!-- end section -->
<!-- section -->
<div class="section contact_section" style="background:#12385b;">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="full float-right_img">
<br>
<br>
<br> <img src="images/img10.png" alt="#"> </div>
</div>
<div class="layout_padding col-lg-6 col-md-6 col-sm-12">
<div class="contact_form">
<form action="/php/form-process.php">
<fieldset>
<div class="full field">
<input type="text" placeholder="Vaše meno" name="name" /> </div>
<div class="full field">
<input type="email" placeholder="Vaša e-mailová adresa (povinné)" name="Email" required /> </div>
<div class="full field">
<textarea placeholder="Správa pre nás ..."></textarea>
</div>
<div class="full field">
<div class="center">
<button>Odoslať</button>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- end section -->
<!-- Start Footer -->
<footer class="footer-box">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-3">
<div class="footer_blog">
<div class="full margin-bottom_30"> <img src="images/footer_logo.png" alt="#" /> </div>
<div class="full white_fonts">
<p>Študijné oddelenie Fakulty prírodných vied
<br> Ing. Gabriela Jančovičová
<br> Kancelária: 309 (Nám. J. Herdu 2, 917 01 Trnava, 3. poschodie)</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-3">
<div class="footer_blog footer_menu white_fonts">
<h3>Rýchle odkazy</h3>
<ul>
<li><a href="https://www.ucm.sk/sk/zamestnanie/">> Zamestnanie</a></li>
<li><a href="https://kai.fpv.ucm.sk/virtualna-prehliadka/bakalarka.html">> Virtuálna prehliadka</a></li>
<li><a href="https://www.ucm.sk/sk/mapa-budovy/">> Mapa budovy</a></li>
<li><a href="https://www.ucm.sk/">> Univerzita sv. Cyrila a Metoda</a></li>
<li><a href="http://fpv.ucm.sk/">> Fakulta prírodných vied UCM</a></li>
</ul>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-3">
<div class="footer_blog full white_fonts">
<h3>Odber noviniek</h3>
<p>Chcete zasielať novinky na Váš e-mail?</p>
<div class="newsletter_form">
<form action="index.html">
<input type="email" placeholder="Zadajte Váš e-mail" name="#" required />
<button>Odoberať novinky</button>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-3">
<div class="footer_blog full white_fonts">
<h3>Kontaktujte nás</h3>
<ul class="full">
<li><img src="images/i5.png" alt="#"><span>Nám. J. Herdu 2<br>917 01 Trnava</span></li>
<li><img src="images/i6.png" alt="#"><span>studijne_fpv(zav.)ucm.sk</span></li>
<li><img src="images/i7.png" alt="#"><span>0335565316</span></li>
</ul>
</div>
</div>
</div>
</div>
</footer>
<!-- End Footer -->
<div class="footer_bottom">
<div class="container">
<div class="row">
<div class="col-12">
<p class="crp">Copyright © 2021-<script>document.write(new Date().getFullYear())</script> Lukáš Maár, Timea Danišová, Andrea Hornáčková
<br> Original icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> | Design by html.design</p>
</div>
</div>
</div>
</div> <a href="#" id="scroll-to-top" class="hvr-radial-out"><i class="fa fa-angle-up"></i></a>
<script src="js/jquery.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/jquery.pogo-slider.min.js"></script>
<script src="js/slider-index.js"></script>
<script src="js/smoothscroll.js"></script>
<script src="js/form-validator.min.js"></script>
<script src="js/contact-form-script.js"></script>
<script src="js/isotope.min.js"></script>
<script src="js/images-loded.min.js"></script>
<script src="js/custom.js"></script>
<script>
/* counter js */
(function($) {
$.fn.countTo = function(options) {
options = options || {};
return $(this).each(function() {
// set options for current element
var settings = $.extend({}, $.fn.countTo.defaults, {
from: $(this).data('from'),
to: $(this).data('to'),
speed: $(this).data('speed'),
refreshInterval: $(this).data('refresh-interval'),
decimals: $(this).data('decimals')
}, options);
// how many times to update the value, and how much to increment the value on each update
var loops = Math.ceil(settings.speed / settings.refreshInterval),
increment = (settings.to - settings.from) / loops;
// references & variables that will change with each update
var self = this,
$self = $(this),
loopCount = 0,
value = settings.from,
data = $self.data('countTo') || {};
$self.data('countTo', data);
// if an existing interval can be found, clear it first
if(data.interval) {
clearInterval(data.interval);
}
data.interval = setInterval(updateTimer, settings.refreshInterval);
// initialize the element with the starting value
render(value);
function updateTimer() {
value += increment;
loopCount++;
render(value);
if(typeof(settings.onUpdate) == 'function') {
settings.onUpdate.call(self, value);
}
if(loopCount >= loops) {
// remove the interval
$self.removeData('countTo');
clearInterval(data.interval);
value = settings.to;
if(typeof(settings.onComplete) == 'function') {
settings.onComplete.call(self, value);
}
}
}
function render(value) {
var formattedValue = settings.formatter.call(self, value, settings);
$self.html(formattedValue);
}
});
};
$.fn.countTo.defaults = {
from: 0, // the number the element should start at
to: 0, // the number the element should end at
speed: 1000, // how long it should take to count between the target numbers
refreshInterval: 100, // how often the element should be updated
decimals: 0, // the number of decimal places to show
formatter: formatter, // handler for formatting the value before rendering
onUpdate: null, // callback method for every time the element is updated
onComplete: null // callback method for when the element finishes updating
};
function formatter(value, settings) {
return value.toFixed(settings.decimals);
}
}(jQuery));
jQuery(function($) {
// custom formatting example
$('.count-number').data('countToOptions', {
formatter: function(value, options) {
return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
}
});
// start all the timers
$('.timer').each(count);
function count(options) {
var $this = $(this);
options = $.extend({}, options || {}, $this.data('countToOptions') || {});
$this.countTo(options);
}
});
</script>
</body>
</html>