| Line 18: |
Line 18: |
| | | | |
| | this.autoStart = true; // Whether the snow should start automatically or not. | | this.autoStart = true; // Whether the snow should start automatically or not. |
| − | this.excludeMobile = false; // Snow is likely to be bad news for mobile phones' CPUs (and batteries.) Enable at your own risk. | + | this.excludeMobile = true; // Snow is likely to be bad news for mobile phones' CPUs (and batteries.) Enable at your own risk. |
| | this.flakesMax = 128; // Limit total amount of snow made (falling + sticking) | | this.flakesMax = 128; // Limit total amount of snow made (falling + sticking) |
| | this.flakesMaxActive = 64; // Limit amount of snow falling at once (less = lower CPU use) | | this.flakesMaxActive = 64; // Limit amount of snow falling at once (less = lower CPU use) |
| Line 29: |
Line 29: |
| | this.snowColor = '#fff'; // Don't eat (or use?) yellow snow. | | this.snowColor = '#fff'; // Don't eat (or use?) yellow snow. |
| | this.snowCharacter = '•'; // • = bullet, · is square on some systems etc. | | this.snowCharacter = '•'; // • = bullet, · is square on some systems etc. |
| − | this.snowStick = false; // Whether or not snow should "stick" at the bottom. When off, will never collect. | + | this.snowStick = true; // Whether or not snow should "stick" at the bottom. When off, will never collect. |
| | this.targetElement = null; // element which snow will be appended to (null = document.body) - can be an element ID eg. 'myDiv', or a DOM node reference | | this.targetElement = null; // element which snow will be appended to (null = document.body) - can be an element ID eg. 'myDiv', or a DOM node reference |
| | this.useMeltEffect = true; // When recycling fallen snow (or rarely, when falling), have it "melt" and fade out if browser supports it | | this.useMeltEffect = true; // When recycling fallen snow (or rarely, when falling), have it "melt" and fade out if browser supports it |
| | this.useTwinkleEffect = false; // Allow snow to randomly "flicker" in and out of view while falling | | this.useTwinkleEffect = false; // Allow snow to randomly "flicker" in and out of view while falling |
| − | this.usePositionFixed = true; // true = snow does not shift vertically when scrolling. May increase CPU load, disabled by default - if enabled, used only where supported | + | this.usePositionFixed = false; // true = snow does not shift vertically when scrolling. May increase CPU load, disabled by default - if enabled, used only where supported |
| | this.usePixelPosition = false; // Whether to use pixel values for snow top/left vs. percentages. Auto-enabled if body is position:relative or targetElement is specified. | | this.usePixelPosition = false; // Whether to use pixel values for snow top/left vs. percentages. Auto-enabled if body is position:relative or targetElement is specified. |
| | | | |
| Line 45: |
Line 45: |
| | this.vMaxX = 5; // Maximum X velocity range for snow | | this.vMaxX = 5; // Maximum X velocity range for snow |
| | this.vMaxY = 4; // Maximum Y velocity range for snow | | this.vMaxY = 4; // Maximum Y velocity range for snow |
| − | this.zIndex = 7000; // CSS stacking order applied to each snowflake | + | this.zIndex = 0; // CSS stacking order applied to each snowflake |
| | | | |
| | // --- "No user-serviceable parts inside" past this point, yadda yadda --- | | // --- "No user-serviceable parts inside" past this point, yadda yadda --- |