diff --git a/static/js/common/ctx.js b/static/js/common/ctx.js
index 4ce9233..a1db8a8 100644
--- a/static/js/common/ctx.js
+++ b/static/js/common/ctx.js
@@ -27,12 +27,40 @@ define(function (require, exports, module) {
};
}
+ //refreshEditColor
+ let refreshEditColor = localStorage.getItem('refreshEditColor');
+ if (refreshEditColor !== undefined && refreshEditColor !== null) {
+ this.refreshEditColor = refreshEditColor;
+ } else {
+ this.refreshEditColor = "black";
+ }
+ let refreshEditColorLiList = document.querySelectorAll(".my_style_nav ul[data-my-style-type='refreshEditColor'] li");
+ for (let i = 0; i < refreshEditColorLiList.length; i++) {
+ let tmpLi=refreshEditColorLiList[i];
+ if (tmpLi.getAttribute("data-my-style-v") === this.refreshEditColor) {
+ tmpLi.setAttribute("data-my-select", "true");
+ tmpLi.setAttribute("data-my-select-v", tmpLi.parentElement.getAttribute("data-my-select-v"));
+ } else {
+ tmpLi.removeAttribute("data-my-select");
+ }
+ }
+
//refreshEditBgColor
let refreshEditBgColor = localStorage.getItem('refreshEditBgColor');
if (refreshEditBgColor !== undefined && refreshEditBgColor !== null) {
this.refreshEditBgColor = refreshEditBgColor;
} else {
- this.refreshEditBgColor = null;
+ this.refreshEditBgColor = "transparent";
+ }
+ let refreshEditBgColorLiList = document.querySelectorAll(".my_style_nav ul[data-my-style-type='refreshEditBgColor'] li");
+ for (let i = 0; i < refreshEditBgColorLiList.length; i++) {
+ let tmpLi=refreshEditBgColorLiList[i];
+ if (tmpLi.getAttribute("data-my-style-v") === this.refreshEditBgColor) {
+ tmpLi.setAttribute("data-my-select", "true");
+ tmpLi.setAttribute("data-my-select-v", tmpLi.parentElement.getAttribute("data-my-select-v"));
+ } else {
+ tmpLi.removeAttribute("data-my-select");
+ }
}
this.usn = "syjSyj";
diff --git a/static/js/event/impl/DropDownStyleSelectEventImpl.js b/static/js/event/impl/DropDownStyleSelectEventImpl.js
index 6098b38..54c4fb5 100644
--- a/static/js/event/impl/DropDownStyleSelectEventImpl.js
+++ b/static/js/event/impl/DropDownStyleSelectEventImpl.js
@@ -67,8 +67,10 @@ define(function (require, exports, module) {
let tSpan = curLi.parentElement.parentElement.previousElementSibling;
console.log("refreshEditColor ", dataMySelectK, dataMySelectV, tSpan, tSpan.getAttribute("data-v"))
- tSpan.setAttribute("data-v", dataMySelectV)
+ tSpan.setAttribute("data-v", dataMySelectV);
+ //保存在本地 refreshEditColor
+ localStorage.setItem('refreshEditColor', dataMySelectV);
}
function refreshEditBgColor(curLi) {
@@ -81,8 +83,9 @@ define(function (require, exports, module) {
let tSpan = curLi.parentElement.parentElement.previousElementSibling;
console.log("refreshEditBgColor ", dataMySelectK, dataMySelectV, tSpan, tSpan.getAttribute("data-v"))
-
- tSpan.setAttribute("data-v", dataMySelectV)
+ tSpan.setAttribute("data-v", dataMySelectV);
+ //保存在本地 refreshEditBgColor
+ localStorage.setItem('refreshEditBgColor', dataMySelectV);
}
function refreshPFontSize(curLi) {
diff --git a/static/yanxuelu.html b/static/yanxuelu.html
index 169873b..189bfa8 100644
--- a/static/yanxuelu.html
+++ b/static/yanxuelu.html
@@ -7,7 +7,7 @@
📒
+ content="width=device-width, height=device-height,initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
@@ -33,198 +33,190 @@
-
-
-
+
+
+
-
-
+
+
-
+
-
+
+
-
-
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
14px
-
+
-
+
+
-
-
+
@@ -285,26 +277,26 @@
+
-
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
+