-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpidraEARS-2.js
104 lines (104 loc) · 3.52 KB
/
SpidraEARS-2.js
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
function sergeanteye(spidrEye) {
window.localStorage.setItem("SpidrEye", "");
var Spidersuggat;
var interactiv;
if (spidrEye=="MG000001") {
var Ram1 = window.localStorage.getItem("SpidrRam1");
interactiv=1
}
else if (spidrEye=="") {
//
}
else if (spidrEye=="") {
//
}
else if (spidrEye=="") {
//
}
else if (spidrEye=="") {
//
}
else if (spidrEye=="") {
//
}
else if (spidrEye=="") {
//
}
if (interactiv==1) {
var newelemX = document.createElement("div");
var paraX = document.createElement("p");
var nodeedX = document.createTextNode("you want a converter! "+Ram1);
paraX.appendChild(nodeedX);
paraX.classList.add("replaytext");
paraX.setAttribute('name', 'replaytext')
newelemX.classList.add("chatout");
newelemX.appendChild(paraX);
var elementX = document.getElementById("chatcontent");
elementX.appendChild(newelemX);
elementX.scrollTop = elementX.scrollHeight;
var chatrelaod = document.getElementById("chatcontent").innerHTML;
var chatcheckbox = document.getElementById('chatcheckbox')
if (chatcheckbox.checked==true) {
window.localStorage.setItem("chatrelaod", chatrelaod);
chatcheckbox.setAttribute("checked" , "")
}
else {
chatcheckbox.removeAttribute("checked" , "");
}
var check = document.getElementById('chatbox');
if (check.style.display == "none") {
document.getElementById('monterX').click();
}
//document.getElementById('setcolorX').click();
var tochattext = document.getElementById('tochattext').value;
var l11 = document.getElementsByClassName('replaytext');
var toch2 = (l11.length) ;
for (var i = 0; i < toch2; i++) {
var colorarea3 = document.getElementById('colorarea3').value;
l11[i].style.border = tochattext;
if (colorarea3 != "") {
l11[i].style.backgroundColor = colorarea3;
}
}
}
else if (interactiv==0) {
var newelemX = document.createElement("div");
var paraX = document.createElement("p");
var nodeedX = document.createTextNode("you want a converter! "+Ram1);
paraX.appendChild(nodeedX);
paraX.classList.add("replaytext");
paraX.setAttribute('name', 'replaytext')
newelemX.classList.add("chatout");
newelemX.appendChild(paraX);
var elementX = document.getElementById("chatcontent");
elementX.appendChild(newelemX);
elementX.scrollTop = elementX.scrollHeight;
var chatrelaod = document.getElementById("chatcontent").innerHTML;
var chatcheckbox = document.getElementById('chatcheckbox')
if (chatcheckbox.checked==true) {
window.localStorage.setItem("chatrelaod", chatrelaod);
chatcheckbox.setAttribute("checked" , "")
}
else {
chatcheckbox.removeAttribute("checked" , "");
}
var check = document.getElementById('chatbox');
if (check.style.display == "none") {
document.getElementById('monterX').click();
}
//document.getElementById('setcolorX').click();
var tochattext = document.getElementById('tochattext').value;
var l11 = document.getElementsByClassName('replaytext');
var toch2 = (l11.length) ;
for (var i = 0; i < toch2; i++) {
var colorarea3 = document.getElementById('colorarea3').value;
l11[i].style.border = tochattext;
if (colorarea3 != "") {
l11[i].style.backgroundColor = colorarea3;
}
}
}
}
function faceinteractive(doornot) {
//
}