diff options
-rw-r--r-- | service/pixelated/assets/Interstitial.html | 2 | ||||
-rw-r--r-- | service/pixelated/assets/Interstitial.js | 52 |
2 files changed, 27 insertions, 27 deletions
diff --git a/service/pixelated/assets/Interstitial.html b/service/pixelated/assets/Interstitial.html index cc029a9f..e98080be 100644 --- a/service/pixelated/assets/Interstitial.html +++ b/service/pixelated/assets/Interstitial.html @@ -4,7 +4,7 @@ <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <script src="assets/snap.svg-min.js"></script> + <script src="assets/snap.svg-min.js"></script> <script src="assets/jquery-2.1.3.min.js"></script> </head> diff --git a/service/pixelated/assets/Interstitial.js b/service/pixelated/assets/Interstitial.js index ba96a580..a4c689b9 100644 --- a/service/pixelated/assets/Interstitial.js +++ b/service/pixelated/assets/Interstitial.js @@ -11,7 +11,7 @@ if ($('#hive').length) { var rows = $(window).height() / height; var cols = (($(window).width() / width) / 2) + 1; - for(var j = 0; j < rows; j++) { + for (var j = 0; j < rows; j++) { for (var i = 0; i < cols; i++) { x = i * width + (j%2*width/2); y = j * height; @@ -21,37 +21,37 @@ if ($('#hive').length) { all.add(pixelated); - function brightenLogo() { - var glowPosition = Math.floor(Math.random()*rows*cols); + var brightenLogo = function () { + var glowPosition = Math.floor(Math.random()*rows*cols); - all[glowPosition].animate({fill: "#FFF"}, 1000, function() { - darkenLogo(all[glowPosition]); - }); - } + all[glowPosition].animate({fill: "#FFF"}, 1000, function() { + darkenLogo(all[glowPosition]); + }); + }; - function darkenLogo(el) { - el.animate({fill: "#908e8e"}, 1000, brightenLogo); - } + var darkenLogo = function (el) { + el.animate({fill: "#908e8e"}, 1000, brightenLogo); + }; brightenLogo(); } -$(function(){ - var handler = setInterval(function () { - $.ajax({ - method: 'GET', - url: '/' - }).success(function (data) { - if (/Pixelated Mail/g.test(data)) { - window.location.reload(true); - } - }); - }, 5000); - - $('#hive-section').height($(window).height()) - - $(window).resize(function() { - window.location.reload(true); +$(function () { + var handler = setInterval(function () { + $.ajax({ + method: 'GET', + url: '/' + }).success(function (data) { + if (/Pixelated Mail/g.test(data)) { + window.location.reload(true); + } }); + }, 5000); + + $('#hive-section').height($(window).height()); + + $(window).resize(function() { + window.location.reload(true); + }); }); |