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 +- public/img/icons/01.gif | Bin 3835 -> 0 bytes public/img/icons/1_1.gif | Bin 0 -> 3835 bytes public/img/icons/1_2.gif | Bin 0 -> 2534 bytes public/img/icons/1_3.gif | Bin 0 -> 3136 bytes public/img/icons/1_4.gif | Bin 0 -> 3955 bytes public/img/icons/1_5.gif | Bin 0 -> 3537 bytes 8 files changed, 10 insertions(+), 1 deletion(-) delete mode 100644 public/img/icons/01.gif create mode 100644 public/img/icons/1_1.gif create mode 100644 public/img/icons/1_2.gif create mode 100644 public/img/icons/1_3.gif create mode 100644 public/img/icons/1_4.gif create mode 100644 public/img/icons/1_5.gif 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 @@