CanvasHTML5_DrawPicture("jspe", "presdisp");
CanvasHTML5_DrawPicture("eden-content", "presdispcanv");
/*
${{
// Creates the text area to code onto
$('').appendTo($('#eden-content'));
$("#jspe-dialog").attr("width", ($('#eden-content').width()-40)/2);
$("#jspe-dialog").attr("height", $("#tabs").height()-80);
// Puts a border on the canvas to show where it ends
$('#d1canvas').css('border-style', 'solid');
$('#jspe-dialog').css('border-style', 'solid');
// Some things to make this all resize
$(window).resize(function() {
$("#jspe-dialog").attr("height", $("#tabs").height()-80);
$("#jspe-dialog").attr("width",($('#eden-content').width()-40)/2);
$("#d1canvas").attr("width",($('#eden-content').width()-40)/2);
root.lookup("jspeleft").assign($('#jspe-dialog').position().left , this).value();
$('#jspe-dialog_slide').css("width",(($('#eden-content').width()-40)/2)-60);
});
}}$;
## Make the canvas half the screen
canvas.width = ${{ ($('#eden-content').width()-40)/2 }}$;
*/
## SlideButton to overcome Button limitations
${{
SlideButton = function (name, label, x, y, enabled) {
this.name = name;
this.label = label;
this.x = x;
this.y = y;
this.enabled = enabled;
}
}}$;
func SlideButton { ${{
var name = arguments[0];
var label = arguments[1];
var x = arguments[2];
var y = arguments[3];
var enabled = arguments[4];
return new SlideButton(name, label, x, y, enabled);
}}$; }
${{
SlideButton.prototype.draw = function(context) {
var me = "jspe_" + this.name;
var me2 = this.name;
var but = $("#"+me).get(0);
if (but === undefined) {
var dis = "";
if (this.enabled == true) { dis = ""; }
else { dis = "disabled=\"true\""; }
var can = $("#eden-content");
var buthtml = $("/g,"