GithubHelp home page GithubHelp logo

hidde / interactive-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdn/interactive-examples

0.0 1.0 0.0 2.82 MB

Home of the MDN live code editor interactive examples

License: Creative Commons Zero v1.0 Universal

JavaScript 61.23% Shell 0.46% CSS 4.27% HTML 34.04%

interactive-examples's Introduction

interactive-examples

Build Status

code style: prettier

Home of the MDN interactive code examples.

Folder structure

  • [css] - This contains the CSS used by the base templates.
  • [js] - This contains the JS used by the base templates.
  • [live-examples] - This contains the live example CSS and JS fragments.
  • [media] - The contains images used by the live examples and templates.
  • [tmpl] - The base templates.

The dynamically generated pages, their dependencies, and assets are generated to the gh-pages branch.

site.json

This describes the pages and bundles that make up the live examples.

Bundles

Bundles are mainly used by the base templates, and look like so:

"cssExamplesBase": {
    "javascript": ["js/lib/prism.js", "js/editable-css.js"],
    "css": ["css/editable-css.css", "css/libs/prism.css"],
    "destFileName": "css-examples-base"
},
  • javascript - This is an array of JS files that will be concatenated and Uglified.
  • css - This is an array of CSS files that will be concatenated.
  • destFileName - The file name to use for the generated bundle; .css or .js will be appended as appropriate.

Pages

This section is used to describe live example pages that will be generated. The schema is as follows:

"arrayFind": {
    "baseTmpl": "tmpl/live-js-tmpl.html",
    ["cssExampleSrc": "../../live-examples/css-examples/css/animation.css",]
    ["jsExampleSrc": "../../live-examples/js-examples/array-find.js",]
    ["exampleCode": "live-examples/css-examples/border-top-color.html",]
    "fileName": "array-find.html",
    "type": "js"
},
  • baseTmpl - The base template to use for this example.
  • cssExampleSrc - The file location that will be used as the value for the href attribute of a link tag.
  • jsExampleSrc - The file location that will be used as the value for the src attribute of a script tag.
  • exampleCode - This is currently only used by the CSS examples, and points to the location of the relevant live example HTML file.
  • fileName - This is the file name that will be used for the generated live example page.
  • type - The type of example; currently the only available types are js (JavaScript) or css.

Browser support baseline

The following is a list of browser/version combinations that are supported by the interactive editor. In browsers that do not meet the criteria, the editor degrades gracefully to displaying static examples.

  • Firefox - Latest three release versions.
  • Chrome - Latest three release versions.
  • Opera - Latest two release versions.
  • Safari - Latest two release versions.
  • Internet Explorer - version 11.
  • Edge - Latest release version.

Contributing

If you're interested in contributing to this project, great! Please see the CONTRIBUTING document.

Contributors

Thanks goes to these wonderful people (emoji key):


Schalk Neethling

๐Ÿ’ป ๐Ÿ“– โš ๏ธ

Mark Boas

๐Ÿ’ป ๐Ÿ“–

William Bamberg

๐Ÿ’ป ๐Ÿ“–

Stephanie Hobson

๐Ÿ’ป

Josh Mize

๐Ÿ’ป

Chris Mills

๐Ÿ“–

Dave Parfitt

๐Ÿ’ป

Normal Human

๐Ÿ“–

Gal Pasternak

๐Ÿ“–

SphinxKnight

๐Ÿ’ป

Ayush Gupta

๐Ÿ’ป

John Whitlock

๐Ÿ’ป ๐Ÿš‡

mfluehr

๐Ÿ“–

Paul Irish

๐Ÿ’ป

Dhruv Jain

๐Ÿ’ป

Ivan Ng

๐Ÿ’ป

CShepartd

๐Ÿ’ป

Kenrick

๐Ÿ’ป โš ๏ธ

Anton Boyko

๐Ÿ’ป

Daniel Hickman

๐Ÿ’ป

Rachel Andrew

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

interactive-examples's People

Contributors

maboa avatar mfluehr avatar stephaniehobson avatar jgmize avatar sphinxknight avatar danielhickman avatar kenrick95 avatar maddhruv avatar suknuk avatar chrisdavidmills avatar diablero13 avatar 7ayushgupta avatar bookshelfdave avatar galman33 avatar qwivan avatar jwhitlock avatar mlissner avatar normalhuman avatar paulirish avatar rachelandrew avatar anemy avatar

Watchers

James Cloos 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.