GithubHelp home page GithubHelp logo

mootools-demos's Introduction

MooTools Demos

This is the new MooTools Demo runner and the new MooTools Demos. The demos can be opened in jsFiddle for editing.

Creating new Demos

We're always looking for new demos that can be great additions to the docs or give the wow-effect for new users. With the demos we want to show what MooTools is capable of. The demos is a great way to contribute to MooTools in a easy way, by adding new demos and improving existing ones.

You can submit new demos by forking this repository and send us a pull request.

The demos directory contains all the demos. You can start creating a new demo by copying the directory of an existing demo. The name of the directory is the same as used in the URL after ?demo=.

Each demo contains at least four files:

  • demo.css - Contains the CSS for the demo, shows up in the CSS tab
  • demo.details - This is a YAML file which contains extra info, like a desription and links to the docs
  • demo.html - Contains the HTML of the demo, shows up in the HTML tab
  • demo.js - Contains the JavaScript of the demo, shows up in the JS tab

demo.js

demo.js is probably the most important file of the demo because it contains the MooTools code.

It is important to wrap the code in a domready event. This is important so it works in this demo runner as well as on jsfiddle.

window.addEvent('domready', function(){
	// code here
});

Code guidelines

We try to use the MooTools code guidelines. Those can be found in the MooTools Core Wiki

Used Color Scheme

In order to give the demos a consistent look, we use this Color Scheme

mootools-demos's People

Contributors

eerne avatar fakedarren avatar subhaze avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.