summaryrefslogtreecommitdiff
path: root/service/pixelated/assets
diff options
context:
space:
mode:
authorrafael lisboa <rafaelzlisboa@gmail.com>2015-06-03 15:03:22 -0300
committerrafael lisboa <rafaelzlisboa@gmail.com>2015-06-03 17:41:26 -0300
commitc06354963ed193061dce3901af2c49aa3f8093bf (patch)
tree94cf0af1a3e143f43be4e387da4ee108a5255dde /service/pixelated/assets
parent71cf8ea8469297494c9f010cb4fa607b9656500a (diff)
fix jshint for interstitial page
Diffstat (limited to 'service/pixelated/assets')
-rw-r--r--service/pixelated/assets/Interstitial.html2
-rw-r--r--service/pixelated/assets/Interstitial.js52
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);
+ });
});