Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FF fix.

  • Loading branch information...
commit c3137619985e453ac00915ef0e0a1ecb52da6c71 1 parent 42bca0b
@lokesh authored
Showing with 12 additions and 3 deletions.
  1. +2 −1  css/base.css
  2. +1 −1  index.html
  3. +9 −1 js/mm_particles.js
View
3  css/base.css
@@ -31,8 +31,9 @@ body {
font-size: 16px;
line-height: 1.625em;
}
-#loading small{
+#loading .browsers{
font-size: 12px;
+ display: none;
}
#hd{
position: absolute;
View
2  index.html
@@ -16,7 +16,7 @@
<div id="cloud"></div>
<div id="loading">
Give it a sec&hellip;<br />
- <small>(Looks best in Chrome or Safari)</small></div>
+ <small class="browsers">(Looks best in Chrome or Safari)</small></div>
<header id="hd">
<ul>
View
10 js/mm_particles.js
@@ -11,8 +11,10 @@
var SHOW_FORCES = false,
SHOW_STATS = false;
+var SLOW_BROWSER = ($.browser.mozilla || $.browser.msie)? true: false;
+
// screen size variables
- SCREEN_WIDTH = window.innerWidth,
+var SCREEN_WIDTH = window.innerWidth,
SCREEN_HEIGHT = window.innerHeight,
HALF_WIDTH = window.innerWidth / 2,
HALF_HEIGHT = window.innerHeight / 2;
@@ -193,8 +195,10 @@ function makeParticle(particleCount) {
particle.gravity = 0;
particle.drag = 0.999;
particle.shrink = 0.99;
+
particle.alpha = .7;
particle.fade = 0.0015;
+
// sets the blend mode so particles are drawn with an additive blend
particle.compositeOperation = 'lighter';
@@ -234,5 +238,9 @@ function toggleforceSet(){
$(document).ready(function(){
init();
+ if(SLOW_BROWSER){
+ $('.browsers').show();
+ }
$('#loading').fadeOut(5000);
+
});
Please sign in to comment.
Something went wrong with that request. Please try again.