Eric, You have every right to be confused. There are really 2 different jdemo.ijs files on my Mac, but I was initially confusing about which one I wanted to use. Help from others have straightened me out, as much as that is possible (grin). The Helloworld example in the wiki was hard for me to refind because it was in the Trash there. But it gave me the clues to creating a standalone jhs page.
I am studying the fine work of the Tirrells in creating a d3 demo, especially in learning how to emulate a sort of index.html file <head> component in order to use existing js libraries and css files. The Tirrell's code in d3.ijs and d3boxplot.ijs (for example) has given me some hint about hints about accessing files saved in ~root, but I would like to access files in a subdirectory of the current project. If you or anyone else can shed any light on this issue, it would be very much appreciated. I have been hoping to reproduce something like the following index.html from Jason Seidelin's "Html5 Games" in hopes that I can adapt some features there to a version of the turtle graphics for j which uses opengl. (Apparently modernizr.js makes for better webpages relative to diverse browsers, and moderniizr.js uses another script named loader.js .) <!DOCTYPE HTML> <html lang="en_US"> <head> <meta charset="UTF_8"> <title>Jewel Warrior</title> <link rel="stylesheet" href="styles/main.css" /> <link rel="stylesheet" href="styles/fontfaces.css" /> <script src="scripts/modernizr.js"></script> <script src="scripts/loader.js"></script> </head> <body> <div id="game"> <div class="screen" id="splash-screen"> <h1 class="logo">Jewel <br/>Warrior<h1> <span>Click to continue</span> </div> <div class="screen" id="main-menu"></div> <div class="screen" id="game-screen"></div> <div class="screen" id="high-scores"></div> </div> </body> </html> On Mon, Jan 6, 2014 at 12:18 PM, Eric Iverson <eric.b.iver...@gmail.com>wrote: > Brian, > > I am confused by your stated problems and don't understand what it is > you want to do. > > A proper install of JHS has only 1 file called jdemo.ijs and it is in > the ide/jhs folder. It is a JHS page that displays information about > the JHS demos. It is the page loaded when you do: studio|demos > > Currently there is no demo shows how to use the html5 canvas element. > It should be fairly easy to create one. JHS default plot draws to an > html5 canvas element in the jijx page > > One could take one of the simpler J studio demos and modify it to have > an html5 canvas element and to then use ajax to get the data that > javascript would use to draw on the canvas area. This would be a good > exercise for any forum readers. > > The work done with jd3 is also very interesting. See jhelp page for > examples. But jd3 uses svg (an alternative to html5 canvas) for its > drawing area. > > -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm