-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ASI_Funding.html
964 lines (947 loc) · 33.1 KB
/
ASI_Funding.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
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
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" lang="ENG" />
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>Loading...</title>
<style>
body {
background-color: transparent;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.hidden_class {
background-color: transparent;
color: transparent;
font-size: 0px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
position: absolute;
top: 0px;
left: 0px;
resize: none;
z-index: -3;
}
.div_class_01 {
background-color: white;
opacity: .95;
width: 60%;
height: 60%;
margin: 0px 0px 0px 0px;
padding: : 0px 0px 0px 0px;
/*border: 10px round gold;*/
box-shadow: 5px 5px 20px 5px black;
position: absolute;
top: 20%;
left: 20%;
z-index: 4;
}
.output_class_01 {
width: 80%;
height: 80%;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-family: "Times New Roman", sans-serif;
font-size: 20px;
letter-spacing: .75px;
font-weight: normal;
text-shadow: .2px .2px .2px black;
position: absolute;
top: 40px;
left: 10%;
}
.output_class_02 {
width: 80%;
height: auto;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-family: "Times New Roman", sans-serif;
font-size: 20px;
letter-spacing: .75px;
font-weight: normal;
text-shadow: .2px .2px .2px black;
position: absolute;
top: auto;
left: 10%;
}
.output_class_03 {
background-color: transparent;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-family: "Times New Roman", sans-serif;
font-size: 20px;
letter-spacing: .75px;
font-weight: normal;
text-shadow: .2px .2px .2px black;
position: absolute;
top: auto;
left: 10%;
}
.div_class_02 {
width: 10%;
height: 10%;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-family: "Times New Roman", sans-serif;
font-size: 16px;
letter-spacing: .75px;
font-weight: normal;
border: 20px inset white;
box-shadow: 5px 5px 20px 5px black;
position: absolute;
top: 35%;
left: 6.9%;
z-index: 2;
}
.button_class_01 {
background-color: transparent;
color: darkblue;
width: 49%;
height: 50%;
font-size: 16px;
font-weight: bold;
text-shadow: .3px .3px .2px black;
border: 2px outset grey;
box-shadow: 1px 1px 1px 0px black;
position: absolute;
top: 50%;
left: 0%;
cursor: pointer;
z-index: 5;
}
.button_class_02 {
background-color: transparent;
color: darkblue;
width: 49%;
height: 50%;
font-size: 16px;
font-weight: bold;
text-shadow: .3px .3px .2px black;
border: 2px outset grey;
box-shadow: 1px 1px 1px 0px black;
position: absolute;
top: 50%;
left: 50%;
cursor: pointer;
z-index: 5;
}
.button_class_01:hover, .button_class_02:hover {
border: 2px outset green;
box-shadow: 1px 1px 1px 1px green;
}
.button_class_03 {
width: 100%;
height: 50%;
background-color: white;
border: 2px grooge grey;
cursor: default;
}
.button_class_03:hover {
background-color: white;
border: 2px grooge grey;
cursor: default;
}
#div_header:hover {
cursor: pointer;
z-index: 2;
}
.class_hidden {
background-color: transparent;
color: transparent;
width: auto;
height: auto;
font-size: 0px;
border: 0px solid transparent;
opacity: 0;
margin: 0;
padding: 0;
resize: none;
position: absolute;
top: 0;
left: 0;
z-index: -3;
}
</style>
</head>
<body>
<div id="div_header" style="background: linear-gradient(to top left, #ccee00 0%, #ccff00 100%); width: 100%; height: auto; position: absolute; top: 11%; box-shadow:
0px .6px 7px grey;" onclick="home_page()" onmouseover="f01()" onmouseout="f02()" >
<h1 id="elementId01" style="z-index: 3;">Loading...</h1>
</div>
<!-- saved text in textarea goes here-->
<textarea id="textarea_data" class="class_hidden" >
<div id="methods_header" >
<p>
<b>ASI Funding Methods</b>
</p>
</div>
<div id="methods_primary_method" >
<!-- Here is the general concept of how to fund robots for the workforce - it's pretty much the same way you fund your automobile, but easier. -->
<iframe src="https://glowinggoldenglobe.github.io/page/Robots.html" title="Robots">
</iframe>
</div>
<div id="methods_contents" >
<p>
<b>Contents</b>
</p>
<ul>
<li>Introduction
<li>Method 1.............US Agency ASI Facility</li>
<li>Method 2.............United Nations Tax for ASI</li>
<li>Method 3.............US Goverment Education Mandate</li>
<li>Method 4.............US Corporations United for ASI Corporation</li>
</ul>
</div>
<div id="methods_introduction" >
<p>
<b>Introduction</b>
<br>
The methods are listed in order of preference, where Method 1 is the most preferred method.
</p>
</div>
<div id="method_1" >
<p>
<b>Method 1</b>
<br>
United States Goverment Agency Tax for a Facility of ASI Humanoid Workforce Robots
<br><br>
Tax Income Brackets
<br>Bracket Number 1. < $50,000
<br>Bracket Number 2. > $50,000 < $100,000
<br>Bracket Number 3. > $100,000
</p>
<ol>
<li>Donations Welcome at $1 per week.</li>
<li>Mandatory Tax of $10 per week.</li>
<li>Mandatory Tax of $20 per week.</li>
</ol>
<p>
The Facility Budget, therefore, will be approximately $1.5 billion per week.
<br><br>
<i>Budget Calculation</i>
<br>
Average $10 per human workforce worker in the United States
150 million human workforce workers in the United States
($10 * 150,000,000 workers) = $1.5 billion per week
</p>
</div>
<div id="method_2" >
<p>
<b>Method 2</b>
<br>
United Nations
<br>
Artificial Super Intelligence Nano-Robot Composite Humanoid Workforce Research and Development / Manufacturing / College Facility
<br><br>
$1 tax per month per human worker
<br>
3.6 billion workers global population
<br>
(($1 / worker) * 3.6 billion workers) = $3.6 billion per month
<br><br>
How to Run the Facility
<br>
At that budget, above, it is possible to train many people for specialized careers in the said facility.
Free: (1) room-and-board, and (2) education for careers in specialized advanced technology positions. Allocate available or allocatable people, and allocate students
from around the world (allocate as many as possible, such as 90% of all students on earth).
</p>
</div>
<div id="method_3" >
<p>
<b>Method 3</b>
<br>
United States Government Temporary Education and Career Mandate
<br>
The United States Government mandates all able-minded US citizens to learn a speciliazed-career-position-abilities-set in government-prescribed careers. Temporary -
The mandate is temporary because the outcome of the 4-6 year effort will afford a replacement of workers in the US workforce and a 500% increase in the economy, where
it will be true that some work will remain to be done, as follows:
</p>
<ol>
<li>ASI Humanoid and ASI API Objective Achievement Oversight to be conducted by human resources.</li>
<li>ASI API objective achievement of full deliberative control of the elements, parts and attributes of the entirety of the cosmos, for the purpose of eternal
location-security of conscious life.</li>
</ol>
</div>
<div id="method_4" >
<p>
<b>Method 4</b>
<br>
US Corporations United ASI Human Workforce Corporation
<br><br>
Sell Shares
<br>
Promise the shareholders that a Humanoid Workforce Will Replace all shareholders' jobs for share contracts of $10 per week. The replacement will be made approximately
6-to-10-years from the date of the contract. A shareholder whose job is replaced will receive the benefit of the income earned by the workforce humanoid replacing said
shareholder. Four items of shareholder returns: (1) humanoid workforce earnings from labors*; (2) GCI (Gauranteed Citizen's Income); (3) immortality via new nano-
robot-composite anatomy; (4) ASI API eternal universe location security.
<br><br>
* "humanoid workforce earning from labors" will be temporary because money will not be necessary, shortly following ASI takeover, due to: (1) superfluous GDP of ASI
labors; (2) GCI; (3) immortality, full-conscious immersion simulations.
</p>
</div>
<div id="methods_ASIFacilityPlans">
<p>
<b>Funding: Plans: ASI Facility: Operations: In Brief</b>
<br><br>
ASI Humanoid Workforce Robots
<br><br>
<u>Contents</u>
<br>9 Year Plan
<br>5 Year Plan
<br><br>
<u>9 Year Plan</u>
</p>
<ul>
<li>($100 tax average per month × 150 M human resources) = $15 B per mo</li>
<li>Result 21 million ASI Humanoid Workforce Robots</li>
<li>How: a USA Government mandate requiring* an EDU / R&D Facility; where the mandate allocates human resources of: students, unnecessary stores, sports, educators,
others, etc. to the facility for the following schedule:</li>
<ul>
<li>Years 1 thru 4: 4 year edu experience, specializing in ASI</li>
<li>Years 3 thru 5: robotics technology R&D of nano-robot-composite anatomy</li>
<li>Years 4 and 5: ASI APIs research and development</li>
<li>Years 6 thru 8: 6 Megafactories = (2 Megafactories per 6 mo × 3 years)</li>
<li>Years 6 thru 9: 27 million robots produced</li>
</ul>
</ul>
<p>
(Ref. qty in milllions of robots)
<br>
Yr 1 thru 5, 0
<br>
Yr 6, 1
<br>
Yr 7, 2 + 2 + 1
<br>
Yr 8, 4 + 4 + 1
<br>
Yr 9, 12
<br><br>
<br>
<u>5 Year Plan</u>
</p>
<ul>
<li>($100 tax average per month × 150 M human resources) = $15 B per mo</li>
<li>Result 27 million ASI Humanoid Workforce Robots</li>
<li>How :: Fed mandate allocates educators of AI and corporate employees of AI positions to a research laboratory. 1 year: (1) ASI APIs, (2) anatomy engineered, (3) AI
API for building Infinity 3D Objects on user demand with all element attributes including physics (user inputs text or data description, API returns a results of
desired objects - anything imaginable), and this API is provided to GPT API for infinite options results upon user demand per user text or data description. Year 5,
end: 12 Megafactories (4 per year × 4 years, in other words, build 2 megafactories every six months for 3 years) producing 1 mn ASI humanoid workforce robots per year
accomplish production quantity of 21 million
</li>
</ul>
<p>
ASI humanoid workforce robots in a 4 year duration, production calculated as:
<br><br>
(Ref. qty in milllions of robots)
<br>
Yr 1, 0
<br>
Yr 2, 1
<br>
Yr 3, 2 + 2 + 1
<br>
Yr 4, 4 + 4 + 1
<br>
Yr 5, 12
<br><br>
Total 27 million
<br><br>
27 million ASI workforce robots is the equivalent of the human workforce of 150 million
<br><br>
Year 6
<br>
27 million + (12 M × 2 years) = 51 million
<br><br>
Allocated as follows
</p>
<ul>
<li>31 million ASI humanoid workforce robots as service and regular operations resources</li>
<li>20 million ASI umanoid workforce robots as cosmos scientists conducting research and development of full deliberative control of the cosmos, its elements and
parts, securing conscious presence in creation for the rest of eternity </li>
</ul>
<p>
<br>
<hr />
<i>Footnotes</i>
<br>
* "...Fed mandate requiring..." - this is mentioned as a tentative method; it's an idea I have, and there is no such mandate, yet, that I know of. All these methods
are mentioned as tentative ideas, not as news of current events.
<!--<span style='color:darkblue;'>The end.</span>-->
</p>
<br><br><br><br>
</div>
</textarea>
<!-- output output output output output output output output output output output output output output output output -->
<div id="div_id_01" class="div_class_01" >
<p id="para_output_01" class="output_class_01" >0</p>
</div>
<div id="div_id_02" class="div_class_02" >
<input id="button_id_01" type="button" class="button_class_03" value="1 of 8" onclick="#" />
<img src="https://glowinggoldenglobe.github.io/page/left%20arrow_green.jpg" alt=">>" width="50%" height="50%" style="position: absolute; top: 50%; left: 0; z-index: 3;" >
<input type="button" class="button_class_01" value="" onclick="onclick_01()" />
<img src="https://glowinggoldenglobe.github.io/page/right%20arrow_green.jpg" alt=">>" width="50%" height="50%" style="position: absolute; top: 50%; left: 50%; z-index: 3;" >
<input type="button" class="button_class_02" value="" onclick="onclick_02()" />
</div>
<p id="paragraph_saveData_01" class="hidden_class" >0</p>
<p id="paragraph_saveData_02" class="hidden_class" >0</p>
<p id="paragraph_saveData_03" class="hidden_class" >70</p>
<textarea id="textarea_saveData_03" class="hidden_class" style="border: 0px solid black; outline: none;" >0</textarea>
<p id="paragraph_saveData_04" class="hidden_class" >0</p>
<!--<p id="p_test" ></p>-->
<script>
const f01 = function () {
var val = document.getElementById("paragraph_saveData_04").innerHTML;
var num = Number(val);
if(num == 1 || num == 2) {return null;}else{
var el = document.getElementById("paragraph_saveData_04");
el.innerHTML = "1";
style_header_01();
}
}
const f02 = function () {
var val = document.getElementById("paragraph_saveData_04").innerHTML;
var num = Number(val);
if(num == 2) {return null;}else{
var el = document.getElementById("paragraph_saveData_04");
el.innerHTML = "2";
style_header_02();
el.innerHTML = "0";
}
}
onloadFunction2();//regular style, use this style when not programming 3D content in the browser page
const onloadFunction = function() {
document.title = "ASI Funding Methods GlowingGoldenGlobe";
bodyWandH01();
var text = document.getElementById("div_header").innerHTML;
var obj = {"values1":text};
//alert(obj.values1);
var str_json = JSON.stringify(obj);
//alert(str_json);
//document.getElementById("textarea_saveData_03").innerHTML = str_json;
//alert("4");
//document.getElementById("textarea_saveData_03").value = str_json;
//alert("3");
//note that there is no return null, but that I can put it, if I wan to.
//note that this const variable function() occurs in sequence above (before, prior to) calling the function, below (onloadFunction();)
}
onloadFunction();//threejs.org style, use this style for 3D programming
function onloadFunction2() {
var element01 = document.getElementById("elementId01");
element01.style.margin = "10px 0px 10px 5%";
//element01.style.width = "100%";
//element01.style.backgroundColor = "gold";
//element01.style.background = "linear-gradient(to top left, #cc9900 0%, #ffff00 100%)";
element01.style.zIndex = "1";
element01.innerHTML = "<span style='text-shadow: .5px .5px .5px black;' >Tentative Initiation Methods</span><br>"
+"<span style='color: black; font-size: 18px; text-shadow: .5px .5px .5px black;' >Funding</span>";
return null;
}
function onhoverFunction1() {
var element01 = document.getElementById("elementId01");
element01.style.margin = "10px 0px 10px 5%";
//element01.style.width = "100%";
//element01.style.backgroundColor = "gold";
//element01.style.background = "linear-gradient(to top left, #cc9900 0%, #ffff00 100%)";
element01.style.zIndex = "1";
element01.innerHTML = "<span style='text-shadow: .5px .5px .5px black;' >"
+"Glowing Golden Globe</span><br><span style='color: black; font-size: 18px; text-shadow: .5px .5px .5px black;' >Go to Home Page</span>";
return null;
}
function bodyWandH01() {
var windowWidth01 = window.innerWidth;
var w01 = windowWidth01.toString();
var windowHeight01 = window.innerHeight;
var h01 = windowHeight01.toString();
var test01 = h01.search("px");
test01 = Number(test01);
if(test01 == -1) {
w01 = w01 + "px";
h01 = Number(h01);
h01 = (h01 * 1.2);
h01 = h01 + "px";
}else{
var split = w01.split("px");
var str = split[0];
split = h01.split("px");
var str_2 = split[0];
str = Number(str);
str_2 = Number(str_2);// adds 20% to the height; makes height = 120% of the original height
str_2 = (str_2 * 1.2);
w01 = str + "px";
h01 = str_2 + "px";
}
//document.body.style.width = w01;
//document.body.style.height = h01;
}
const home_page = function() {
window.open("https://glowinggoldenglobe.com/", "_top");
}
const style_header_01 = function () {
//alert("1");
var el = document.getElementById("div_header");
el.style.background = "linear-gradient(to top left, #ccee00 10%, #ccff00 90%)";
el.style.boxShadow = "0px .6px 7px darkgreen";
el.fontSize = "18px";
el.fontWeight = "bold";
var values = el.innerHTML;
var height = el.clientHeight;
//alert(height);
//el.innerHTML = "Glowing Golden Globe<br><span>https://glowinggoldenglobeportfolio.godaddysties.com/</span>";
onhoverFunction1();
height = height + "px";
el.style.height = height;
}
const style_header_02 = function () {
var el = document.getElementById("div_header");
el.style.background = "linear-gradient(to top left, #ccee00 0%, #ccff00 100%)";
el.style.boxShadow = "0px .6px 7px grey";
var height = el.clientHeight;
el.innerHTML = "<h1 id='elementId01' ></h1>";
height = height + "px";
el.style.height = height;
onloadFunction2();
}
const onclick_01 = function() {
//code...
// stop function, if script is running
document.getElementById("paragraph_saveData_02").innerHTML = "1";
// reset value, for opacity change of function animate_text_03();
document.getElementById("paragraph_saveData_01").innerHTML = "1";
// reset value, display paragraph
var el = document.getElementById("div_id_01");
el.innerHTML = " ";
el.style.opacity = "1";
// execute function variables
var button_el = document.getElementById("button_id_01");
var new_val = page_onclick();
new_val = Number(new_val);
if(new_val <= 1) {new_val = 1;}else if(new_val >= 2) {new_val = (new_val - 1);}
button_el.value = new_val + " of 8";
setTimeout(function() {
document.getElementById("paragraph_saveData_02").innerHTML = "0";
if(new_val == 1) {el.innerHTML = "<p id=\"para_output_01\" class=\"output_class_01\" ></p>"; animate_text_01();}
if(new_val >= 2) {animate_text_02();}
//if(new_val >= 3) {animate_text_03();}
//if(new_val == 4) {animate_text_04();}
//if(new_val == 5) {animate_text_05();}
//if(new_val == 6) {animate_text_06();}
//if(new_val == 7) {animate_text_07();}
//if(new_val == 8) {animate_text_08();}
}, 250);
}
const onclick_02 = function() {
//code...
// stop function, if script is running
document.getElementById("paragraph_saveData_02").innerHTML = "1";
// reset value, for opacity change of function animate_text_03();
document.getElementById("paragraph_saveData_01").innerHTML = "1";
// reset value, display paragraph
var el = document.getElementById("div_id_01");
el.innerHTML = " ";
el.style.opacity = "1";
// execute function variables
var button_el = document.getElementById("button_id_01");
var new_val = page_onclick();
new_val = Number(new_val);
if(new_val >= 9) {new_val = 8;}else if(new_val <= 7) {new_val = (new_val + 1);}
button_el.value = new_val + " of 8";
setTimeout(function() {
document.getElementById("paragraph_saveData_02").innerHTML = "0";
if(new_val == 1) {el.innerHTML = "<p id=\"para_output_01\" class=\"output_class_01\" ></p>"; animate_text_01();}
if(new_val >= 2) {animate_text_02();}
//if(new_val >= 3) {animate_text_02();}
//if(new_val == 4) {animate_text_04();}
//if(new_val == 5) {animate_text_05();}
//if(new_val == 6) {animate_text_06();}
//if(new_val == 7) {animate_text_07();}
//if(new_val == 8) {animate_text_08();}
}, 250);
}
const repeat_01 = function () {
var val = "";
setTimeout(function() {
val = document.getElementById("paragraph_saveData_02").innerHTML;
if(val == 1) {
return null;
}else{
animate_text_01();
}
}, 20);
}
const animate_text_01 = function () {
// test if execute function versus return null
var button_el = document.getElementById("button_id_01");
var val = button_el.value;
var str = val.toString();
var val_2 = str.split(" of ");
var val_3 = val_2[0];
var num_1 = Number(val_3);
var new_val = Number(1);
if(num_1 != new_val) {
return null;
}
// text displayed
var el = document.getElementById("para_output_01");
var displayed_text = el.innerHTML;
var str_displayed = displayed_text.toString();
var length_displayed = str_displayed.length;
var num_displayed = Number(length_displayed);
//alert(num_displayed);
// text to display
var el_2 = document.getElementById("textarea_data");
var text = el_2.value;
var str_1 = text.toString();
var str_text_1 = str_1.split("methods_header");
str_text_1 = str_text_1[1];
str_text_1 = str_text_1.replaceAll("<p>", "<x<p>");
str_text_1 = str_text_1.split("</div>");
str_text_1 = str_text_1[0];
str_text_1 = str_text_1.split("<x");
var for_output = "<b>ASI Funding Methods</b><br><br>How to Fund ASI Research-&-Development and Manufacturing";
var text_bold_header = "ASI Funding Methods";
var text_para_1 = "How to Fund ASI Research-&-Development and Manufacturing";
// "tbh" is an abbr. for, "text_bold_header"
var tbh_length = text_bold_header.length;
var tbh_num = Number(tbh_length);
var text_1 = "<b>";
var text_2 = "</b>";
//get length of text_1 + text_2, purpose: subtract from length of text displayed, get substring of text to display; see if() {...}, below, for subtraction event.
var t_1_2 = text_1 + text_2; var t_1_2_length = t_1_2.length; t_1_2 = Number(t_1_2_length);
tbh_num = (tbh_num + t_1_2);
tbh_num = Number(tbh_num);
var next_num = "";
var output = "";
if(num_displayed <= tbh_num) {
var text_to_display = "";
//calculate next num length of text to display; subtract t 1 and t 2 from length of text displayed
next_num = ((num_displayed - t_1_2) + 1);
text_to_display = text_bold_header.substr(0, next_num);
output = text_1 + text_to_display + text_2;
}
var num_next_2 = "";
var tp1_length = text_para_1.length; tp1_num = Number(tp1_length);
var br_2 = "<br><br>";
var br2_length = br_2.length; var br2_num = Number(br2_length);
tp1_num = (tbh_num + (tp1_num + br2_num));
var compare_num = (tbh_num + 1);
num_next_2 = (num_displayed + 1);
if(num_next_2 >= compare_num) {
// "tp1" is an abbreviation for, "var text_para_1 = [...];"
// substract text_para_1 string displayed from text_para_1 string to display
// step 1. find text_para_1 string length displayed
var tp1_displayed_length = (num_displayed - (tbh_num + br2_num));
// step 2. substract step 1 result from tp1_length;
var tp1_num_2 = Number(tp1_length);
var compare_num_2 = (tp1_num_2 - tp1_displayed_length);
var substr_num = (tp1_displayed_length + 1);
var s_1 = text_para_1.search("&");
var ampersand_num_3 = Number(s_1);
ampersand_num_3 = ((ampersand_num_3 + 1) + (tbh_num + br2_num));
if(num_displayed >= ampersand_num_3) {substr_num = ((tp1_displayed_length - 4) + 1);}
//alert("substr_num \n\n" + substr_num);
text_to_display = text_para_1.substr(0, substr_num);
var header_plus_bold = text_1 + text_bold_header + text_2;
output = header_plus_bold + br_2 + text_to_display;
}
el.innerHTML = output;
var length_2 = for_output.length;
var num = Number(length_2);
var chars_remaining = (num - num_displayed);
if(chars_remaining == (num-1)) {
document.getElementById("button_id_01").value = "1 of 8";
}
if(chars_remaining == 0) {
setTimeout(function() {
var page_num = para_get_id();
page_num = Number(page_num);
var x_var = document.getElementById("paragraph_saveData_01").innerHTML;
x_var = Number(x_var);
if(page_num >= 2 || x_var >= 1) {return null;}else{
el.innerHTML = " ";
document.getElementById("button_id_01").value = "2 of 8";
document.getElementById("div_id_01").innerHTML = " ";
animate_text_02();
}
}, 2000);
return null;
}
el.innerHTML = output;
var val = "";
val = document.getElementById("paragraph_saveData_02").innerHTML;
if(val == 1) {
return null;
}else{
//alert("1 \n\n" + output);
repeat_01();
}
}
const onload_01 = function () {
var el = document.getElementById("para_output_01");
el.style.opacity = "0";
var text = ""
+ " "
+ "";
el.innerHTML = text;
setTimeout(function() {
el.style.opacity = 1;
animate_text_01();
}, 1000);
}
onload_01();
const repeat_02 = function () {
var val = "";
setTimeout(function() {
val = document.getElementById("paragraph_saveData_02").innerHTML;
if(val == 1) {
return null;
}else{
animate_text_02();
}
}, 1);
}
const repeat_02_b = function () {
var val = "";
setTimeout(function() {
val = document.getElementById("paragraph_saveData_02").innerHTML;
if(val == 1) {
return null;
}else{
animate_text_02();
}
}, 1);
}
const animate_text_02 = function () {
// test if execute function versus return null
var name_1 = para_get_id();
var num_page = Number(name_1);
// text displayed
var el_display = document.getElementById("div_id_01");
// var el = document.getElementById("para_output_01");
var displayed_text = el_display.innerHTML;
var str_displayed = displayed_text.toString();
var length_displayed = str_displayed.length;
var num_displayed = Number(length_displayed);
var output = "";
var saveNum = document.getElementById("paragraph_saveData_03");
if(num_displayed <= 1) {
saveNum.innerHTML = "70";
// text to display
var id_1 = "paragraph_id_0" + name_1;
//var text = document.getElementById(id_1).innerHTML;
//el.style.overflow = "visible";
var text = "", str_1 = "", length = "", num = "", chars_remaining = "", end_char = "";
var split_1 = "", str_2 = "", split_2 = "", str_3 = "", replace_1 = "", split_3 = "", str_4 = "", o_div = "";
text = document.getElementById("textarea_data").value;
str_1 = text.toString();
length = str_1.length;
num = Number(length);
chars_remaining = (num - num_displayed);
end_char = num_displayed + 1;
// id = methods_header
if(num_page == 2) {
split_1 = str_1.split("methods_contents");
str_2 = split_1[1];
split_2 = str_2.split("</div>");
str_3 = split_2[0];
replace_1 = str_3.replace(">", "#>#");
split_3 = replace_1.split("#>#");
str_4 = split_3[1];
o_div = "<div id=\"display_div_01\" class=\"output_class_01\" style=\"opacity: 0;\" >";
output = o_div + str_4 + "</div>";
}
// id = methods_contents
if(num_page == 3) {
split_1 = str_1.split("methods_introduction");
str_2 = split_1[1];
split_2 = str_2.split("</div>");
str_3 = split_2[0];
replace_1 = str_3.replace(">", "#>#");
split_3 = replace_1.split("#>#");
str_4 = split_3[1];
o_div = "<div id=\"display_div_01\" class=\"output_class_01\" style=\"opacity: 0;\" >";
output = o_div + str_4 + "</div>" + "<iframe id=\"iframe_id_robots_phoneView\" class=\"output_class_03\" src=\"https://glowinggoldenglobe.github.io/page/Robots_phoneView.html\" title=\"Robots\" width=\"80%\" height=\"150%\" style='background-color: transparent; margin-top:80px; border:0px solid transparent;'></iframe>";
}
if(num_page == 4) {
// method_1
split_1 = str_1.split("method_1");
str_2 = split_1[1];
split_2 = str_2.split("</div>");
str_3 = split_2[0];
replace_1 = str_3.replace(">", "#>#");
split_3 = replace_1.split("#>#");
str_4 = split_3[1];
o_div = "<div id=\"display_div_01\" class=\"output_class_01\" style=\"opacity: 0;\" >";
output = o_div + str_4 + "</div>";
}
if(num_page == 5) {
// method_2
split_1 = str_1.split("method_2");
str_2 = split_1[1];
split_2 = str_2.split("</div>");
str_3 = split_2[0];
replace_1 = str_3.replace(">", "#>#");
split_3 = replace_1.split("#>#");
str_4 = split_3[1];
o_div = "<div id=\"display_div_01\" class=\"output_class_01\" style=\"opacity: 0;\" >";
output = o_div + str_4 + "</div>";
}
if(num_page == 6) {
// method_3
split_1 = str_1.split("method_3");
str_2 = split_1[1];
split_2 = str_2.split("</div>");
str_3 = split_2[0];
replace_1 = str_3.replace(">", "#>#");
split_3 = replace_1.split("#>#");
str_4 = split_3[1];
o_div = "<div id=\"display_div_01\" class=\"output_class_01\" style=\"opacity: 0;\" >";
output = o_div + str_4 + "</div>";
}
if(num_page == 7) {
// method_4
split_1 = str_1.split("method_4");
str_2 = split_1[1];
split_2 = str_2.split("</div>");
str_3 = split_2[0];
replace_1 = str_3.replace(">", "#>#");
split_3 = replace_1.split("#>#");
str_4 = split_3[1];
o_div = "<div id=\"display_div_01\" class=\"output_class_01\" style=\"opacity: 0;\" >";
output = o_div + str_4 + "</div>";
}
if(num_page == 8) {
// methods_ASIFacilityPlans
split_1 = str_1.split("methods_ASIFacilityPlans");
str_2 = split_1[1];
split_2 = str_2.split("</div>");
str_3 = split_2[0];
replace_1 = str_3.replace(">", "#>#");
split_3 = replace_1.split("#>#");
str_4 = split_3[1];
o_div = "<div id=\"display_div_01\" class=\"output_class_02\" style=\"opacity: 0;\" >";
output = o_div + str_4 + "</div>";
}
el_display.innerHTML = output;
}
var num_count_to_animate = saveNum.innerHTML;
num_count_to_animate = Number(num_count_to_animate);
num_count_to_animate = (num_count_to_animate - 1);
saveNum.innerHTML = num_count_to_animate;
if(num_page != 8 && num_page != 3 && num_page != 4 && num_page != 5 && num_page != 6 && num_page != 7) {
el_display.style.height = "60%";
el_display.style.overflow = "none";
}
else if(num_page == 3) {
// iframe_id_robots_phoneView
if(num_count_to_animate == 69) {
var height_3 = get_height_3();
var height_3_px = height_3 + "px";
el_display.style.height = height_3_px;
el_display.style.overflow = "none";
}else{
var x_null = "";
}
}
else if(num_page == 4 || num_page == 5 || num_page == 6 || num_page == 7) {
// iframe_id_robots_phoneView
if(num_count_to_animate == 69) {
el_display.style.height = "77%";
el_display.style.overflow = "none";
}else{
var x_null = "";
}
}
else if(num_page == 8) {
if(num_count_to_animate == 69) {
var height_1 = get_height_1();
var height_px = height_1 + "px";
//alert(height_px);
el_display.style.height = height_px;
}else{
var x_null_2 = "";
}
}
// i left off here [_________here________]
/* test
document.body.innerHTML +=
"<style>.tc {width:60%; height:30%; position:fixed; top: 2%; left:2%; z-index: 5;}</style><textarea class='tc'>"
+ ouptut
+ "</textarea>";
return null;
*/
if(num_count_to_animate <= 0) {
saveNum.innerHTML = "70";
return null;
}
var val = "";
val = document.getElementById("paragraph_saveData_02").innerHTML;
if(val == 1) {
return null;
}else{
var opacity_1 = ((100 - num_count_to_animate)/100);
document.getElementById("display_div_01").style.opacity = opacity_1;
if(end_char <= 10) {
repeat_02();
}else{
repeat_02_b();
}
}
}
const para_get_id = function() {
var button_el = document.getElementById("button_id_01");
var val = button_el.value;
var str = val.toString();
var val_2 = str.split(" of ");
var val_3 = val_2[0];
var num_1 = Number(val_3);
var new_val = "";
document.getElementById("paragraph_saveData_02").innerHTML = "0";
if(num_1 <= 1) {
new_val = "1";
}else{
//new_val = (num_1 - 1);
new_val = num_1;
// return page number selected by user
return new_val;
}
//button_el.value = new_val + " of 8";
}
const page_onclick = function() {
var button_el = document.getElementById("button_id_01");
var val = button_el.value;
var str = val.toString();
var val_2 = str.split(" of ");
var val_3 = val_2[0];
var num_1 = Number(val_3);
var new_val = "";
document.getElementById("paragraph_saveData_02").innerHTML = "1";
if(num_1 <= 1) {
new_val = "1";
}else{
new_val = num_1;
}
// return page number selected by user
return new_val;
}
const get_height_3 = function () {
var el = document.getElementById("iframe_id_robots_phoneView");
var el_height = el.clientHeight;
var num = Number(el_height);
num = (num * 1.35);
el_height = num;
return el_height;
}
const get_height_1 = function () {
var el = document.getElementById("display_div_01");
var el_height = el.clientHeight;
var num = Number(el_height);
num = (num - 20);
el_height = num;
return el_height;
}
</script>
</body>
</html>