TheDesk Akane (16.0.2)

This commit is contained in:
cutls
2018-08-05 12:36:23 +09:00
parent a2a937e220
commit 7ab860c34c
13 changed files with 174 additions and 26 deletions

View File

@@ -159,15 +159,22 @@ function parseColumn() {
$(".box").css("min-width", width + "px");
}
var box = localStorage.getItem("box");
if (box == "yes") {
$("#post-box").addClass("hidenbox");
$("#post-box").fadeOut();
$("#menu-btn").fadeIn();
}else if (box == "hide"){
$("body").addClass("mini-post");
$(".mini-btn").text("expand_less");
if (box == "absolute") {
show();
}
favTag();
var cw = localStorage.getItem("always-cw");
if (cw == "yes") {
if(!$("#cw").hasClass("cw-avail")){
$("#cw-text").show();
$("#cw").addClass("yellow-text");
$("#cw").addClass("cw-avail");
var cwt=localStorage.getItem("cw-text");
if(cwt){
$("#cw-text").val(cwt);
}
}
}
}
//カラム追加
function addColumn() {

View File

@@ -48,8 +48,10 @@ $('#posttgl').focusin(function(e) {
});
$("#timeline-container,#group").click(function(e) {
if($('#post-box').hasClass("appear") && !localStorage.getItem("nohide")){
hide();
if(localStorage.getItem("box")!="absolute"){
if($('#post-box').hasClass("appear") && !localStorage.getItem("nohide")){
hide();
}
}
localStorage.removeItem("nohide")
});

View File

@@ -37,6 +37,13 @@ function settings() {
}
localStorage.setItem("cw-text", cwtd);
var cwsd = $("[name=cws]:checked").val();
var cwst = $("[for=cws_"+cwsd+"]").text();
if (cwsd != localStorage.getItem("always-cw")) {
Materialize.toast(lang_setting_cws[lang].replace("{{set}}" ,cwst), 3000);
}
localStorage.setItem("always-cw", cwsd);
var visd = $("[name=vis]:checked").val();
var vist = $("[for="+visd+"]").text();
if (visd != localStorage.getItem("vis")) {
@@ -108,6 +115,13 @@ function settings() {
}
localStorage.setItem("img-height", heid);
var boxd = $("[name=box]:checked").val();
var boxt = $("[for=bx_"+boxd+"]").text();
if (boxd != localStorage.getItem("box")) {
Materialize.toast(lang_setting_box[lang].replace("{{set}}" ,boxt), 3000);
}
localStorage.setItem("box", boxd);
var tagd = $("[name=tag]:checked").val();
var tagt = $("[for=t_"+tagd+"]").text();
if (tagd != localStorage.getItem("tag-range")) {
@@ -192,6 +206,12 @@ function load() {
}
$("#c_" + cw).prop("checked", true);
var cws = localStorage.getItem("always-cw");
if (!cws) {
var cws = "no";
}
$("#cws_" + cws).prop("checked", true);
var popup = localStorage.getItem("popup");
if (!popup) {
var popup = "0";
@@ -202,7 +222,10 @@ function load() {
if (!box) {
var box = "no";
}
$("#b_" + box).prop("checked", true);
if(box=="absolute"){
var box = "abs";
}
$("#bx_" + box).prop("checked", true);
var gif = localStorage.getItem("gif");
if (!gif) {
@@ -233,6 +256,12 @@ function load() {
}
$("#cw-text").val(cwt);
var cws = localStorage.getItem("always-cw");
if (!cws) {
var cws = "no";
}
$("#cws_" + cws).prop("checked", true);
var vis = localStorage.getItem("vis");
if (!vis) {
var vis = "public";
@@ -269,6 +298,12 @@ function load() {
}
$("#t_" + tag).prop("checked", true);
var box = localStorage.getItem("box");
if (!box) {
var box = "yes";
}
$("#bx_" + box).prop("checked", true);
var uld = localStorage.getItem("locale");
if (!uld) {
var uld = "yes";