-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
27 lines (27 loc) · 1013 Bytes
/
index.js
File metadata and controls
27 lines (27 loc) · 1013 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
function showgamechat(){
const chat = document.getElementById('tlk2');
const button = document.getElementById('expandtlk2');
chat.style.display = 'block';
button.style.backgroundColor = 'grey';
button.setAttribute('onclick', 'hidegamechat()')
button.innerHTML = '<<br><<br><<br><<br><<br><'
}
function hidegamechat(){
const chat = document.getElementById('tlk2');
const button = document.getElementById('expandtlk2');
chat.style.display = 'none';
button.style.backgroundColor = 'whitesmoke';
button.setAttribute('onclick', 'showgamechat()')
button.innerHTML = '><br>><br>><br>><br>><br>>'
}
function checkframe(){
const frame = document.getElementById('app');
if (frame.style.display == 'block'){
document.getElementById('expandtlk2').style.display = 'block'
//console.log('expand button if triggered')
}else{
//console.
document.getElementById('expandtlk2').style.display = 'none'
}
}
setInterval('checkframe()', 10)