JS1k elemental logo - original by @nodejitsu - modded by @feiss

JS1k: The JavaScript code golfing competition

2016 - Let's get eleMental!

Home   Rules   Demos   Submit

Competition rules 2016


The rules are simple:



But just to be sure:

  1. Size limit is 1024 bytes

    A byte is 8 bits. The count could be unequal to the character count due to various encoding schemes. The server will enforce this.
  2. No externals

    Use common sense. When in doubt, ask. If something obviously requires external input to display its functionality demo I will notify you and reject it.
  3. Must work as is in the provided shim

    There is one shim for all demos. It features the following. ("optional" means you can configure it when submitting your demo)

    1. Exposes the canvas in window.a, the body in window.b, the canvas 2d or 3d context in window.c, and the document in window.d
    2. the canvas is optional and fullscreen by default, configurable in submit form
    3. WebGL shim (same as last year) and 3d context are also configurable
    4. calling the demo restart function (top.reload()), is exactly the same as pressing the reload button and reinitialize the iframe
    5. normalization of vendor prefixed API's (please notify me if something needs unprefixing/normalization)
  4. May not escape the iframe

    Don't touch top or parent. Exception: top.reload(). You're allowed to adjust the url hash as long as you don't reload the page.
  5. Must be received before March 13th, 23:59 CET

    Form submission automatically closes March 13th 2016, midnight CET (Central European Time, that's GMT+1).
  6. Must work in at least two common desktop browsers

    Two of: Chromium, Firefox, Edge, and Safari. And at least Chromium or Firefox so I can check under linux. Mobile support is nice but not required.

    ES6 is not allowed this year. Support is too lacking. Probably next year.

    Versions: Chrome=48, Firefox=43, Edge=13, Safari=9.
  7. Theme is optional

    It is only a suggestion for inspiration. If you don't like the theme or had something else in mind by all means go for it.
  8. When in doubt: I decide

    And if it concerns an interpretation of the rules I will consult the judges on a verdict.