-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfcscript.js
More file actions
21 lines (19 loc) · 729 Bytes
/
fcscript.js
File metadata and controls
21 lines (19 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function custom_mode() {
var advanced__settings = document.getElementById("dimension-input");
if (advanced__settings.style.visibility == "visible") {
advanced__settings.style.visibility = "hidden";
}
else {
advanced__settings.style.visibility = "visible";
}
}
function custom_size() {
var box_width = document.getElementById("width");
var box_height = document.getElementById("height");
generator.style.width = box_width.value + 'px';
generator.style.height = box_height.value + 'px';
var sh = (parseInt(box_height.value) + 14) + 'px';
$(".left,.right").css("width", sh);
var sw = (parseInt(box_width.value) + 14) + 'px';
$(".top,.bottom").css("width", sw);
}