login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

This web page provides a convenient way to try out and e... JavaScript code from the book Press On. It provides a ra... devices you can experiment with, a JSON import so you ca... devices, and an export function (currently supporting JS... SCXML, Dot

The Press On framework
http://www.cs.swan.ac.uk/~csharold/presson/framework.html#tag1

Categories

/Channels/HCI stuff

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

This web page provides a convenient way to try out and experiment with the JavaScript code from the book Press On. It provides a range of pre-defined devices you can experiment with, a JSON import so you can define your own devices, and an export function (currently supporting JSON, GraphML, SCXML, Dot and Mathematica data formats).

HTML

<p>This web page provides a convenient way to try out and experiment with the JavaScript code from the book <a href="http://mitpress.mit.edu/presson"><cite>Press On</cite></a>. It provides a range of pre-defined devices you can experiment with, a JSON import so you can define your own devices, and an export function (currently supporting JSON, GraphML, SCXML, Dot and Mathematica data formats).</p> <p> <script> // Code to accompany Press On, (c) Harold Thimbleby, MIT Press, 2007 // harold@thimbleby.net // In the book Press On, I used document.write(....) extensively // here, I've used docwrite(....), which is defined below, as an direct replacement for it. // The difference is that docwrite assembles the strings into a buffer, which is // written to an element's innerHTML; but the overall effect is the same. var debug = false; var details = true; // generate longer-winded explanations var verboseShortestPaths = false; // provide matrix details var tex = false; // false is the easiest to read // setting true generates text for Tex or Latex // which is how I got stuff into my book from here function trace(s) { if( debug ) alert(s); } </script></p>