diff --git a/404.html b/404.html index f18acce..817265a 100644 --- a/404.html +++ b/404.html @@ -1,52 +1,52 @@ - - - - - - - - - - - - - 404 - - - - - - - -
-
- 正在加载 -
-
-
- - -

Hamud language

- -

404

-

未找到相应信息,或许您应该尝试返回主页。

- -
- - -
- -

反馈

- -
-
-
- - - -
-
- -
- + + + + + + + + + + + + + 404 + + + + + + + +
+
+ 正在加载 +
+
+
+ + +

Hamud language

+ +

404

+

未找到相应信息,或许您应该尝试返回主页。

+ +
+ + +
+ +

反馈

+ +
+
+
+ + + +
+
+ +
+ \ No newline at end of file diff --git a/css/loading.css b/css/loading.css index cd3d959..8d8a2f0 100644 --- a/css/loading.css +++ b/css/loading.css @@ -1,31 +1,31 @@ -#loading { - position: fixed; - background-color: #212121; - top: 0px; - left: 0px; - width: 100%; - height: 100%; - z-index: 1000000 -} - -#Calc-loading_bg{ - background-color: rgba(0,0,0,0.7); -} - -.Calc-loader { - line-height: 50px; - text-align: center; - position: absolute; - top: 50%; - left: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - font-family: helvetica, arial, sans-serif; - text-transform: uppercase; - font-weight: 900; - color: #0277BD; - letter-spacing: 0.2em; -} - -@media screen and (max-width: 980px){.Clac-loader{width:80%}} +#loading { + position: fixed; + background-color: #212121; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + z-index: 1000000 +} + +#Calc-loading_bg{ + background-color: rgba(0,0,0,0.7); +} + +.Calc-loader { + line-height: 50px; + text-align: center; + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + font-family: helvetica, arial, sans-serif; + text-transform: uppercase; + font-weight: 900; + color: #0277BD; + letter-spacing: 0.2em; +} + +@media screen and (max-width: 980px){.Clac-loader{width:80%}} @media screen and (min-width: 980px){.Clac-loader{width:25rem}} \ No newline at end of file diff --git a/css/loading.svg b/css/loading.svg index c491478..265f12b 100644 --- a/css/loading.svg +++ b/css/loading.svg @@ -1,14 +1,14 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + \ No newline at end of file diff --git a/css/main.css b/css/main.css index 920ac97..b388b1a 100644 --- a/css/main.css +++ b/css/main.css @@ -1,4 +1,4 @@ -html { - color: #DDD; - background-color: #111; +html { + color: #DDD; + background-color: #111; } \ No newline at end of file diff --git a/css/translate.css b/css/translate.css index bc32bd2..c372431 100644 --- a/css/translate.css +++ b/css/translate.css @@ -1,12 +1,12 @@ -#translate>.translateSelectLanguage { - cursor:pointer; - position:absolute; - padding:0.3rem; - padding-left:0.5rem; - padding-right:0.5rem; - color: #DDD; - background-color: #795548; - border:2px solid #8D6E63; -} -@media screen and (max-width: 980px){#translate>.translateSelectLanguage {left:1rem;top:1rem;font-size:.8rem;width:6rem}} +#translate>.translateSelectLanguage { + cursor:pointer; + position:absolute; + padding:0.3rem; + padding-left:0.5rem; + padding-right:0.5rem; + color: #DDD; + background-color: #795548; + border:2px solid #8D6E63; +} +@media screen and (max-width: 980px){#translate>.translateSelectLanguage {left:1rem;top:1rem;font-size:.8rem;width:6rem}} @media screen and (min-width: 980px){#translate>.translateSelectLanguage {left:2rem;top:2rem;font-size:1rem}} \ No newline at end of file diff --git a/footer.html b/footer.html index 61e2cc7..442c602 100644 --- a/footer.html +++ b/footer.html @@ -1,3 +1,3 @@ - - - - - - - - - - - 568_Calc - - - - - - - -
-
- 正在加载 -
-
-
- - -

Hamud language

- -

568_Calc

-

568_Calc 是一个简单的多平台支持的计算器。

- - - -

贡献者

-

感谢所有提供贡献的人!

- 贡献者的头像图片 - -

讨论区

-

请留下您的宝贵建议。

-
-
-
项目将持续推进,期待您的贡献
-
-
- -
-
- -
- + + + + + + + + + + + + + 568_Calc + + + + + + + +
+
+ 正在加载 +
+
+
+ + +

Hamud language

+ +

568_Calc

+

568_Calc 是一个简单的多平台支持的计算器。

+ + + +

贡献者

+

感谢所有提供贡献的人!

+ 贡献者的头像图片 + +

讨论区

+

请留下您的宝贵建议。

+
+
+
项目将持续推进,期待您的贡献
+
+
+ +
+
+ +
+ \ No newline at end of file diff --git a/js/giscus.js b/js/giscus.js index 8e66a88..2f07141 100644 --- a/js/giscus.js +++ b/js/giscus.js @@ -1,56 +1,56 @@ -// 获取用户使用的语种。 -var lang = translate.language.getCurrent(); -var giscus_lang = "zh-CN"; -switch (lang) { - case "chinese_traditional": - giscus_lang = "zh-TW"; - break; - case "english": - giscus_lang = "en"; - break; - case "spanish": - giscus_lang = "es"; - break; - case "japanese": - giscus_lang = "ja"; - break; - case "korean": - giscus_lang = "ko"; - break; - case "french": - giscus_lang = "fr"; - break; - case "arabic": - giscus_lang = "ar"; - break; - default: - giscus_lang = "zh-CN"; - break; -} - -var giscus = function () { - const script = document.createElement("script"); - script.type = "text/javascript"; - script.src = "https://giscus.app/client.js"; - - - script.setAttribute("data-repo", "PJ-568/568_Calc"); - script.setAttribute("data-repo-id", "R_kgDOKgTh_A"); - script.setAttribute("data-category", "Announcements"); - script.setAttribute("data-category-id", "DIC_kwDOKgTh_M4CaKUO"); - - script.setAttribute("data-mapping", "title"); - script.setAttribute("data-strict", "1"); - script.setAttribute("data-reactions-enabled", "1"); - script.setAttribute("data-emit-metadata", "0"); - script.setAttribute("data-input-position", "top"); - script.setAttribute("data-theme", "transparent_dark"); - script.setAttribute("data-lang", giscus_lang); - script.setAttribute("data-loading", "lazy"); - - script.crossOrigin = "anonymous"; - script.async = true; - document.getElementById("giscus-container").appendChild(script); -}; - +// 获取用户使用的语种。 +var lang = translate.language.getCurrent(); +var giscus_lang = "zh-CN"; +switch (lang) { + case "chinese_traditional": + giscus_lang = "zh-TW"; + break; + case "english": + giscus_lang = "en"; + break; + case "spanish": + giscus_lang = "es"; + break; + case "japanese": + giscus_lang = "ja"; + break; + case "korean": + giscus_lang = "ko"; + break; + case "french": + giscus_lang = "fr"; + break; + case "arabic": + giscus_lang = "ar"; + break; + default: + giscus_lang = "zh-CN"; + break; +} + +var giscus = function () { + const script = document.createElement("script"); + script.type = "text/javascript"; + script.src = "https://giscus.app/client.js"; + + + script.setAttribute("data-repo", "PJ-568/568_Calc"); + script.setAttribute("data-repo-id", "R_kgDOKgTh_A"); + script.setAttribute("data-category", "Announcements"); + script.setAttribute("data-category-id", "DIC_kwDOKgTh_M4CaKUO"); + + script.setAttribute("data-mapping", "title"); + script.setAttribute("data-strict", "1"); + script.setAttribute("data-reactions-enabled", "1"); + script.setAttribute("data-emit-metadata", "0"); + script.setAttribute("data-input-position", "top"); + script.setAttribute("data-theme", "transparent_dark"); + script.setAttribute("data-lang", giscus_lang); + script.setAttribute("data-loading", "lazy"); + + script.crossOrigin = "anonymous"; + script.async = true; + document.getElementById("giscus-container").appendChild(script); +}; + window.addEventListener('load', giscus); \ No newline at end of file diff --git a/js/include.js b/js/include.js index 7bc7f36..3999dab 100644 --- a/js/include.js +++ b/js/include.js @@ -1,26 +1,26 @@ -function includeHTML() { - var elements = document.getElementsByTagName("include"); - for (var i = 0; i < elements.length; i++) { - var element = elements[i]; - var file = element.getAttribute("src"); - if (file) { - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function() { - if (this.readyState === 4 && this.status === 200) { - element.innerHTML = this.responseText; - // 执行加载的JavaScript代码 - var scripts = element.getElementsByTagName("script"); - for (var j = 0; j < scripts.length; j++) { - var script = document.createElement("script"); - script.innerHTML = scripts[j].innerHTML; - document.body.appendChild(script); - } - } - }; - xhttp.open("GET", file, true); - xhttp.send(); - } - } -} - +function includeHTML() { + var elements = document.getElementsByTagName("include"); + for (var i = 0; i < elements.length; i++) { + var element = elements[i]; + var file = element.getAttribute("src"); + if (file) { + var xhttp = new XMLHttpRequest(); + xhttp.onreadystatechange = function() { + if (this.readyState === 4 && this.status === 200) { + element.innerHTML = this.responseText; + // 执行加载的JavaScript代码 + var scripts = element.getElementsByTagName("script"); + for (var j = 0; j < scripts.length; j++) { + var script = document.createElement("script"); + script.innerHTML = scripts[j].innerHTML; + document.body.appendChild(script); + } + } + }; + xhttp.open("GET", file, true); + xhttp.send(); + } + } +} + document.addEventListener("DOMContentLoaded", includeHTML); \ No newline at end of file diff --git a/js/loading.js b/js/loading.js index aa38a08..cab4e81 100644 --- a/js/loading.js +++ b/js/loading.js @@ -1,43 +1,43 @@ -// const sleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay)) - -document.onreadystatechange=function () { - if (document.readyState=="complete"){ - loadingFade(); - } -} - -function startLoading() { - const position = document.getElementById('loading'); - var loadingBackground=document.getElementById('Calc-loading_bg'); - position.style.display = 'block'; - loadingBackground.style.opacity=1; - setTimeout(() => loadingFade(), 30000) -} - -function loadingFade() { - var opacity=1; - const position = document.getElementById('loading'); - var loadingBackground=document.getElementById('Calc-loading_bg'); - var time=setInterval(function () { - if (opacity<=0){ - clearInterval(time); - position.style.display = 'none'; - try{ - translate.listener.start(); - translate.language.setLocal('chinese_simplified'); - translate.setAutoDiscriminateLocalLanguage(); - translate.language.setUrlParamControl(); - translate.ignore.class.push('notTranslate'); - } - catch(e){console.log(e);} - translate.setUseVersion2(); - translate.nomenclature.append('chinese_simplified','english',` - 568_Calc=568_Calc - `); - translate.execute(); - } - - loadingBackground.style.opacity=opacity; - opacity-=0.4; - },100); +// const sleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay)) + +document.onreadystatechange=function () { + if (document.readyState=="complete"){ + loadingFade(); + } +} + +function startLoading() { + const position = document.getElementById('loading'); + var loadingBackground=document.getElementById('Calc-loading_bg'); + position.style.display = 'block'; + loadingBackground.style.opacity=1; + setTimeout(() => loadingFade(), 30000) +} + +function loadingFade() { + var opacity=1; + const position = document.getElementById('loading'); + var loadingBackground=document.getElementById('Calc-loading_bg'); + var time=setInterval(function () { + if (opacity<=0){ + clearInterval(time); + position.style.display = 'none'; + try{ + translate.listener.start(); + translate.language.setLocal('chinese_simplified'); + translate.setAutoDiscriminateLocalLanguage(); + translate.language.setUrlParamControl(); + translate.ignore.class.push('notTranslate'); + } + catch(e){console.log(e);} + translate.setUseVersion2(); + translate.nomenclature.append('chinese_simplified','english',` + 568_Calc=568_Calc + `); + translate.execute(); + } + + loadingBackground.style.opacity=opacity; + opacity-=0.4; + },100); } \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..ce1e19e --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,15 @@ + + + +https://Calc.pj568.eu.org/ +2023-10-16T17:53:11+08:00 + + +https://Calc.pj568.eu.org/404.html +2023-10-16T17:53:11+08:00 + + +https://Calc.pj568.eu.org/footer.html +2023-10-16T17:53:11+08:00 + +