From c06354963ed193061dce3901af2c49aa3f8093bf Mon Sep 17 00:00:00 2001 From: rafael lisboa Date: Wed, 3 Jun 2015 15:03:22 -0300 Subject: fix jshint for interstitial page --- service/pixelated/assets/Interstitial.html | 2 +- service/pixelated/assets/Interstitial.js | 52 +++++++++++++++--------------- 2 files changed, 27 insertions(+), 27 deletions(-) (limited to 'service/pixelated/assets') 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 @@ - + 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); + }); }); -- cgit v1.2.3