From f8c8dcdbf986cc6b4cb284ad1c1f2a88a8c9b591 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Thu, 29 Jan 2015 12:08:53 +0100 Subject: Issue #237: Quick hack to solve resize problem. - Just reloads page on resize --- service/pixelated/assets/Interstitial.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'service/pixelated/assets') 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); + }); +}); -- cgit v1.2.3