From a891005fba979c91dd178a1887c1c393c15744b6 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Wed, 15 Jul 2015 12:47:25 +0300 Subject: Initial homepage animation --- client/button.js | 9 +++++++++ client/templates/login.html | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'client') 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(); diff --git a/client/templates/login.html b/client/templates/login.html index 6826908..5a22eb3 100644 --- a/client/templates/login.html +++ b/client/templates/login.html @@ -1,7 +1,7 @@