-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
539 lines (441 loc) · 19 KB
/
index.html
File metadata and controls
539 lines (441 loc) · 19 KB
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
<!DOCTYPE html>
<html lang="en">
<head>
<title>file-system</title>
<script src='https://cdn.plot.ly/plotly-latest.min.js'></script>
<script>
// build the top left text ADDING lines to selected
// output of hemi4 and myText5
// function buildTXT1
var thu2 = "B Byzyzyz,B B60z60z,B Bzz==0=,B B,D N,F N"; // §§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§ filled CELLS
var thu2Ar = ["B Byz","B B60","B B","B B","D N","F N"];
var liStr = "00000, 0xy0z=3x0y0z=6, x0y0z=6, 0x0yz=2, 01111, xyz=11"; // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 'quirky'
var liM2 = ["00000","0xy0z=3x0y0z=6","x0y0z=6","0x0yz=2","01111","xyz=11"]
var strRZ = "BTC, A1.23 val, BHD, B0.23 val, BTC, C2.34 val , ZEC, D0.3 val, BHD, valE0.5";
var dataWORKZ = "BBDDDF, FHHHJJ, LLLNNN, PPRRRT, TVVVXX, ZZZ00";
var thuZ = ["BBDDDF","FHHHJJ","LLLNNN","PPRRRT","TVVVXX","ZZZ\\\\\\"];
var thuNumZ = "40.1496259351621,47.93926247288503,50.81967213114754,62.0253164556962"; // ########################################################################## daObJ0
var thu2Z = "B Byzyzyz,B B60z60z,B Bzz==0=,B B,D N,F N";
var thu2ZAr = ["B Byz","B B60","B B","B B","D N","F N"];
var strRK = "BTC, A1.23 val, BHD, B0.23 val, BTC, C2.34 val , ZEC, D0.3 val, BHD, valE0.5";
var dataWORKK = "BBDDDF, FHHHJJ, LLLNNN, PPRRRT, TVVVXX, ZZZ00";
var thuK = ["BBDDDF","FHHHJJ","LLLNNN","PPRRRT","TVVVXX","ZZZ\\\\\\"];
var thuKNumK = "40.1496259351621,47.93926247288503,50.81967213114754,62.0253164556962"; // ######################################################### daObJ0
var thuK2K = "B Byzyzyz,B B60z60z,B Bzz==0=,B B,D N,F N";
var thuK2KAr = ["B Byz","B B60","B B","B B","D N","F N"];
</script>
<!-- meta http-equiv="refresh" content="300" charset="utf-8" -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
body {
background-color: black;
font-family: Arial, Helvetica, sans-serif;
font-color: green;
}
/* Style the header */
.header {
background-color: black;
padding: 10px;
text-align: left;
font-size: 35px;
frameBorder: 0px;
}
/* Create three unequal columns that floats next to each other */
.column {
float: left;
padding: 1px;
}
/* Left and right column */
.column.side {
}
/* Middle column */
.column.middle {
width: 50%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
/* Style the footer */
.footer {
background-color: #f1f1f1;
padding: 10px;
text-align: center;
}
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {
.column.side, .column.middle {
width: 100%;
}
}
a:link, a:visited {
background-color: #008CBA;
color: black;
border: 2px solid white;
padding: 2px 5px;
text-decoration: none;
display: inline-block;
width:5%;
font-size: 16px;
text-align:left;
}
a:hover, a:active {
background-color: #e7e7e7;
color: darkgreen;
font-size: 16px;
}
.img2 {
position: absolute;
left: 0px;
top: 0px;
z-index: -1;
}
div.gallery {
margin: 5px;
border: 1px solid #ccc;
float: left;
width: 180px;
}
div.gallery:hover {
border: 1px solid #777;
}
div.gallery img {
width: 100%;
height: auto;
}
div.desc {
padding: 15px;
text-align: center;
}
/* The expanding image container */
.container {
position: relative;
display: none;
}
/* Closable button inside the expanded image */
.closebtn {
position: absolute;
top: 10px;
right: 15px;
color: white;
font-size: 35px;
cursor: pointer;
}
.buttonM {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button2 {background-color: #008CBA;border-radius: 12px;} /* Blue */
.button3 {background-color: #f44336;} /* Red */
.button4 {background-color: #e7e7e7; color: black;} /* Gray */
.button5 {background-color: #555555;} /* Black */
.storyTeller {
background-color: #1e1c1ecc;
color: lime;
border: 0px solid white;
padding: 2px 5px;
text-decoration: none;
display: inline-block;
width:100%;
font-size: 12px;
text-align:left;
}
</style>
</head>
<script>
function myFunction(imgs) {
var expandImg = document.getElementById("expandedImg");
var imgText = document.getElementById("imgtext");
expandImg.src = imgs.src;
imgText.innerHTML = imgs.alt;
expandImg.parentElement.style.display = "block";
}
function RunExe2(){
var shell2 = new ActiveXObject("WScript.Shell");
var path2 = '"http://127.0.0.1:8023"';
shell2.run(path2,1,false);
}
function w3_open() {
document.getElementById("mySidebar").style.display = "block";
}
function w3_close() {
document.getElementById("mySidebar").style.display = "none";
}
</script>
<script>
/* --------------------------------------##################################################### pack a bag for zoe */
function find(needle, haystack) {
var results = [];
var idx = haystack.indexOf(needle);
while (idx != -1) {
results.push(idx);
idx = haystack.indexOf(needle, idx + 1);
}
return results;
};
function pacK(a){
var beo=[];
var teo = beo.push(a);
return (document.getElementById("zoe").innerHTML = teo);
}
function sliCE(func, foxe){ /* -------------------------- drop foxe of func */
const xe = find(foxe, func);
if (xe == 0){
return func.slice(1) }
else {
return (func.slice(0, xe)).concat(func.slice(xe+1))
} };
// --------------------------------------- ++++++++++++++++ ################# ADDED 04-04-2012
</script>
<body>
<div class="row">
<div class="column middle" name="odey" style="background-color:none;color:lime;">
<a href="https://img.wallpapersafari.com/desktop/1024/576/8/39/tzVPdY.jpg" style="border-radius: 12px; padding: 2px 5px;" target="iframe_a0">back</a>
<textarea id="zoe" name="message" class="storyTeller" rows ="13" cols="150">
type: 'GET year 2012 GO 20' -- 'box3:' write date list of length 20 with Javascript
or month ..minute
write format to textarea 'zoe' : Date,Open
yyyy-mm-dd hh:mm, Float
I. prep a txt file with SearchCSV.hs
select and work a csv with Haskell
SearchCSV.hs write txt files to archive
e.g SearchCSV> checK "archive/BTC-USD.csv" "Open" 0
-- or 1..
II. type: 'SLICE 2 22 PLOT' plot line 2 to 22
e.g archive/btcNew.txt
needs format e.g :
Date,Open,Close -- or what you chose in Haskell
yyyy-mm-dd, Float -- set to plot 2 graphs by the two objects
'daObJ1' and 'daObJ2'
checK "archive/BTC-USD.csv" "Open" Write files that can be pluged into
the other searchboxes or use Haskell to write files with only on collumn that can
be selected via the choose file button, maybe fill the Angular form with
selections or txt files
I. II.
li list: ["0xy0z=3"."x0y0z=6","0x0yz=2","xyz=11"]
quirky:["00000","0xy0z=3x0y0z=6","x0y0z=6","0x0yz=2","01111","xyz=11"] |
abyssRun : "BBBDDF","FFHHJJ","JLLNNP","PPRRTT","TVVXXX","ZZZ\\\\^"] |
cells0: exports compare |
cells1: ------- ------- |
cell content with name e.g "B Bxyxyx" "B Bxyxyx" to "00000" =>
|
|cell content "Bxyxyx"
|
|cell content "00000" cells content foli4
</textarea>
<br><br>
<!-- <input type="text" id="fname" size="40" onkeypress="myFunction2(event)" onkeyup="myReg(myFunction2(event))"> -->
<p id="demo">1 & 2 regular expression search in input (under construction)</p>
<script>
</script>
<div>
<input type="text" id="myText2" class="storyTeller" rows="43" cols="150" style="background-color:none;color:lime;" onkeypress="myRegg()">
<p id="hemi"></p>
<script>
function myFunction() {
var x = document.getElementById("myText2").value;
document.getElementById("demo").innerHTML = x;
}
function geT(){
var workThu = Number(find((tgAr[0]), tgAr));
document.getElementById("hemi").innerHTML = " positions: "+ workThu + " length:" + thuZ.length;
};
function myRegg() {
var writeRg = document.getElementById("myText2").value;
var aRg = new RegExp ("("+writeRg+")", "g");
var patt1 = /(BTC|green)/g;
var prepZoe = JSON.stringify(thu2ZAr);
var result = thu2Z.match(aRg);
var fromZoe = document.getElementById("hemi2").innerHTML
var geTs = (find(writeRg, fromZoe));
document.getElementById("hemi").innerHTML = "<p>"+ (result)+ "</p><p \n> posi: "+geTs+"EXPLAIN length:" + thuZ.length + " of \'thu2Z\': ["+ thu2Z+"]</p>";
document.getElementById("zoe").innerHTML = "<p>"+ (result)+ "</p><p \n> posi: "+geTs+" length:" + thuZ.length + " of \'thu2Z\': ["+ thu2Z+"]</p>";
};
</script>
</div>
<!-- Snd command Line: hemi2 is myText3 -->
<div>
<p id="readeR"></p> <!-- readeR minipulate file javascript-->
<script>
let fileHandle;
butOpenFile.addEventListener('click', async () => {
// Destructure the one-element array.
[fileHandle] = await window.showOpenFilePicker();
// Do something with the file handle.
});
const file = await fileHandle.getFile();
const contents = await file.text();
</script>
</div>
<!-- end snd command lin e -->
<!-- 3rd command Line: hemi3 is myText4 -->
<div>
<input type="text" id="myText4" class="storyTeller" rows="43" cols="150" style="background-color:none;color:lime;" onkeypress="teRex()">
<p id="hemi3">'box3:'</p>
<script>
function myFunction6() { // $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -------------------$ hemi 3
var x = document.getElementById("myText4").value;
document.getElementById("hemi3").innerHTML = x;
}
function teRex() {
var writeRg = document.getElementById("myText4").value;
var aRg = new RegExp ("("+writeRg+")", "g");
var patt1 = /(BTC|green)/g;
var result = liStr.match(aRg);
// var result = thu2.match(aRg);
var geTs = (find(writeRg, liM2));
document.getElementById("hemi1").innerHTML = "<p>"+ (result)+ "</p><p \n> posi: "+geTs+" length:" + liStr.length + " of \'liStr\': ["+ liStr+"]</p>";
};
</script>
</div>
<!-- end 3rd command lin e -->
<!-- 4th command Line: hemi4 is myText5 -->
<div>
<input type="text" id="startDate" class="storyTeller" rows="43" cols="150" style="background-color:none;color:lime;" onkeypress="teRex3()">
<p id="hemi4"></p>
<script src="js/myTime.js"></script>
<script>
// e.g type 'GET year 2012 GO 20'
// => manipulate the random start date :2011-03-09 17:30 and choose the first 20
function teRex3(somedata) {
var readIn = document.getElementById("startDate").value;
var prepIO = (""+readIn+"").split(" "); // order stream prepIO[0] , prepIO[1] , ...
var ifLong = prepIO.length; // GET no list
var aRg = new RegExp ("("+readIn+")", "g"); // search own command
// var result = dataStr0.match(aRg2);
if ( (prepIO[0]) == (("GET").toString())){
document.getElementById("zoe").innerHTML = "<p> MyTime</p><p \n>selected "+prepIO[1]+" "+prepIO[2]+" start time:"+myDew(prepIO[1], prepIO[2])+" </p>";
if (prepIO[3]=="GO".toString() && (ifLong> 3)){
var text = "";
var motor = Number(prepIO[4]);
var counT = Number(prepIO[2]);
var i=0;
while (i<motor) {
var rekeN = i+counT;
var uiT = rekeN.toString();
text += "<br>line " + i+ " "+myDew(prepIO[1],uiT)+"\n";
i++;
}
document.getElementById("zoe").innerHTML = text;
}
}
// Type : 'SLICE year 2012' or 'SLICE month .. or 'SLICE day ...
// or e.g: 'SLICE 0 22 PLOT'
else if (prepIO[0]=="SLICE".toString() && ifLong > 0){
var ka = document.getElementById("readeR").text // ########################## the 'readeR' takes a fileHandle -> txt input
var fA = document.getElementById("zoe").value ; // ############ 'readeR' was preselected by 'SearchCSV.hs'
// var readIn = document.getElementById("startDate").value; ############ needs format : Date,Open
// ############ yyyy-mm-dd, Float
// ############ try : yyyy-mm-dd, Float, Float
var prepVALUES = (""+fA+"").split("\n");
// count the lines of input from 'readeR' passed via 'html' paragraph 'zoe'
ifLongREEF = prepVALUES.length;
stopper = prepIO[2];
//var tecH = prepVALUES[Number(prepIO[1])];
var tecH = prepVALUES.toString();
var motecH = prepVALUES.slice(1, 10);
var readIn2 = document.getElementById("startDate").text; // ################ text box4 the 'owned' console
var prepIO2 = (""+readIn2+"").split(" ");
function mappER(start, solong){ // ######################################### used for DATE
var myDateF = ""; // exports ['yyyy,mm,dd','yyyy,mm,dd',..'yyy,..dd']
var motor = solong // Number(prepIO2[1]); // plug into 'Plotly' library in PLOTTER entry below
var counT = start // Number(prepIO[2]);
var i=1;
while (i<motor) {
var rekeN = i+counT;
var uiT = rekeN.toString();
//fromFilE += ""+(((prepVALUES[i]).substring(1)).split(","))[1]+"\n,";
myDateF += " "+myDew(prepIO[1],uiT)+"\n";
i++;
}
return myDateF; }
function mappERDATA(start, solong, columN){ // ############ get txt -> 'readFile' -> readeR -> ka
// ############ -> ka -> Float
var myData = "";
var motor = solong // Number(prepIO2[1]);
var counT = start // Number(prepIO[2]);
var i=1;
while (i<motor) {
var rekeN = i+counT;
var uiT = rekeN.toString();
// fromFilE += ""+(((prepVALUES[i]).substring(1)).split(","))[1]+"\n,";
myData += ""+(((prepVALUES[i]).substring(1)).split(","))[columN]+"\n"; // ----------------------- SELECT collumn in FILE
i++;
}
return myData; }
// function does [String] to [Float]
// a str array to a float array
function aMAP(){
var foprepAr = (""+mappERDATA(2,6,1)+"").split("\n");
return foprepAr.map(Number)}
const reBuiL = "48.05194805194805,59.65065502183406"
function receiveString(some){
return some }; // turn string to object
if (prepIO[3]=="PLOT".toString() && ifLong == 4){ // ########################################
// const obJ1 = { "dataStr11" : "48.05194805194805,59.65065502183406" };
// ifLongREEF :: , select length n of input lines from file input
const starT = Number(prepIO[1]);
const endS = Number(prepIO[2]);
const obJ1 = { "dataStr11" : (receiveString(mappERDATA( starT, endS,1).split("\n") )) };
daObJ1 = new Object(obJ1);
const obJ2 = { "dataStr12" : (receiveString(mappERDATA( starT, endS,2).split("\n") )) };
daObJ2 = new Object(obJ2);
document.getElementById("hemi3").innerHTML = daObJ1.dataStr11 ; //new Object (""+JSON.stringify(tK)+"");
var data = [ // ########################################### PLOTTER entry
{
x: (mappER(0,ifLongREEF)),
y: (daObJ1.dataStr11), //prepVALUES, //array, //(mappERDATA(0,20,1).split("\n")),
type: 'scatter'
},
{
x: (mappER(0,ifLongREEF)),
y: (daObJ2.dataStr12), //prepVALUES, //array, //(mappERDATA(0,20,1).split("\n")),
type: 'scatter'
}
];
Plotly.newPlot('myDiv', data);
document.getElementById("zoe").innerHTML = mappERDATA( 2, 20,1) ;
// document.getElementById("hemi").innerHTML = ifLong.toString();
} }
};
/*
else {
var seaX = motR("year", 2012, 20);
document.getElementById("zoe").innerHTML = seaX ;
}
};
*/
</script>
</div>
</div>
<div class="column middle" name="odey" style="background-color:none;color:lime;">
<div id='myDiv'><!-- Plotly chart will be drawn inside this DIV --></div> <!-- ################4444$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ THE PLOTTER -->
</div>
<div class="column middle" name="odey" style="background-color:none;color:lime;">
<a href = "" border-radius: 12px; padding: 2px 5px;" target="iframe_a0">ticker</a>
<input type="file" id="fileInput">
<script src="js/readFile.js"></script>
<div class="storyTeller">
<!--textarea id="steno" class="storyTeller" rows="43" cols="150" src="https://angular-cloakswordwand.stackblitz.io">
</textarea -->
<iframe src="archive/cryptoTicker.html" name="iframe_a0" style="border:none;background:#d1d00f6;frameBorder:0;" width="100%" height="300px"></iframe>
</div>
<div class="storyTeller">
<iframe src="https://angular-cloakswordwand.stackblitz.io" name="iframe_a" style="border:none;background:#d1d00f6;frameBorder:0;" width="100%" height="500px"></iframe>
<br><br>
</div>
</div>
</body></html>