-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
198 lines (174 loc) · 8.83 KB
/
index.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8">
<title>Cruncher</title>
<!-- jQuery -->
<script src="lib/js/jquery-1.8.3.js"></script>
<script src="lib/js/jquery.transit.js"></script>
<script src="lib/js/raphael-min.js"></script>
<script src="lib/js/d3.v3.js"></script>
<link href="lib/css/bootstrap.min.css" rel="stylesheet"></link>
<link href="lib/css/bootstrap-theme.min.css" rel="stylesheet"></link>
<script src="lib/js/bootstrap.min.js"></script>
<script src="lib/js/Blob.js"></script>
<script src="lib/js/FileSaver.js"></script>
<link rel="stylesheet" href="lib/css/font-awesome.css"></link>
<link rel="stylesheet" href="lib/css/keys.css"></link>
<script src="https://www.gstatic.com/firebasejs/3.6.8/firebase.js"></script>
<!-- CodeMirror -->
<link rel="stylesheet" href="lib/css/codemirror.css"></link>
<script src="lib/js/codemirror.js"></script>
<!-- root finder -->
<script src="lib/js/uniroot.js"></script>
<!-- Cruncher -->
<link rel="stylesheet" href="css/cruncher.css">
<script src="js/util.js"></script>
<script src="js/solver.js"></script>
<script src="js/value.js"></script>
<script src="js/parser.js"></script>
<script src="js/highlight.js"></script>
<script src="js/scrubbing.js"></script>
<script src="js/number-widget.js"></script>
<script src="js/line-state.js"></script>
<script src="js/connect.js"></script>
<script src="js/charts.js"></script>
<script src="js/graphs.js"></script>
<script src="js/docs.js"></script>
<script src="js/cruncher.js"></script>
<script>
$(function() {
$('.tool-buttons .btn').tooltip({
container: 'body',
placement: 'bottom'
});
});
</script>
</head>
<body>
<div id="toolbar">
<div id="tools">
<div id="title">
<input type="text" id="file-name"></input>
</div>
<div class="tool-buttons tool-buttons-left edit">
<a title="Lock" class="lock btn btn-default"><i class="fa fa-lock"></i></a>
</div>
<div class="edit tool-buttons tool-buttons-right">
<a title="New" class="new-doc btn btn-default"><i class="fa fa-file"></i></a>
<div class="btn-group">
<a title="Import from disk" class="import-doc btn btn-default"><i class="fa fa-cloud-upload"></i></a>
<input type="file" id="file-chooser"></input>
<a title="Export to disk" class="export-doc btn btn-default"><i class="fa fa-cloud-download"></i></a>
</div>
<a title="Save to link" class="save-doc btn btn-default"><i class="fa fa-floppy-o"></i></a>
<a title="Publish" class="publish-doc btn btn-default"><i class="fa fa-globe"></i></a>
<a title="About" class="about btn btn-default"><i class="fa fa-info-circle"></i></a>
</div>
<div class="view tool-buttons tool-buttons-right">
<a title="New" class="new-doc btn btn-default"><i class="fa fa-file"></i></a>
<a title="Export to disk" class="export-doc btn btn-default"><i class="fa fa-cloud-download"></i></a>
<a title="Save to new link" class="save-doc btn btn-default"><i class="fa fa-floppy-o"></i></a>
<a title="About" class="about btn btn-default"><i class="fa fa-info-circle"></i></a>
</div>
</div>
</div>
<div id="container">
<textarea id="code" name="code"></textarea>
<div id="overlay"></div>
<button id="embed-to-view"><i class="fa fa-expand"></i></button>
</div>
<div id="keys" style="display: none">
<div class="left">
<p><kbd>Cmd</kbd></p>
<p><kbd>Alt</kbd>+<kbd>drag</kbd></p>
</div>
<div class="right">
<p>see dependent values</p>
<p>scrub and see charts</p>
</div>
</div>
<div id="about" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Welcome to Cruncher</h4>
</div>
<div class="modal-body">
<p>Cruncher is a calculating notepad.</p>
<p>The first law of Cruncher is that <em>everything on the screen is true</em>.</p>
<p><img src="res/fruits.gif"></img></p>
<p>Cruncher has two kinds of numbers:</p>
<ul>
<li><span class="humans-numbers">human's numbers <i class="fa fa-pencil-square"></i></span>: you can change these</li>
<li><span class="computers-numbers">computer's numbers <i class="fa fa-cogs"></i></span>: Cruncher solves for these so equations stay true</li>
</ul>
<p>Cruncher can also <a class="show-plot-example" href="#">automatically plot changes</a> as you adjust a variable.</p>
<p class="plot-example"><img style="max-width: 100%; height: 207px;" src=""></img></p>
<p>Try bigger examples: <a href="?/examples/cdg">assorted examples</a>, <a href="?/examples/finals">final exams</a></p>
</div>
<div class="modal-footer">
<p><a href="http://rsnous.com">Omar Rizwan</a> (<a href="mailto:omar.rizwan@gmail.com">email</a>) built Cruncher (<a href="http://github.com/osnr/cruncher">source code</a>).</p>
</div>
</div>
</div>
</div>
<div id="publish" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Publish document</h4>
</div>
<div class="modal-body container-fluid">
<div class="row">
<div class="col-md-5">
<div class="checkbox">
<label>
<input class="publish-editable" checked="checked" type="checkbox"> Allow editing
</label>
</div>
<div class="checkbox">
<label>
<input class="publish-scrubbable" checked="checked" type="checkbox"> Allow scrubbing
</label>
</div>
<div class="checkbox">
<label>
<input class="publish-gutter" checked="checked" type="checkbox"> Show gutter on left edge
</label>
</div>
<div class="checkbox">
<label>
<input class="publish-hints" checked="checked" type="checkbox"> Keyboard hints on hover
</label>
</div>
<p>
<button class="btn btn-primary do-publish">Publish</button>
</p>
</div>
<div class="col-md-7">
<div class="panel panel-default">
<div class="panel-heading">Preview</div>
<div class="panel-body">
<iframe class="embed-preview" src=""></iframe>
</div>
</div>
<div class="form-group">
<p>Copy this code to embed your document somewhere:</p>
<textarea rows="3" class="embed-code form-control"></textarea>
</div>
<div class="form-group">
<p>Share this URL to let other people view (but not edit) your document:</p>
<input class="view-url form-control" type="text" readonly="readonly"></input>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="loading" style="display: none"></div>
</body>
</html>