-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathindex.html
154 lines (128 loc) · 7.24 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Graphr - The JavaScript Graphing Calculator</title>
<link rel="stylesheet" type="text/css" href="jsgcalc.css" />
<script type="text/javascript" src="http://www.yerich.net/jquery.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/1.3.0/math.min.js"></script>
<script type="text/javascript" src="calc.js"></script>
<script type="text/javascript" src="jsgcalc.js"></script>
<script type="text/javascript" src="jsgui.js"></script>
</head>
<body>
<div id="wrapper">
<div id="hideSidebar"><a href="javascript:void(0)" onclick="jsgui.hideSidebar()">»</a></div>
<div id="showSidebar"><a href="javascript:void(0)" onclick="jsgui.showSidebar()">«</a></div>
<div id="toolbar">
<div id="tool_select">
<a href="javascript:void(0)" onclick="jsgui.setTool('pointer')" id="tool_select_pointer" class="toolbar_option toolbar_selected">
<img src="images/pointer.png" alt="Pointer" title="Pointer"/></a>
<a href="javascript:void(0)" onclick="jsgui.setTool('trace')" id="tool_select_trace" class="toolbar_option">
<img src="images/trace.png" alt="Trace" title="Trace"/></a>
<a href="javascript:void(0)" onclick="jsgui.setTool('vertex')" id="tool_select_vertex" class="toolbar_option">
<img src="images/minmax.png" alt="Local Minima/Maxima" title="Local Minima/Maxima"/></a>
<a href="javascript:void(0)" onclick="jsgui.setTool('root')" id="tool_select_root" class="toolbar_option">
<img src="images/root.png" alt="Root" title="Root"/></a>
<a href="javascript:void(0)" onclick="jsgui.setTool('intersect')" id="tool_select_intersect" class="toolbar_option">
<img src="images/intersect.png" alt="Intersect" title="Intersect"/></a>
<a href="javascript:void(0)" onclick="jsgui.setTool('derivative')" id="tool_select_derivative" class="toolbar_option">
<img src="images/derivative.png" alt="Derivative" title="Derivative"/></a>
<a href="javascript:void(0)" onclick="jsgui.setTool('zoombox')" id="tool_select_zoombox" class="toolbar_option">
<img src="images/zoombox.png" alt="ZoomBox" title="ZoomBox"/></a>
<a href="javascript:void(0)" onclick="jsgui.setTool('zoomin')" id="tool_select_zoomin" class="toolbar_option">
<img src="images/zoomin.png" alt="Zoom In" title="Zoom In"/></a>
<a href="javascript:void(0)" onclick="jsgui.setTool('zoomout')" id="tool_select_zoomout" class="toolbar_option">
<img src="images/zoomout.png" alt="Zoom Out" title="Zoom Out"/></a>
</div>
</div>
<div id="toolboxes">
<div class="toolbox" id="toolbox_zoombox">
<div class="toolbox_header">
<div class="toolbox_close"><a href="javascript: void(0)">close</a></div>
Window Options
</div>
<div class="toolbox_main">
<table>
<tr>
<td></td>
<td align="center">y-max: <input id="toolbox_zoombox_ymax" class="jsgcalc_ymax" type="text" size="4" /></td>
<td></td>
</tr>
<tr>
<td>x-min:<br /><input id="toolbox_zoombox_xmin" class="jsgcalc_xmin" type="text" size="4" /></td>
<td align="center"><img src="graph.png" style="width: 70px;"/></td>
<td>x-max:<br /><input id="toolbox_zoombox_xmax" class="jsgcalc_xmax" type="text" size="4" /></td>
</tr>
<tr>
<td></td>
<td align="center">y-min: <input id="toolbox_zoombox_ymin" class="jsgcalc_ymin" type="text" size="4" /></td>
<td></td>
</tr>
</table>
<a class="fancybutton" href="javascript: void(0)"
onclick="jsgcalc.setWindow($('#toolbox_zoombox_xmin').val(), $('#toolbox_zoombox_xmax').val(), $('#toolbox_zoombox_ymin').val(), $('#toolbox_zoombox_ymax').val())">
Apply</a>
<br /><br />
<a href="javascript: void(0);" onclick="jsgcalc.resetZoom()">Reset View</a>
</div>
</div>
<div class="toolbox" id="toolbox_trace">
<div class="toolbox_header">
<div class="toolbox_close"><a href="javascript: void(0)">close</a></div>
Trace
</div>
<div class="toolbox_main">
x: <input id="toolbox_trace_input" class="jsgcalc_trace_input" type="text" size="20" style="width: 95%" /><br />
y: <input id="toolbox_trace_output" class="jsgcalc_trace_output" type="text" size="20" style="width: 95%" /><br /><br />
<a class="fancybutton" href="javascript: void(0)" onclick="jsgui.doTrace($('#toolbox_trace_input').val())">Trace</a><br />
</div>
</div>
</div>
<div id="sidewrapper">
<div id="graph_sidebar">
<h1 style="font-family: Lato, Arial, sans-serif; font-style: italic; font-size: 28pt; color: #3d94f6; text-shadow: 1px 1px #FFF ">Graphr</h1>
<span style="font-size: 90%; position: relative; bottom: 4px;"><em>The JavaScript Graphing Calculator</em>
</span><br /><br />
<div id="graph_inputs">
</div>
<br />
<div id="buttonbar">
<a class="fancybutton" href="javascript:void(0)" onclick="jsgui.evaluate()">Evaluate</a>
<a class="fancybutton" href="javascript:void(0)" onclick="jsgui.addInput()">+</a>
<a class="fancybutton greybutton" href="javascript:void(0)" id="settings_button" onclick="$('#settings').toggle(400)"><img src='images/settings.png' alt='Settings' /></a><br /><br />
</div>
<div id="settings">
<div id="angle_select" class="options_list">
<a href="javascript:void(0)" onclick="jsgui.setAngles('degrees')" id="angle_select_degrees" class="option">DEG</a>
<a href="javascript:void(0)" onclick="jsgui.setAngles('radians')" id="angle_select_radians" class="option option_selected">RAD</a>
<a href="javascript:void(0)" onclick="jsgui.setAngles('gradians')" id="angle_select_gradians" class="option">GRAD</a>
</div>
<div id="gridlines_select" class="options_list">
Gridlines:
<a href="javascript:void(0)" onclick="jsgui.setGridlines('normal')" id="gridlines_select_normal" class="option option_selected">NORMAL</a>
<a href="javascript:void(0)" onclick="jsgui.setGridlines('less')" id="gridlines_select_less" class="option">LESS</a>
<a href="javascript:void(0)" onclick="jsgui.setGridlines('off')" id="gridlines_select_off" class="option">OFF</a>
</div>
<div id="quality_select" class="options_list">
Precision:
<a href="javascript:void(0)" onclick="jsgui.setQuality(0.1)" id="quality_select_01" class="option">LOW</a>
<a href="javascript:void(0)" onclick="jsgui.setQuality(0.5)" id="quality_select_05" class="option">MED</a>
<a href="javascript:void(0)" onclick="jsgui.setQuality(1)" id="quality_select_1" class="option option_selected">HIGH</a>
<a href="javascript:void(0)" onclick="jsgui.setQuality(5)" id="quality_select_5" class="option">ULTRA</a>
</div>
</div>
<p>By <a href="http://www.yerich.net">Richard Ye</a> |
<a href="javascript: void(0);" onclick="about()">Disclaimer</a> | <a href="https://github.com/yerich/Graphr">GitHub</a><br />
<span style="color: #999">Development (version 0.4)</span></p>
</div>
</div>
<div id="graph_wrapper">
<canvas id="graph">Sorry, your browser does not support this application. The following browsers are supported:<br /><br />
<a href="http://www.google.com/chrome/">Google Chrome</a><br /><a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a><br />
<a href="http://www.opera.com/">Opera</a></canvas>
</div>
</div>
</body>
</html>