MediaWiki:Wikia.js

// 22:51, December 17, 2014 (UTC) // 

// Add Special:Contributions, Special:Watchlist, & Special:Following to AccountNavigation in Wikia skin importScriptPage('MediaWiki:Wikia.js/accountNavigation.js', 'admintools'); // END Add Special:Contributions, Special:Watchlist, & Special:Following to AccountNavigation in Wikia skin

/** @license
 * DHTML Snowstorm! JavaScript-based snow for web pages
 * Making it snow on the internets since 2003. You're welcome.
 * Version 1.44.20131111 (Previous rev: 1.43.20111201)
 * Copyright (c) 2007, Scott Schiller. All rights reserved.
 * Code provided under the BSD License
 * http://schillmania.com/projects/snowstorm/license.txt
 * http://schillmania.com/projects/snowstorm/license.txt

/*jslint nomen: true, plusplus: true, sloppy: true, vars: true, white: true */ /*global window, document, navigator, clearInterval, setInterval */

var snowStorm = (function(window, document) {

// --- common properties ---

this.autoStart = true;         // Whether the snow should start automatically or not. 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.flakesMaxActive = 640;    // Limit amount of snow falling at once (less = lower CPU use) this.animationInterval = 33;   // Theoretical "miliseconds per frame" measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower this.useGPU = true;            // Enable transform-based hardware acceleration, reduce CPU load. this.flakeBottom = null;       // Integer for Y axis snow limit, 0 or null for "full-screen" snow effect this.followMouse = true;       // Snow movement can respond to the user's mouse this.snowColor = '#fff';       // Don't eat (or use?) yellow snow. this.snowCharacter = '•'; // • = bullet, · is square on some systems etc. 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.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.usePositionFixed = false; // true = snow does not shift vertically when scrolling. May increase CPU load, disabled by default - if enabled, used only where supported

// --- less-used bits ---

this.freezeOnBlur = true;      // Only snow when the window is in focus (foreground.) Saves CPU. this.flakeLeftOffset = 0;      // Left margin/gutter space on edge of container (eg. browser window.) Bump up these values if seeing horizontal scrollbars. this.flakeRightOffset = 0;     // Right margin/gutter space on edge of container this.flakeWidth = 8;           // Max pixel width reserved for snow element this.flakeHeight = 8;          // Max pixel height reserved for snow element this.vMaxX = 5;                // Maximum X velocity range for snow this.vMaxY = 4;                // Maximum Y velocity range for snow this.zIndex = 0;               // CSS stacking order applied to each snowflake

// --- "No user-serviceable parts inside" past this point, yadda yadda ---