-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.js
39 lines (30 loc) · 1.4 KB
/
settings.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
console.log("ads " + typeInvoke)
alert('Hello, world!');
start();
function start() {
if (typeInvoke == "widthRange") {
// document.getElementById("sub").style.setProperty("-webkit-mask-image", `-webkit-linear-gradient(rgba(2,0,36,0) ${35 - rangeWidthValue}%, rgba(1,0,12,1) 45%, rgba(0,0,0,1) 50%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) ${65 + rangeWidthValue}%)`);
}
if (typeInvoke == "gradientWidth") {
document.getElementById("sub").style.setProperty("-webkit-mask-image", `-webkit-linear-gradient(rgba(2,0,36,0) ${35 - value}%, rgba(1,0,12,1) 45%, rgba(0,0,0,1) 50%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) ${65 + value}%)`);
}
if (typeInvoke == "marginLRRange") {
document.getElementById("sub").style.margin = `0 ${value}px 0 ${value}px`;
}
if (typeInvoke == "leftAlign") {
document.getElementById("sub").style.float = `left`;
}
if (typeInvoke == "rightAlign") {
document.getElementById("sub").style.float = `right`;
}
if (typeInvoke == "rightTextAlign") {
document.getElementById("sub").style.textAlign = `right`;
}
if (typeInvoke == "centerTextAlign") {
document.getElementById("sub").style.textAlign = `center`;
}
if (typeInvoke == "leftTextAlign") {
document.getElementById("sub").style.textAlign = `left`;
}
//document.getElementById("sub").style.width = `${rangeWidthValue}%`;
}