This repository has been archived by the owner on Dec 28, 2024. It is now read-only.
forked from waterbearlang/waterbear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgarden.html
121 lines (120 loc) · 5.4 KB
/
garden.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Waterbear: Code Garden</title>
<link href="stylesheets/workspace.css" rel="stylesheet" />
<link href="stylesheets/blocks.css" rel="stylesheet" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport" content="height=device-height, initial-scale=1.0" />
<!--link rel="apple-touch-icon-precomposed" href="icon.png"--><!-- 57x57 icon -->
<!--link rel="apple-touch-startup-image" href="default.png"--><!-- 320x460 image -->
<!--script src="/lib/modernizr-1.6.min.js"></script-->
</head>
<body>
<div class="content">
<div class="block_menu">
<section class="submenu">
<h3 class="select selected">About Waterbear</h3>
<div class="option">
<img src="images/waterbear.png" />
<p>Demo: <a href="http://waterbearlang.com/">waterbearlang.com</a></p>
<p>Source and info: <a href="http://github.com/waterbearlang/waterbear">github.com/waterbearlang/waterbear</a></p>
<p>Follow on twitter: <a href="http://twitter.com/waterbearlang">@waterbearlang</a></p>
<p>Discuss Waterbear on the <a href="http://lists.waterbearlang.com/listinfo.cgi/discuss-waterbearlang.com">mailing list</a></p>
<p>Waterbear image via: <a href="http://commons.wikimedia.org/wiki/File:Waterbear.jpg">commons.wikimedia.org</a>
</div>
</section>
</div>
<div class="tab_bar">
<div class="scripts_workspace_tab chrome_tab selected">Script Blocks</div>
<div class="scripts_text_view_tab chrome_tab">Script Text</div>
<button class="run_scripts">Run</button>
<button class="goto_stage">Show Stage</button>
<button class="clear_scripts">Clear Scripts</button>
<button class="demo_scripts">Demos</button>
<button class="save_scripts">Save</button>
<button class="restore_scripts">Restore</button>
<button class="layout_blocks">Layout</button>
</div>
<div class="tab_bar2">
<button class="goto_script">Back to Script</button>
<button class="clear_canvas">Clear Stage</button>
<button class="run_scripts">Run</button>
</div>
<div class="workspace">
<div class="scripts_workspace"></div>
<div class="scripts_text_view"></div>
</div>
<div class="stage"></div>
</div>
<div class="hidden" id="color_popup">
<div id="color_contents"></div>
</div>
<div class="hidden dialog" id="save_dialog">
<div id="save_dialog_contents">
<h2>Save the current script</h2>
<input id="script_name" placeholder="Script Name" />
<textarea id="script_description" placeholder="Optional Description"></textarea>
<button class="save">Save</button>
<button class="export">Export</button>
<button class="cancel">Cancel</button>
</div>
</div>
<div class="hidden dialog" id="restore_dialog">
<div id="restore_dialog_contents">
<h2>Restore a script</h2>
<ul class="scrollList" id="script_list">
</ul>
<button class="cancel">Cancel</button>
<button class="exp">From Export</button>
</div>
</div>
<div class="hidden dialog" id="demos_dialog">
<div id="demos_dialog_contents">
<h2>Load a demo</h2>
<ul class="scrollList" id="demo_list">
</ul>
<button class="cancel">Cancel</button>
</div>
</div>
<div class="hidden dialog"id="exp">
<h2>Exported Code</h2>
<small>Copy this into a text document to save for your records. More info in the <em>Need Help?</em> tab</small>
<br/><br/>
<textarea></textarea>
<button class="done">Done</button>
</div>
<script src="lib/jquery-1.7.1.min.js"></script>
<script src="lib/jquery.hotkeys.js"></script>
<script src="lib/jquery.querystring.js"></script>
<script src="lib/yepnope.1.0.2-min.js"></script>
<script src="lib/jquery.bpopup-0.5.1.min.js"></script>
<script src="lib/jquery.autoGrowInput.js"></script>
<script src="lib/json2.js"></script><!-- Make this conditional -->
<script src="scripts/drag.js"></script>
<script src="scripts/blocks.js"></script>
<script src="scripts/runtime.js"></script> <!-- Should this be moved to language? -->
<script src="scripts/workspace.js"></script>
<script>
var q = $.parseQuery();
if(!q.plugin || q.plugin == "undefined" || q.plugin == null)
window.location = "./";//If they don't have the plugin part of the query string lets send them back home.
var testRes = ({
"javascript" : "plugins/javascript.js",
"arduino" : "plugins/arduino.js"
})[ q.plugin ];
yepnope({
test : testRes,
yep : testRes,
complete : function () {
if(! testRes ){
window.location = "./";
alert('Sorry the plugin: \"'+q.plugin+'\" does not exist. \n\n We\'ll rediect you back to the main page to choose one that is available.');
}
}
});
</script>
</body>
</html>