変更内容はREADME.mdを読みましょう
This commit is contained in:
parent
e9c6cccb4b
commit
ca7a2d1aab
10
README.md
10
README.md
|
@ -1,3 +1,13 @@
|
||||||
# ゆずねっとサポート
|
# ゆずねっとサポート
|
||||||
|
|
||||||
本家:https://github.com/Daichimarukana/support_uwuzu_net
|
本家:https://github.com/Daichimarukana/support_uwuzu_net
|
||||||
|
|
||||||
|
## 変更点
|
||||||
|
- ダークモード対応
|
||||||
|
- 記事をMarkdownファイルで記述に
|
||||||
|
- jQueryからVanilla JSへ移管
|
||||||
|
- フッター+クレジットを追加
|
||||||
|
- CSS短縮
|
||||||
|
- コード整形
|
||||||
|
- モバイル表示のサイズを最小限に変更
|
||||||
|
- 記事画面で検索ボックスを削除
|
||||||
|
|
|
@ -0,0 +1,81 @@
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background-color: #0b0b0b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top {
|
||||||
|
background-color: #ffc832;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top .left a {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top .right .searchbox {
|
||||||
|
border: solid 1px #000000;
|
||||||
|
background-color: #0b0b0b;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
main .contents .items:hover {
|
||||||
|
box-shadow: 0 0px 48px 0 rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
main .contents .items {
|
||||||
|
background-color: #181616;
|
||||||
|
}
|
||||||
|
|
||||||
|
main h1,
|
||||||
|
main p,
|
||||||
|
main .contents .items h1,
|
||||||
|
main .contents .items p,
|
||||||
|
main .contents .items .date,
|
||||||
|
main .article .date,
|
||||||
|
main .article h1,
|
||||||
|
main .article h2,
|
||||||
|
main .article h3,
|
||||||
|
main .article p {
|
||||||
|
color: #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
main .article td,
|
||||||
|
th {
|
||||||
|
border: solid 1px #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
main .article pre,
|
||||||
|
.link_btn,
|
||||||
|
.error p {
|
||||||
|
color: #0b0b0b;
|
||||||
|
}
|
||||||
|
|
||||||
|
main .article pre {
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link_btn {
|
||||||
|
background-color: #ffc832;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
background-color: #ff4848;
|
||||||
|
box-shadow: 0 0px 48px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.error p {
|
||||||
|
text-shadow: 0 0 0 #0b0b0b;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background-color: #000000;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul, li, ol {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,8 +3,10 @@
|
||||||
body {
|
body {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: fit-content;
|
height: 100%;
|
||||||
background-color: #f7f7f7;
|
display: grid;
|
||||||
|
grid-template-rows: auto 1fr auto;
|
||||||
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
|
@ -13,7 +15,6 @@ body {
|
||||||
height: 64px;
|
height: 64px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
background-color: #ffc832;
|
|
||||||
border-radius: 0px 0px 15px 15px;
|
border-radius: 0px 0px 15px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +41,6 @@ body {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
||||||
margin: 8px 0px;
|
margin: 8px 0px;
|
||||||
color: #ffffff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top .right {
|
.top .right {
|
||||||
|
@ -54,7 +54,6 @@ body {
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
border: solid 1px #ffffff;
|
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,16 +63,12 @@ main {
|
||||||
}
|
}
|
||||||
|
|
||||||
main h1 {
|
main h1 {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #252525;
|
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main p {
|
main p {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #252525;
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,21 +85,13 @@ main .contents .items {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: calc(50% - 40px);
|
width: calc(50% - 40px);
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
background-color: #ffffff;
|
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
transition: all 250ms ease-out;
|
transition: all 250ms ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .contents .items:hover {
|
|
||||||
box-shadow: 0 0px 48px 0 rgba(0, 0, 0, 0.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
main .contents .items h1 {
|
main .contents .items h1 {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #252525;
|
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
margin: 4px 0px;
|
margin: 4px 0px;
|
||||||
}
|
}
|
||||||
|
@ -112,15 +99,11 @@ main .contents .items h1 {
|
||||||
main .contents .items p {
|
main .contents .items p {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #252525;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin: 4px 0px;
|
margin: 4px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .contents .items .date {
|
main .contents .items .date {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #252525;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,38 +112,36 @@ main .article {
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .article .date {
|
main h1
|
||||||
|
main .contents .items .date,
|
||||||
|
main .contents .items h1
|
||||||
|
main .article .date,
|
||||||
|
main .article h1,
|
||||||
|
main .article h2,
|
||||||
|
main .article h3 {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #252525;
|
}
|
||||||
|
|
||||||
|
main .article .date {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .article h1 {
|
main .article h1 {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #252525;
|
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .article h2 {
|
main .article h2 {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #252525;
|
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .article h3 {
|
main .article h3 {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #252525;
|
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .article p {
|
main .article p {
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #252525;
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,16 +155,13 @@ main .article table {
|
||||||
main .article td,
|
main .article td,
|
||||||
th {
|
th {
|
||||||
padding: 4px 16px;
|
padding: 4px 16px;
|
||||||
border: solid 1px #252525;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main .article pre {
|
main .article pre {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
background-color: #252525;
|
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
color: #f7f7f7;
|
|
||||||
font-family: "BIZ UDGothic", sans-serif;
|
font-family: "BIZ UDGothic", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,8 +170,6 @@ main .article pre {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
background-color: #ffc832;
|
|
||||||
color: #f7f7f7;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
@ -212,9 +188,7 @@ main .article pre {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
background-color: #ff4848;
|
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
box-shadow: 0 0px 48px 0 rgba(0, 0, 0, 0.15);
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,16 +200,14 @@ main .article pre {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
font-family: "Inter", "BIZ UDPGothic", sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #f7f7f7;
|
|
||||||
color: transparent;
|
color: transparent;
|
||||||
text-shadow: 0 0 0 #f7f7f7;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #f0f0f0;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideDown {
|
@keyframes slideDown {
|
|
@ -0,0 +1,75 @@
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
body {
|
||||||
|
background-color: #f7f7f7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top {
|
||||||
|
background-color: #ffc832;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top .left a {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top .right .searchbox {
|
||||||
|
border: solid 1px #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
main .contents .items:hover {
|
||||||
|
box-shadow: 0 0px 48px 0 rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
main .contents .items {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
main h1,
|
||||||
|
main p,
|
||||||
|
main .contents .items h1,
|
||||||
|
main .contents .items p,
|
||||||
|
main .contents .items .date,
|
||||||
|
main .article .date,
|
||||||
|
main .article h1,
|
||||||
|
main .article h2,
|
||||||
|
main .article h3,
|
||||||
|
main .article p {
|
||||||
|
color: #252525;
|
||||||
|
}
|
||||||
|
|
||||||
|
main .article td,
|
||||||
|
th {
|
||||||
|
border: solid 1px #252525;
|
||||||
|
}
|
||||||
|
|
||||||
|
main .article pre,
|
||||||
|
.link_btn,
|
||||||
|
.error p {
|
||||||
|
color: #f7f7f7;
|
||||||
|
}
|
||||||
|
|
||||||
|
main .article pre {
|
||||||
|
background-color: #252525;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link_btn {
|
||||||
|
background-color: #ffc832;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
background-color: #ff4848;
|
||||||
|
box-shadow: 0 0px 48px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.error p {
|
||||||
|
text-shadow: 0 0 0 #f7f7f7;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
}
|
19
index.html
19
index.html
|
@ -3,12 +3,14 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||||
<link rel="stylesheet" href="/css/style.css" type="text/css" />
|
|
||||||
<link rel="icon" href="/img/uwuzu_net_icon.png" />
|
<link rel="icon" href="/img/uwuzu_net_icon.png" />
|
||||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
||||||
<title>ゆずねっとサポート</title>
|
<title>ゆずねっとサポート</title>
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="/css/layout.css" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="/css/light.css" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="/css/dark.css" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="error" class="error" style="display: none">
|
<div id="error" class="error" style="display: none">
|
||||||
|
@ -45,13 +47,16 @@
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
©2024-2025
|
Created by
|
||||||
|
<a class="credit" href="https://daichimarukana.com">Daichimarukana</a>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
Created by Daichimarukana
|
|
||||||
<br>
|
Edited by
|
||||||
Edited by Last2014
|
<a class="credit" href="https://last2014.com">Last2014</a>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script src="/js/script.js"></script>
|
<script src="/js/script.js"></script>
|
||||||
|
<script src="/js/credit.js"></script>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
const footer = document.querySelector("footer");
|
||||||
|
|
||||||
|
const startYear = 2024;
|
||||||
|
const nowYear = new Date().getFullYear();
|
||||||
|
|
||||||
|
if (startYear === nowYear) {
|
||||||
|
footer.innerHTML = `
|
||||||
|
©${String(startYear)} uwuzu.net
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
` + footer.innerHTML;
|
||||||
|
} else {
|
||||||
|
footer.innerHTML = `
|
||||||
|
©${String(startYear)}-${String(nowYear)} uwuzu.net
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
` + footer.innerHTML;
|
||||||
|
}
|
|
@ -69,7 +69,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||||
|
|
||||||
// URLパラメータから記事IDを取得
|
// URLパラメータから記事IDを取得
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const articleId = urlParams.get("articles");
|
const articleId = urlParams.get("article");
|
||||||
|
|
||||||
if (articleId) {
|
if (articleId) {
|
||||||
const article = articlesData.find(a => a && a.id === articleId);
|
const article = articlesData.find(a => a && a.id === articleId);
|
||||||
|
@ -90,7 +90,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||||
if (article) {
|
if (article) {
|
||||||
showArticle(article);
|
showArticle(article);
|
||||||
try {
|
try {
|
||||||
history.pushState({ articleId: id }, article.title, `?articles=${id}`);
|
history.pushState({ articleId: id }, article.title, `?article=${id}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.warn("History API操作に失敗しました:", error);
|
console.warn("History API操作に失敗しました:", error);
|
||||||
}
|
}
|
||||||
|
@ -191,6 +191,9 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||||
for (let i = 0; i < articleList.length; i++) {
|
for (let i = 0; i < articleList.length; i++) {
|
||||||
articleList[i].style.display = "none";
|
articleList[i].style.display = "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 検索ボックス削除
|
||||||
|
document.querySelector(".right").remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue