Skip to content

Commit 7bb0151

Browse files
committed
initial port; rendering looks slightly messed up at the moment
0 parents  commit 7bb0151

File tree

3 files changed

+487
-0
lines changed

3 files changed

+487
-0
lines changed

index.html

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
<head>
5+
<meta charset="utf-8">
6+
<script type="text/javascript">
7+
WebFontConfig = {
8+
google: { families: [ 'Gloria Hallelujah' ] },
9+
active: function () {
10+
FONTS_ACTIVE = true;
11+
if (typeof drawDiagram === 'function') drawDiagram();
12+
}
13+
};
14+
(function() {
15+
var wf = document.createElement('script');
16+
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
17+
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
18+
wf.type = 'text/javascript';
19+
wf.async = 'true';
20+
var s = document.getElementsByTagName('script')[0];
21+
s.parentNode.insertBefore(wf, s);
22+
})();
23+
</script>
24+
25+
<link rel="stylesheet" href="shaky.css">
26+
</head>
27+
<body>
28+
<button id="save">save as</button><input type="text" id="name" value="image.png"/><br/>
29+
<textarea id="textarea" style="font-family: monospace;" cols="60" rows="45">
30+
+------------+ +------------+
31+
| | | |
32+
| CONTEXT |&lt;-+ | CONTEXT |&lt;-+
33+
| | | | | |
34+
+------------+ | +------------+ |
35+
| |
36+
+------------+ | +------------+ |
37+
| getY | | | getY | |
38+
| | | | | |
39+
| *------+--+ | *------+--+
40+
| | | | | |
41+
+------------+ | +------------+ |
42+
| |
43+
+------------+ | +------------+ |
44+
| getX | | | getX | |
45+
| | | | | |
46+
| *------+--+ | *------+--+
47+
| | | | | |
48+
+------------+ | +------------+ |
49+
| |
50+
+------------+ | +------------+ |
51+
| getSum | | | getSum | |
52+
| | | | | |
53+
| *------+--+ | *------+--+
54+
| * | | * |
55+
+-----+------+ +-----+------+
56+
| |
57+
+----------+-------+
58+
|
59+
v
60+
+--------------------+
61+
| SharedFunctionInfo|
62+
| * |
63+
+----------+---------+
64+
|
65+
v
66+
+--------------------+
67+
| unoptimized Code |
68+
| |
69+
??? &lt;--+---* getX call |
70+
| |
71+
??? &lt;--+---* getY call |
72+
| |
73+
+--------------------+
74+
</textarea>
75+
<canvas id="canvas" width="640" height="480"></canvas>
76+
77+
<script type="text/coffeescript" src="shaky.coffee"></script>
78+
<script src="http://coffeescript.org/extras/coffee-script.js"></script>
79+
</body>
80+
</html>

0 commit comments

Comments
 (0)