diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-07-15 12:47:25 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-07-15 12:47:25 +0300 |
| commit | a891005fba979c91dd178a1887c1c393c15744b6 (patch) | |
| tree | 1f1724539c75adcef573b7af677dc9a7cfdc93f1 /client | |
| parent | 27ecdd40d3b7f225528848ef926887e88baaac11 (diff) | |
Initial homepage animation
Diffstat (limited to 'client')
| -rw-r--r-- | client/button.js | 9 | ||||
| -rw-r--r-- | client/templates/login.html | 2 |
2 files changed, 10 insertions, 1 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(); 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 @@ <template name="login"> <div class="login-wrapper"> <div class="login"> - <h1>m<img src="/img/icons/01.gif">des</h1> + <h1>m<img class="home-logo" src="/img/icons/1_1.gif">des</h1> <h2>Reflect Yourself</h2> <button class="login">Login with Instagram</button> </div> |
