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:
@@ -46,20 +46,25 @@ function setCookie(name, value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s_theme=getCookie("_theme");
|
s_theme=getCookie("_theme");
|
||||||
if(s_theme === undefined) s_theme = "default";
|
if(s_theme !== undefined) {
|
||||||
document.body.setAttribute("data-md-color-scheme", s_theme)
|
document.body.setAttribute("data-md-color-scheme", s_theme)
|
||||||
var name = document.querySelector("#__code_0 code span:nth-child(7)")
|
var name = document.querySelector("#__code_0 code span:nth-child(7)")
|
||||||
name.textContent = s_theme
|
name.textContent = s_theme
|
||||||
|
}
|
||||||
|
|
||||||
s_primary=getCookie("_primary_color");
|
s_primary=getCookie("_primary_color");
|
||||||
document.body.setAttribute("data-md-color-primary", s_primary);
|
if(s_primary !== null) {
|
||||||
var name2 = document.querySelector("#__code_2 code span:nth-child(7)");
|
document.body.setAttribute("data-md-color-primary", s_primary);
|
||||||
if(s_primary !== null && name2 !== null) name2.textContent = s_primary.replace("-", " ");
|
var name2 = document.querySelector("#__code_2 code span:nth-child(7)");
|
||||||
|
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);
|
if(s_accent !== null) {
|
||||||
var name3 = document.querySelector("#__code_3 code span:nth-child(7)");
|
document.body.setAttribute("data-md-color-accent", s_accent);
|
||||||
if(s_accent !== null && name3 !== null) name3.textContent = s_accent.replace("-", " ");
|
var name3 = document.querySelector("#__code_3 code span:nth-child(7)");
|
||||||
|
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");
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ theme:
|
|||||||
logo: assets/logos.png
|
logo: assets/logos.png
|
||||||
favicon: assets/favicon.png
|
favicon: assets/favicon.png
|
||||||
language: zh
|
language: zh
|
||||||
|
palette:
|
||||||
|
primary: deep orange
|
||||||
|
accent: deep orange
|
||||||
features:
|
features:
|
||||||
- navigation.tabs
|
- navigation.tabs
|
||||||
extra_javascript:
|
extra_javascript:
|
||||||
|
|||||||
Reference in New Issue
Block a user