-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscript.js
More file actions
39 lines (39 loc) · 1.44 KB
/
script.js
File metadata and controls
39 lines (39 loc) · 1.44 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
function openCC() {
var CC = document.getElementById('controlCenter').style;
var CoCe = document.getElementById('CC').style;
var trig = document.getElementById('control-center-trig').style;
var icon1 = document.getElementById('icon1').style;
var icon2 = document.getElementById('icon2').style;
var body = document.getElementById('table').style;
var dock = document.getElementById('dock').style;
CC.top = '0';
CoCe.opacity = '1';
CoCe.zIndex = '0';
CoCe.backdropFilter = 'blur(10px)';
body.transform = 'scale(0.9)';
dock.transform = 'scale(0.8)';
trig.margin = '15px 30px';
trig.fontWeight = '900';
trig.fontSize = '15px';
icon1.height = '30px';
icon2.height = '30px';
}
function closeCC() {
var CC = document.getElementById('controlCenter').style;
var CoCe = document.getElementById('CC').style;
var trig = document.getElementById('control-center-trig').style;
var icon1 = document.getElementById('icon1').style;
var icon2 = document.getElementById('icon2').style;
var body = document.getElementById('table').style;
var dock = document.getElementById('dock').style;
CC.top = '-100%';
CoCe.opacity = '0';
CoCe.zIndex = '-1';
body.transform = 'scale(1)';
dock.transform = 'scale(1)';
trig.margin = '0';
trig.fontWeight = '500';
trig.fontSize = '11px';
icon1.height = '18px';
icon2.height = '22px';
}