mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
update docs
This commit is contained in:
@@ -54,12 +54,12 @@ name.textContent = s_theme
|
|||||||
s_primary=getCookie("_primary_color");
|
s_primary=getCookie("_primary_color");
|
||||||
document.body.setAttribute("data-md-color-primary", s_primary);
|
document.body.setAttribute("data-md-color-primary", s_primary);
|
||||||
var name2 = document.querySelector("#__code_2 code span:nth-child(7)");
|
var name2 = document.querySelector("#__code_2 code span:nth-child(7)");
|
||||||
if(s_primary !== null) name2.textContent = s_primary.replace("-", " ");
|
if(s_primary !== null && name2 !== null) name2.textContent = s_primary.replace("-", " ");
|
||||||
|
|
||||||
s_accent=getCookie("_accent_color");
|
s_accent=getCookie("_accent_color");
|
||||||
document.body.setAttribute("data-md-color-accent", s_accent);
|
document.body.setAttribute("data-md-color-accent", s_accent);
|
||||||
var name3 = document.querySelector("#__code_3 code span:nth-child(7)");
|
var name3 = document.querySelector("#__code_3 code span:nth-child(7)");
|
||||||
if(s_accent !== null) name3.textContent = s_accent.replace("-", " ");
|
if(s_accent !== null && name3 !== null) name3.textContent = s_accent.replace("-", " ");
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let ls = document.querySelectorAll("chat-box");
|
let ls = document.querySelectorAll("chat-box");
|
||||||
|
|||||||
Reference in New Issue
Block a user