summaryrefslogtreecommitdiff
path: root/web-ui/public/Interstitial.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/public/Interstitial.js')
-rw-r--r--web-ui/public/Interstitial.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web-ui/public/Interstitial.js b/web-ui/public/Interstitial.js
index ac5a789a..05c5ff29 100644
--- a/web-ui/public/Interstitial.js
+++ b/web-ui/public/Interstitial.js
@@ -1,7 +1,7 @@
if ($('#hive').length) {
var hive = new Snap('#hive');
var img_width = $('#hive').width();
- var left_pos = img_width * .5;
+ var left_pos = img_width * 0.5;
var pixelated = hive.path("M12.4,20.3v31.8l28,15.8l28-15.8V20.3l-28-15.8L12.4,20.3z M39.2,56.4l-16.3-9V27.9l16.3,9.3L39.2,56.4z M57.7,47.4l-16.1,9l0-19.2l16.1-9.4V47.4z M57.7,25.2L40.4,35.5L22.9,25.2l17.5-9.4L57.7,25.2z").transform("translate(319, 50)").attr("fill", "#908e8e");
var all = hive.group().transform("matrix(2, 0, 0, 2, -100, -100)");
@@ -14,8 +14,8 @@ if ($('#hive').length) {
for (var j = 0; j < rows; j++) {
for (var i = 0; i < cols; i++) {
- x = i * width + (j%2*width/2);
- y = j * height;
+ var x = i * width + (j%2*width/2);
+ var y = j * height;
all.add(pixelated.clone().transform("translate("+x+","+y+")"));
}
}
@@ -23,6 +23,7 @@ if ($('#hive').length) {
all.add(pixelated);
var brightenLogo = function () {
+ 'use strict';
var glowPosition = Math.floor(Math.random()*rows*cols);
all[glowPosition].animate({fill: "#FFF"}, 1000, function() {
@@ -31,6 +32,7 @@ if ($('#hive').length) {
};
var darkenLogo = function (el) {
+ 'use strict';
el.animate({fill: "#908e8e"}, 1000, brightenLogo);
};
@@ -39,6 +41,7 @@ if ($('#hive').length) {
}
$(function () {
+ 'use strict';
var handler = setInterval(function () {
$.ajax({
method: 'GET',