mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-17 19:29:28 +01:00
Make user JS/CSS textareas reasonably sized
This commit is contained in:
parent
4434f2cd93
commit
827dac38e8
@ -14,17 +14,13 @@
|
||||
var tab = Options.add_tab("user-css", "css3", _("User CSS"));
|
||||
|
||||
var textarea = $("<textarea></textarea>").css({
|
||||
"font-size": 12,
|
||||
position: "absolute",
|
||||
top: 35, bottom: 35,
|
||||
width: "calc(100% - 20px)", margin: 0, padding: "4px", border: "1px solid black",
|
||||
left: 5, right: 5
|
||||
"height" : "85%",
|
||||
"width" : "100%",
|
||||
"font-size" : "9pt",
|
||||
"font-family": "monospace",
|
||||
}).appendTo(tab.content);
|
||||
var submit = $("<input type='button' value='"+_("Update custom CSS")+"'>").css({
|
||||
position: "absolute",
|
||||
height: 25, bottom: 5,
|
||||
width: "calc(100% - 10px)",
|
||||
left: 5, right: 5
|
||||
"width": "100%",
|
||||
}).click(function() {
|
||||
localStorage.user_css = textarea.val();
|
||||
apply_css();
|
||||
|
@ -14,17 +14,13 @@
|
||||
var tab = Options.add_tab("user-js", "code", _("User JS"));
|
||||
|
||||
var textarea = $("<textarea></textarea>").css({
|
||||
"font-size": 12,
|
||||
position: "absolute",
|
||||
top: 35, bottom: 35,
|
||||
width: "calc(100% - 20px)", margin: 0, padding: "4px", border: "1px solid black",
|
||||
left: 5, right: 5
|
||||
"height" : "85%",
|
||||
"width" : "100%",
|
||||
"font-size" : "9pt",
|
||||
"font-family": "monospace",
|
||||
}).appendTo(tab.content);
|
||||
var submit = $("<input type='button' value='"+_("Update custom Javascript")+"'>").css({
|
||||
position: "absolute",
|
||||
height: 25, bottom: 5,
|
||||
width: "calc(100% - 10px)",
|
||||
left: 5, right: 5
|
||||
"width": "100%",
|
||||
}).click(function() {
|
||||
localStorage.user_js = textarea.val();
|
||||
document.location.reload();
|
||||
|
Loading…
x
Reference in New Issue
Block a user