-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuttonJS
More file actions
17 lines (15 loc) · 761 Bytes
/
Copy pathbuttonJS
File metadata and controls
17 lines (15 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function apply() {
let bgcolor = document.getElementById("bgColorInput").value;
let fontcolor = document.getElementById("fontColorInput").value;
let fontsize = document.getElementById("fontSizeInput").value;
let fontweight = document.getElementById("fontWeightInput").value;
let padding = document.getElementById("paddingInput").value;
let border = document.getElementById("borderRadiusInput").value;
let button = document.getElementById("customButton");
button.style.color = fontcolor;
button.style.fontSize = fontsize + "px";
button.style.backgroundColor = bgcolor;
button.style.fontWeight = fontweight;
button.style.padding = padding + "px";
button.style.borderRadius = border + "px";
}