forked from musicmunky/Graphr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·214 lines (163 loc) · 7.26 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="ru">
<head>
<title>#csv2svg</title>
<meta charset="UTF-8"/>
<link href="css/ui_style.css" rel="stylesheet"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=1"/>
<script src="js/math.min.js"></script>
<script src="js/jquery-3.2.1.js"></script>
<script src="out2.js"></script>
<link href="img/icon3.png" rel="icon"/>
</head>
<body>
<div id="header">
<div id="logo_holder">
<div id="logo"></div>
</div>
<div id="header_text">Drawing diagrams from user data https://github.com/yaroslav1982/Graphr
</div>
<div>
<a href="index_ru.html"><font color="white">Русский (Россия) RU</font></a>
</div>
</div>
<div id="content_holder">
<div class="container centered">
<div class="content_header">Preparing the workspace (or just press the "Find points" and "Next" buttons)</div>
<div class="text_container">
Enter the functions (for example, by pressing the "tan (x)" and exp (x) buttons), fill in from/to/step fields and click on the "Find points" button. <br/> If there are several functions, separate them with ";". If you press the wrong button - press the reset "C".
<br/>
If necessary, select or enter the size of the workspace.<br/>
<strong class="undisplayable">You can find the minima / maxima values of functions by clicking on "f (Xmin) =" / "f (Xmax) ="<br/>
(or simply write some expression instead of functions, for example "2 * pi", and see the result).</strong>
<br/><strong class="undisplayable">You can upload the CSV file (or any other data file).</strong>
<br/>
Click the "Next" button to go to the plotting.<br/>
</div>
<div class="ui_button" id="del" onclick="DOBA('CLS')">C</div>
<div class="btn_group">
<div class="ui_button" onclick="DOBA('x^2')">x^2</div>
<div class="ui_button" onclick="DOBA('sin(x)')">sin(x)</div>
<div class="ui_button" onclick="DOBA('cos(x)')">cos(x)</div>
<div class="ui_button" onclick="DOBA('tan(x)')">tan(x)</div>
<div class="ui_button" onclick="DOBA('exp(x)')">exp(x)</div>
<div class="ui_button" onclick="DOBA('log(x)')">log(x)</div>
</div>
<div class="ui_button" id="calc_min" onclick="CAREmin()"">f(Xmin)=</div>
<div class="ui_button" id="calc_max" onclick="CAREmax()"">f(Xmax)=</div>
<textarea class="input_type" id="tX" name="target"></textarea>
<div><input id="tX" class="input_type" placeholder="f(Xmin&Xmax") style="display: none;"></div>
</div>
<div class="container">
<div class="flexed_block">
<div>F(x)</div>
<div>X range</div>
</div>
<div class="flexed_block centered">
<div>f(x)=
<textarea class="input_type" id="tCare" name="target">x^2; sin(x)</textarea>
<input id="tCare" style="display: none;" class="input_type" placeholder="x^2; sin(x)"/>
</div>
<div>From <input id="textFrom" class="input_type" type="text" placeholder="1"/></div>
<div><b class="undisplayable"></b>Step<b class="undisplayable"></b> <input id="textStep" class="input_type" placeholder="0.1"/></div>
<div>To <input id="textTo" class="input_type" type="text" placeholder="10"/></div>
</div>
</div>
<div class="container centered">
<div class="flexed_block doubled">
<div>Workspace size (selected):
<select id="paper" name="paper"class="input_type" onchange="onlyrest()">
<option value=1>1748;1240;A3(Horizontal)</option>
<option value=2>1240;1748;A3(Vertical)</option>
<option value=3>1240;874;A4(Horizontal)</option>
<option value=4 >874;1240;A4(Vertical)</option>
<option value=5 selected >874;620;A5(Horizontal)</option>
<option value=6>620;874;A5(Vertical)</option>
</select>
</div>
<div>
Workspace size (user defined):
<input id="A4WH" class="input_type" value="874;620;A5(Horizontal)"/>
</div>
</div>
</div>
<div class="container">
<div class="right_sided">
<div class="ui_button" id="calc_button" onclick="CARE()">Find points</div>
<div class="ui_button" id="next_button">Next>></div>
<div class="ui_button" id="calc_button" onclick="DTMM()" style="display: none;">Find Min/Max</div>
</div>
</div>
<div id="data_block" class="container" style="display: none;">
<div class="centered">
<div>
<textarea class="input_type" id="target" name="target"></textarea>
</div>
<div>
<textarea class="input_type" id="delimiters" name="delimiters" style="display: none;height:90px;"></textarea>
</div>
</div>
</div>
<div class="container">
<div class="right_sided">
<div class="ui_button" id="smooth_button" style="display: none;">Rock magnetic parameters</div>
</div>
</div>
<div class="container undisplayable">
<div class="hideable">
<div class="hideable_title"><p class="icon hide_icon"></p>Load file</div>
<div class="centered" style="display: none;">
<div class="mobile lined">Browse file for upload:</div>
<input type="file" id="fileToLoad" onchange="loadCSVtext()" accept=".csv">
<div class="ui_button" id="lolo" onclick="loadCSVtext()">Second attempt</div>
<div class="btn_group">
<div class="ui_button" onclick="DTMA3()" style="display: none;">Diff (DTMA)</div>
<div class="ui_button" onclick="DJIn()" style="display: none;">Diff (DJIn)</div>
</div>
<div class="text_container">
Click "Next" button after upload.
</div>
<div><textarea id="inputTextToSave" class="input_type" style="display: none;"></textarea></div>
</div>
</div>
</div>
</div>
<div id="wrapper"></div>
<div id="footer">
<div id="site_data">Customer: Yaroslav Solyanikov (Ярослав Соляников) +79140317248 @yaroslav1982<br>Contractor: Vladislav Muhamediev (Владислав Мухамедиев)<br>
</div>
</div>
This site uses programming code and Javascript/jQuery files from:<br>
https://github.com/musicmunky/Graphr
and
https://github.com/DmitryBaranovskiy/raphael
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter42436314 = new Ya.Metrika({
id:42436314,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "https://mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/42436314" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<script src="XY.js"></script>
<script src="js/index_scripts.js"></script>
<script src="js/ui_script.js"></script>
</body>
</html>