mirror of
https://github.com/MapMakersAndProgrammers/wiki.git
synced 2025-10-26 01:49:12 -07:00
first commit
This commit is contained in:
1
docs/about.md
Normal file
1
docs/about.md
Normal file
@@ -0,0 +1 @@
|
||||
# about page
|
||||
1
docs/index.md
Normal file
1
docs/index.md
Normal file
@@ -0,0 +1 @@
|
||||
# index page
|
||||
35
docs/javascripts/extra.js
Normal file
35
docs/javascripts/extra.js
Normal file
@@ -0,0 +1,35 @@
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
// Sync with Material's native storage key
|
||||
const STORAGE_KEY = "md-color-scheme";
|
||||
|
||||
// Get initial theme state
|
||||
const savedTheme = localStorage.getItem(STORAGE_KEY) || "default";
|
||||
document.body.setAttribute("data-md-color-scheme", savedTheme);
|
||||
|
||||
// Watch for theme changes
|
||||
const mutationObserver = new MutationObserver(mutations => {
|
||||
mutations.forEach(mutation => {
|
||||
if (mutation.attributeName === "data-md-color-scheme") {
|
||||
const currentTheme = document.body.getAttribute("data-md-color-scheme");
|
||||
localStorage.setItem(STORAGE_KEY, currentTheme);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Start observing body attributes
|
||||
mutationObserver.observe(document.body, {
|
||||
attributes: true,
|
||||
attributeFilter: ["data-md-color-scheme"]
|
||||
});
|
||||
|
||||
// Debounced click handler
|
||||
let isToggling = false;
|
||||
document.querySelector(".md-header__button[data-md-color-scheme]").addEventListener("click", () => {
|
||||
if (!isToggling) {
|
||||
isToggling = true;
|
||||
setTimeout(() => {
|
||||
isToggling = false;
|
||||
}, 300);
|
||||
}
|
||||
});
|
||||
});
|
||||
1
docs/pages/A3D-Versions/2-0.md
Normal file
1
docs/pages/A3D-Versions/2-0.md
Normal file
@@ -0,0 +1 @@
|
||||
# hello 2
|
||||
1
docs/pages/A3D-Versions/5.0.md
Normal file
1
docs/pages/A3D-Versions/5.0.md
Normal file
@@ -0,0 +1 @@
|
||||
# hello 5
|
||||
1
docs/pages/A3D-Versions/6.0.md
Normal file
1
docs/pages/A3D-Versions/6.0.md
Normal file
@@ -0,0 +1 @@
|
||||
# hello 6
|
||||
1
docs/pages/A3D-Versions/7.0.md
Normal file
1
docs/pages/A3D-Versions/7.0.md
Normal file
@@ -0,0 +1 @@
|
||||
# hello 7
|
||||
1
docs/pages/A3D-Versions/7.0v2.md
Normal file
1
docs/pages/A3D-Versions/7.0v2.md
Normal file
@@ -0,0 +1 @@
|
||||
# hello 7v2
|
||||
1
docs/pages/A3D-Versions/8.0.md
Normal file
1
docs/pages/A3D-Versions/8.0.md
Normal file
@@ -0,0 +1 @@
|
||||
# hello 8
|
||||
BIN
docs/resources/icon.ico
Normal file
BIN
docs/resources/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
docs/resources/icon.webp
Normal file
BIN
docs/resources/icon.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
26
docs/stylesheets/extra.css
Normal file
26
docs/stylesheets/extra.css
Normal file
@@ -0,0 +1,26 @@
|
||||
:root {
|
||||
--md-primary-fg-color: #2B579A;
|
||||
--md-primary-fg-color--light: #7BAFD4;
|
||||
--md-primary-fg-color--dark: #1A365F;
|
||||
}
|
||||
|
||||
.md-header {
|
||||
box-shadow: 0 0 0.2rem rgba(0,0,0,.1), 0 0.2rem 0.4rem rgba(0,0,0,.2);
|
||||
}
|
||||
|
||||
.md-tabs {
|
||||
background-color: var(--md-primary-fg-color);
|
||||
}
|
||||
|
||||
.md-search__form:hover {
|
||||
background-color: rgba(255,255,255,0.1);
|
||||
}
|
||||
|
||||
.md-typeset h1 {
|
||||
font-weight: 600;
|
||||
color: var(--md-primary-fg-color);
|
||||
}
|
||||
|
||||
.md-footer {
|
||||
margin-top: 2em;
|
||||
}
|
||||
Reference in New Issue
Block a user