-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
142 lines (116 loc) · 7.25 KB
/
app.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html>
<head>
<title>zed</title>
<meta http-equiv="content-language" content="en-US">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script src="externals/restyle.max.js"></script>
<script src="externals/document-register-element.max.js"></script>
<script src="externals/draggabilly-modified.js"></script>
<script src="externals/getStyleProperty.js"></script>
<script src="externals/mousetrap.js"></script>
<script src="externals/termlib.js"></script>
<script src="externals/termlib_parser.js"></script>
<script src="externals/polyfills/repeat.js"></script>
<script src="externals/FileSaver.js"></script>
<script src="lib/bundle.js"></script>
<script src="externals/raphael-min.js"></script>
<script src="externals/g.raphael-min.js"></script>
<script src="externals/g.line-min.js"></script>
<script src="externals/dygraph-combined.js"></script>
<script src="externals/handsontable.full.js"></script>
<link rel="stylesheet" media="screen" href="externals/handsontable.full.css">
<script src="externals/pixi.js"></script>
<script src="externals/matter-0.8.0.min.js"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-47048956-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="menu-hidden">
<div id="workbench">
<div id="edit" onclick="app.view.switchMode('edit')">
<div id="patch" onclick="window.selector.unselect()">
<div id="draggabilly-handle"></div>
</div>
</div>
<div id="message-div">
<span id="message"></span>
</div>
<div id="properties-frame">
<div>
<span style="font-size:smaller;">edit HTML content string</span>
<div id="block-inner-html" oninput="app.commands.updateCurrentBlockContent()" contenteditable></div>
</div>
<button class="zed-button close-button" onclick="app.commands.closeProperties()" onfocus="this.blur()">×</button>
</div>
<div id="command-line-frame">
<div id="command-line-terminal-wrapper" class="command-line"
onclick="app.commands.goToCommandLine();">
</div>
<button class="zed-button close-button" onclick="app.commands.closeCommandLine()" onfocus="this.blur()">×</button>
</div>
<div id="view-window" onclick="app.view.switchMode('presentation')">
<div class="button-bar">
<button class="zed-button" onclick="app.view.insertBlockContentInSelection();">insert block</button>
|
<button class="zed-button" id="lock-button" onclick="app.view.lock();" disabled>use</button>
<button class="zed-button" id="unlock-button" onclick="app.view.unlock();">edit</button>
</div>
<div class="view-frame">
<center style="margin: 30px; color: #777;">View</center>
<div id="presentation-div" style='height:300px'>
<div id="presentation" style="min-height:19px;text-align:center;" onclick="app.view.selectElement(event)">
</div>
</div>
</div>
<button class="zed-button close-button" onclick="app.commands.closeView()" onfocus="this.blur()">×</button>
</div>
<div id="link-to-github">
zed source codes are on <a style="color:#aaa" href="https://github.com/nnodot/zed">github</a>
</div>
<div id= "menu-zone">
<button class="zed-button" id="menu-button" onclick="body.classList.toggle('menu-hidden');">menu</button>
<button id="toggle-lock-button" class="zed-button" onclick="app.commands.toggleLock()" onfocus="this.blur()">toggle lock</button>
</div>
<div id="main-button-bar" class="button-bar">
Actions <br/><br/>
<button class="zed-button" onclick="app.commands.addButton()" onfocus="this.blur()">add button</button>
<button class="zed-button" onclick="app.commands.addScript()" onfocus="this.blur()">add script</button>
<button class="zed-button" onclick="app.commands.addText()" onfocus="this.blur()">add text</button>
<button class="zed-button" onclick="app.commands.addNumber()" onfocus="this.blur()">add number</button>
<button class="zed-button" onclick="app.commands.addComment()" onfocus="this.blur()">add comment</button>
<button class="zed-button" onclick="app.commands.addData()" onfocus="this.blur()">add data</button>
<button class="zed-button" onclick="app.commands.addEvent()" onfocus="this.blur()">add event</button>
</br>
<button class="zed-button" onclick="app.commands.addInput()" onfocus="this.blur()">add input</button>
<button class="zed-button" onclick="app.commands.addOutput()" onfocus="this.blur()">add output</button>
</br>
<button class="zed-button" onclick="app.commands.remove()" onfocus="this.blur()">delete</button>
<button class="zed-button" onclick="app.commands.clear()" onfocus="this.blur()">clear all</button>
</br>
<button class="zed-button" onclick="app.commands.save('file', 'patch.zed')" onfocus="this.blur()">export patch</button>
<span>
<button class="zed-button" style="display: inline-block;" onclick="this.parentNode.querySelector('input').click()">import patch</button>
<input type="file" style="display: none;" onchange="app.commands.load(event.target.files[0]);"/>
</span>
<button class="zed-button" onclick="app.commands.load('http', 'patches/main.zed')" onfocus="this.blur()">open main patch</button>
</br>
<button class="zed-button" onclick="app.commands.goToCommandLine()" onfocus="this.blur()">go to command line</button>
<button class="zed-button" onclick="app.commands.editHtml()" onfocus="this.blur()">open html editor</button>
<button class="zed-button" onclick="app.commands.toggleView()" onfocus="this.blur()">toggle view</button>
<button class="zed-button close-button" onclick="body.classList.toggle('menu-hidden');" onfocus="this.blur()">×</button>
</div>
</div>
</body>
<script>
window.app.init();
</script>
</html>