Github mirror of "winter/snowflakes" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
wikimedia/winter-snowflakes
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Creating Snowflakes Snowflakes are Winter modules. They change the behavior of the prototype. Each snowflake requires two files: a javascript file and a css file. The css file can be empty but it *must* exist. Create a directory in the "snowflakes" directory named for your module. The .css and .js files must be named the same. So: snowflakes/mymodule/mymodule.js snowflakes/mymodule/mymodule.css The js file is a simple jquery thingamajig. Look at "darkfooter" for a simple example or "testmode" for a more complex one. Snowflakes are activated and loaded from index.html inside the primary <script> section. Look for the section labeled "WINTER: MODULES" and clone one of the lines below, inserting the name of the module to be loaded. The framework will take care of loading the js and css files for you. (Note that this process will likely be reworked to use a more intelligent manifest).
About
Github mirror of "winter/snowflakes" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Resources
Code of conduct
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published