summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-07-15 12:47:25 +0300
committerYuval Adam <yuval@y3xz.com>2015-07-15 12:47:25 +0300
commita891005fba979c91dd178a1887c1c393c15744b6 (patch)
tree1f1724539c75adcef573b7af677dc9a7cfdc93f1 /client/button.js
parent27ecdd40d3b7f225528848ef926887e88baaac11 (diff)
Initial homepage animation
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js
index adb83a0..542db24 100644
--- a/client/button.js
+++ b/client/button.js
@@ -1,3 +1,12 @@
+$(document).ready(function () {
+ if (window.location.pathname == '/') {
+ var i = 0;
+ setInterval(function() {
+ $('img.home-logo').attr('src', '/img/icons/1_' + ((++i%5)+1) + '.gif');
+ }, 2000);
+ }
+});
+
function prepareDates() {
var month = $('input[name=month]').val();
var year = $('input[name=year]').val();