summaryrefslogtreecommitdiff
path: root/service/pixelated/assets
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-01-29 12:08:53 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-01-29 12:08:53 +0100
commitf8c8dcdbf986cc6b4cb284ad1c1f2a88a8c9b591 (patch)
treeab2a8ae31b419449bd0a99ca0579c61b013471b0 /service/pixelated/assets
parente5692d6d992bb9899e62c573d0fa3b5be9540778 (diff)
Issue #237: Quick hack to solve resize problem.
- Just reloads page on resize
Diffstat (limited to 'service/pixelated/assets')
-rw-r--r--service/pixelated/assets/Interstitial.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/service/pixelated/assets/Interstitial.js b/service/pixelated/assets/Interstitial.js
index bc47615f..ba96a580 100644
--- a/service/pixelated/assets/Interstitial.js
+++ b/service/pixelated/assets/Interstitial.js
@@ -15,12 +15,12 @@ if ($('#hive').length) {
for (var i = 0; i < cols; i++) {
x = i * width + (j%2*width/2);
y = j * height;
- all.add(pixelated.clone().transform("translate("+x+","+y+")"));
+ all.add(pixelated.clone().transform("translate("+x+","+y+")"));
}
}
all.add(pixelated);
-
+
function brightenLogo() {
var glowPosition = Math.floor(Math.random()*rows*cols);
@@ -32,9 +32,9 @@ if ($('#hive').length) {
function darkenLogo(el) {
el.animate({fill: "#908e8e"}, 1000, brightenLogo);
}
-
+
brightenLogo();
-
+
}
$(function(){
@@ -50,4 +50,8 @@ $(function(){
}, 5000);
$('#hive-section').height($(window).height())
-}); \ No newline at end of file
+
+ $(window).resize(function() {
+ window.location.reload(true);
+ });
+});