-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgnip.html
More file actions
38 lines (36 loc) · 762 Bytes
/
gnip.html
File metadata and controls
38 lines (36 loc) · 762 Bytes
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
<!DOCTYPE html>
<html>
<head>
<?=globals.tmp_head("PNIP / PING",input)?>
</head>
<body>
<p><button onclick="clearInterval(interval);">STOP</button></p>
<p id="text"></p>
<script>
const text="GNIP / PING, ";
const time=100;
let counter=-1;
const interval=setInterval(()=>{
const p=GetId("text");
let text_say="";
let index=-1;
for(t of text){index+=1;}
for(t of text){
counter+=1;
if(text[counter]==" "){
if(counter>index){counter=0;}
if(counter+1>index){counter=0;}
if(counter!=0){counter+=1;}
text_say=" "+text[counter];
break;
}
if(counter>index){counter=0;}
text_say=text[counter];
//console.log("C: "+counter+", text_say: "+text_say+", index: "+index);
break;
}
p.innerText+=text_say;
},time);
</script>
</body>
</html>