You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
415 B
23 lines
415 B
var y = getComputedStyle(document.documentElement).getPropertyValue('--y');
|
|
var z = getComputedStyle(document.documentElement).getPropertyValue('--z');
|
|
t = z[1];
|
|
t = parseInt(t);
|
|
u = y[1];
|
|
u = parseInt(u);
|
|
|
|
function add(){
|
|
txt = document.getElementById("value");
|
|
p = t - 0.1;
|
|
//alert(p);
|
|
txt.textContent = p;
|
|
document.documentElement.style.setProperty('--z', p + "vw");
|
|
t = p;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|