TheDesk Usain (18.9.2)

This commit is contained in:
Cutls
2019-09-01 21:27:18 +09:00
parent 6f7f5cbabc
commit 2b84a27cdc
7 changed files with 65 additions and 38 deletions

View File

@@ -4,8 +4,10 @@ function hide() {
$("#right-side").hide()
$("#right-side").css("width", "300px")
$("#left-side").css("width", "100%")
var width = localStorage.getItem("postbox-width").replace("px", "") * 1;
if (!width) {
var width = localStorage.getItem("postbox-width");
if(width){
width = width.replace("px", "") * 1
} else {
width = 300
}
$("#post-box").css("width", width)
@@ -79,6 +81,7 @@ $(function () {
minHeight: 150,
minWidth: 100,
stop: function (event, ui) {
$("#textarea").blur()
localStorage.setItem("postbox-width", ui.size.width);
}
});