Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.89 KB

readme.md

File metadata and controls

34 lines (21 loc) · 1.89 KB

JavaScript Sandbox Console

js sandbox console screenshot

The js sandbox console is a javascript playground designed to enhance demos and homepages for javascript libraries, plugins and scripts, giving visitors an easy and chilled-out way to test-drive the functionality - without whacking open their Firebug / Dev Tools console.

Live demo and such:

Check out the project homepage for a live demo, features, installation guide and more info!

by joss

Changelog

0.1.5

  • Adds setValue method, to set the value inside the sandbox

0.1.4

  • Adds an iframe setting on the Sandbox Model that, when active, creates a hidden iframe and evaluates all commands inside its 'sandboxed' scope - this blocks access to globals and prevents users screwing up the DOM.
  • Adds a script loader method, sandbox.model.load, that injects a script into the page (or the iframe), making it available for the user.
  • Adds a special command, :load, available from the sandbox command line, that load's a script into the global context (most useful in iframe mode. Usage eg: :load http://code.jquery.com/jquery-1.6.4.js

0.1.3

  • Added very basic stringification for objects. If JSON.stringify(obj) works, it prints the result, otherwise it's obj.toString() like a loser. Soon try to integrate a custom solution like in jsconsole.com, that includes circular structures, native/browser objects, and object methods.

0.1.2

  • Mirrored gh-pages and master, much easier than trying to maintain both separately.

0.1.1

  • Added view.toEscaped method to escape HTML strings so that they can be safely templated into the output

0.1

  • First release