Deploying to gh-pages from @ PJ-568/568_Calc@e8ac89905b5489c3013e1be27440f38d2a699e6c 🚀

gh-pages
PJ-568 1 year ago
parent d27973f97c
commit 3c2ace5da5

@ -1,52 +1,52 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<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">
<meta name='description' content='568_Calc 是一个简单的多平台支持的计算器。'> <meta name='description' content='568_Calc 是一个简单的多平台支持的计算器。'>
<meta http-equiv='content-language' content='zh-Hans-CN'> <meta http-equiv='content-language' content='zh-Hans-CN'>
<link rel="stylesheet" href="/css/loading.css"> <link rel="stylesheet" href="/css/loading.css">
<script src="/js/loading.js"></script> <script src="/js/loading.js"></script>
<link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/translate.css"> <link rel="stylesheet" href="/css/translate.css">
<script src="//res.zvo.cn/translate/translate.js"></script> <script src="//res.zvo.cn/translate/translate.js"></script>
<title class="notTranslate">404</title> <title class="notTranslate">404</title>
<link rel="icon" href="/assets/favicon.svg"> <link rel="icon" href="/assets/favicon.svg">
<link rel="stylesheet" href="/css/hack/dist/hack.css"> <link rel="stylesheet" href="/css/hack/dist/hack.css">
<link rel="stylesheet" href="/css/hack/dist/standard.css"> <link rel="stylesheet" href="/css/hack/dist/standard.css">
<script src="/js/include.js"></script> <script src="/js/include.js"></script>
<script src="/js/giscus.js"></script> <script src="/js/giscus.js"></script>
</head> </head>
<body class="standard"> <body class="standard">
<div id="loading"> <div id="loading">
<div id="Calc-loading_bg"> <div id="Calc-loading_bg">
<img alt="正在加载" class="Calc-loader" src="/css/loading.svg"/> <img alt="正在加载" class="Calc-loader" src="/css/loading.svg"/>
</div> </div>
</div> </div>
<div class="main container"> <div class="main container">
<a href="//github.com/PJ-568/568_Calc" target="_blank" class="github-corner"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#795548; color:#101010; position: absolute; top: 0; border: 0; right: 0;"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a> <a href="//github.com/PJ-568/568_Calc" target="_blank" class="github-corner"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#795548; color:#101010; position: absolute; top: 0; border: 0; right: 0;"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
<a href="/"><p align="center"><img alt="Hamud language" src="assets/favicon.svg" width="40%" style="max-width:256px"/></p></a> <a href="/"><p align="center"><img alt="Hamud language" src="assets/favicon.svg" width="40%" style="max-width:256px"/></p></a>
<h1 class="notTranslate">404</h1> <h1 class="notTranslate">404</h1>
<p>未找到相应信息,或许您应该尝试返回主页。</p> <p>未找到相应信息,或许您应该尝试返回主页。</p>
<div class="btn-group"> <div class="btn-group">
<button onclick="window.location.href='/';startLoading()" class="btn btn-success btn-ghost">回到主页</button> <button onclick="window.location.href='/';startLoading()" class="btn btn-success btn-ghost">回到主页</button>
<button onclick="javascript:history.back(-1);" class="btn btn-success btn-ghost">返回</button> <button onclick="javascript:history.back(-1);" class="btn btn-success btn-ghost">返回</button>
</div> </div>
<h2>反馈</h2> <h2>反馈</h2>
<div id="giscus-container"></div> <div id="giscus-container"></div>
<br/> <br/>
<div class="btn-group"> <div class="btn-group">
<button onclick="window.location.href='/';startLoading()" class="btn btn-success btn-ghost">回到主页</button> <button onclick="window.location.href='/';startLoading()" class="btn btn-success btn-ghost">回到主页</button>
<button onclick="window.location.href='#'" class="btn btn-success btn-ghost">返回页顶</button> <button onclick="window.location.href='#'" class="btn btn-success btn-ghost">返回页顶</button>
<button onclick="javascript:history.back(-1);" class="btn btn-success btn-ghost">返回</button> <button onclick="javascript:history.back(-1);" class="btn btn-success btn-ghost">返回</button>
</div> </div>
<br/> <br/>
<include src="/footer.html"></include> <include src="/footer.html"></include>
</div> </div>
</body> </body>
</html> </html>

@ -1,31 +1,31 @@
#loading { #loading {
position: fixed; position: fixed;
background-color: #212121; background-color: #212121;
top: 0px; top: 0px;
left: 0px; left: 0px;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 1000000 z-index: 1000000
} }
#Calc-loading_bg{ #Calc-loading_bg{
background-color: rgba(0,0,0,0.7); background-color: rgba(0,0,0,0.7);
} }
.Calc-loader { .Calc-loader {
line-height: 50px; line-height: 50px;
text-align: center; text-align: center;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
-webkit-transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
font-family: helvetica, arial, sans-serif; font-family: helvetica, arial, sans-serif;
text-transform: uppercase; text-transform: uppercase;
font-weight: 900; font-weight: 900;
color: #0277BD; color: #0277BD;
letter-spacing: 0.2em; letter-spacing: 0.2em;
} }
@media screen and (max-width: 980px){.Clac-loader{width:80%}} @media screen and (max-width: 980px){.Clac-loader{width:80%}}
@media screen and (min-width: 980px){.Clac-loader{width:25rem}} @media screen and (min-width: 980px){.Clac-loader{width:25rem}}

@ -1,14 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin: auto; background: #212121; display: block;" width="200px" height="200px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin: auto; background: #212121; display: block;" width="200px" height="200px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
<rect x="17.5" y="30" width="15" height="40" fill="#424242"> <rect x="17.5" y="30" width="15" height="40" fill="#424242">
<animate attributeName="y" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="18;30;30" keySplines="0 0.5 0.5 1;0 0.5 0.5 1" begin="-0.2s"></animate> <animate attributeName="y" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="18;30;30" keySplines="0 0.5 0.5 1;0 0.5 0.5 1" begin="-0.2s"></animate>
<animate attributeName="height" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="64;40;40" keySplines="0 0.5 0.5 1;0 0.5 0.5 1" begin="-0.2s"></animate> <animate attributeName="height" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="64;40;40" keySplines="0 0.5 0.5 1;0 0.5 0.5 1" begin="-0.2s"></animate>
</rect> </rect>
<rect x="42.5" y="30" width="15" height="40" fill="#795548"> <rect x="42.5" y="30" width="15" height="40" fill="#795548">
<animate attributeName="y" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="20.999999999999996;30;30" keySplines="0 0.5 0.5 1;0 0.5 0.5 1" begin="-0.1s"></animate> <animate attributeName="y" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="20.999999999999996;30;30" keySplines="0 0.5 0.5 1;0 0.5 0.5 1" begin="-0.1s"></animate>
<animate attributeName="height" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="58.00000000000001;40;40" keySplines="0 0.5 0.5 1;0 0.5 0.5 1" begin="-0.1s"></animate> <animate attributeName="height" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="58.00000000000001;40;40" keySplines="0 0.5 0.5 1;0 0.5 0.5 1" begin="-0.1s"></animate>
</rect> </rect>
<rect x="67.5" y="30" width="15" height="40" fill="#616161"> <rect x="67.5" y="30" width="15" height="40" fill="#616161">
<animate attributeName="y" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="20.999999999999996;30;30" keySplines="0 0.5 0.5 1;0 0.5 0.5 1"></animate> <animate attributeName="y" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="20.999999999999996;30;30" keySplines="0 0.5 0.5 1;0 0.5 0.5 1"></animate>
<animate attributeName="height" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="58.00000000000001;40;40" keySplines="0 0.5 0.5 1;0 0.5 0.5 1"></animate> <animate attributeName="height" repeatCount="indefinite" dur="1s" calcMode="spline" keyTimes="0;0.5;1" values="58.00000000000001;40;40" keySplines="0 0.5 0.5 1;0 0.5 0.5 1"></animate>
</rect> </rect>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -1,4 +1,4 @@
html { html {
color: #DDD; color: #DDD;
background-color: #111; background-color: #111;
} }

@ -1,12 +1,12 @@
#translate>.translateSelectLanguage { #translate>.translateSelectLanguage {
cursor:pointer; cursor:pointer;
position:absolute; position:absolute;
padding:0.3rem; padding:0.3rem;
padding-left:0.5rem; padding-left:0.5rem;
padding-right:0.5rem; padding-right:0.5rem;
color: #DDD; color: #DDD;
background-color: #795548; background-color: #795548;
border:2px solid #8D6E63; border:2px solid #8D6E63;
} }
@media screen and (max-width: 980px){#translate>.translateSelectLanguage {left:1rem;top:1rem;font-size:.8rem;width:6rem}} @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}} @media screen and (min-width: 980px){#translate>.translateSelectLanguage {left:2rem;top:2rem;font-size:1rem}}

@ -1,3 +1,3 @@
<footer class="footer"> <footer class="footer">
<!-- <a href="//icp.gov.moe/?keyword=2023XXXX" target="_blank">萌 ICP 备 2023XXXX 号</a>、 --> <!-- <a href="//icp.gov.moe/?keyword=2023XXXX" target="_blank">萌 ICP 备 2023XXXX 号</a>、 -->
<a href="//status.pj568.eu.org/" target="_blank">网站状态</a></footer> <a href="//status.pj568.eu.org/" target="_blank">网站状态</a></footer>

@ -1,61 +1,61 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<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">
<meta name='description' content='568_Calc 是一个简单的多平台支持的计算器。'> <meta name='description' content='568_Calc 是一个简单的多平台支持的计算器。'>
<meta http-equiv='content-language' content='zh-Hans-CN'> <meta http-equiv='content-language' content='zh-Hans-CN'>
<link rel="stylesheet" href="css/loading.css"> <link rel="stylesheet" href="css/loading.css">
<script src="js/loading.js"></script> <script src="js/loading.js"></script>
<link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/translate.css"> <link rel="stylesheet" href="css/translate.css">
<script src="//res.zvo.cn/translate/translate.js"></script> <script src="//res.zvo.cn/translate/translate.js"></script>
<title class="notTranslate">568_Calc</title> <title class="notTranslate">568_Calc</title>
<link rel="icon" href="assets/favicon.svg"> <link rel="icon" href="assets/favicon.svg">
<link rel="stylesheet" href="css/hack/dist/hack.css"> <link rel="stylesheet" href="css/hack/dist/hack.css">
<link rel="stylesheet" href="css/hack/dist/standard.css"> <link rel="stylesheet" href="css/hack/dist/standard.css">
<script src="js/include.js"></script> <script src="js/include.js"></script>
<script src="js/giscus.js"></script> <script src="js/giscus.js"></script>
</head> </head>
<body class="standard"> <body class="standard">
<div id="loading"> <div id="loading">
<div id="Calc-loading_bg"> <div id="Calc-loading_bg">
<img alt="正在加载" class="Calc-loader" src="css/loading.svg"/> <img alt="正在加载" class="Calc-loader" src="css/loading.svg"/>
</div> </div>
</div> </div>
<div class="main container"> <div class="main container">
<a href="//github.com/PJ-568/568_Calc" target="_blank" class="github-corner"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#795548; color:#101010; position: absolute; top: 0; border: 0; right: 0;"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a> <a href="//github.com/PJ-568/568_Calc" target="_blank" class="github-corner"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#795548; color:#101010; position: absolute; top: 0; border: 0; right: 0;"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
<a href="/"><p align="center"><img alt="Hamud language" src="assets/favicon.svg" width="40%" style="max-width:256px"/></p></a> <a href="/"><p align="center"><img alt="Hamud language" src="assets/favicon.svg" width="40%" style="max-width:256px"/></p></a>
<h1 class="notTranslate">568_Calc</h1> <h1 class="notTranslate">568_Calc</h1>
<p>568_Calc 是一个简单的多平台支持的计算器。</p> <p>568_Calc 是一个简单的多平台支持的计算器。</p>
<!-- <h2>应用程序</h2> <!-- <h2>应用程序</h2>
<p>点击可下载对应应用程序。</p> <p>点击可下载对应应用程序。</p>
<div class="btn-group"> <div class="btn-group">
<button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc_x64.msi'" class="btn btn-success btn-ghost notTranslate">Windows x86_64 .msi</button> <button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc_x64.msi'" class="btn btn-success btn-ghost notTranslate">Windows x86_64 .msi</button>
<button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc.dmg'" class="btn btn-success btn-ghost notTranslate">MacOS .dmg</button> <button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc.dmg'" class="btn btn-success btn-ghost notTranslate">MacOS .dmg</button>
<button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc_x86_64.AppImage'" class="btn btn-success btn-ghost notTranslate">Linux x86_64 .AppImage</button> <button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc_x86_64.AppImage'" class="btn btn-success btn-ghost notTranslate">Linux x86_64 .AppImage</button>
<button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc_x86_64.deb'" class="btn btn-success btn-ghost notTranslate">Linux x86_64 .deb</button> <button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc_x86_64.deb'" class="btn btn-success btn-ghost notTranslate">Linux x86_64 .deb</button>
<button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc_First_Release.apk'" class="btn btn-success btn-ghost">安卓 .apk</button> <button onclick="window.location.href='//github.com/PJ-568/568_Calc/releases/download/v0.0.0.0/568_Calc_First_Release.apk'" class="btn btn-success btn-ghost">安卓 .apk</button>
</div> --> </div> -->
<h2>贡献者</h2> <h2>贡献者</h2>
<p>感谢所有提供贡献的人!</p> <p>感谢所有提供贡献的人!</p>
<a href="//github.com/PJ-568/568_Calc/graphs/contributors" target="_blank"><img alt="贡献者的头像图片" src="//contrib.rocks/image?repo=PJ-568/568_Calc" loading="lazy"/></a> <a href="//github.com/PJ-568/568_Calc/graphs/contributors" target="_blank"><img alt="贡献者的头像图片" src="//contrib.rocks/image?repo=PJ-568/568_Calc" loading="lazy"/></a>
<h2>讨论区</h2> <h2>讨论区</h2>
<p>请留下您的宝贵建议。</p> <p>请留下您的宝贵建议。</p>
<div id="giscus-container"></div> <div id="giscus-container"></div>
<br/> <br/>
<div class="alert alert-info">项目将持续推进,期待<a onclick="startLoading()" href="//Github.com/PJ-568/568_Calc">您的贡献</a></div> <div class="alert alert-info">项目将持续推进,期待<a onclick="startLoading()" href="//Github.com/PJ-568/568_Calc">您的贡献</a></div>
<br/> <br/>
<div class="btn-group"> <div class="btn-group">
<button onclick="window.location.href='#'" class="btn btn-success btn-ghost">返回页顶</button> <button onclick="window.location.href='#'" class="btn btn-success btn-ghost">返回页顶</button>
</div> </div>
<br/> <br/>
<include src="footer.html"></include> <include src="footer.html"></include>
</div> </div>
</body> </body>
</html> </html>

@ -1,56 +1,56 @@
// 获取用户使用的语种。 // 获取用户使用的语种。
var lang = translate.language.getCurrent(); var lang = translate.language.getCurrent();
var giscus_lang = "zh-CN"; var giscus_lang = "zh-CN";
switch (lang) { switch (lang) {
case "chinese_traditional": case "chinese_traditional":
giscus_lang = "zh-TW"; giscus_lang = "zh-TW";
break; break;
case "english": case "english":
giscus_lang = "en"; giscus_lang = "en";
break; break;
case "spanish": case "spanish":
giscus_lang = "es"; giscus_lang = "es";
break; break;
case "japanese": case "japanese":
giscus_lang = "ja"; giscus_lang = "ja";
break; break;
case "korean": case "korean":
giscus_lang = "ko"; giscus_lang = "ko";
break; break;
case "french": case "french":
giscus_lang = "fr"; giscus_lang = "fr";
break; break;
case "arabic": case "arabic":
giscus_lang = "ar"; giscus_lang = "ar";
break; break;
default: default:
giscus_lang = "zh-CN"; giscus_lang = "zh-CN";
break; break;
} }
var giscus = function () { var giscus = function () {
const script = document.createElement("script"); const script = document.createElement("script");
script.type = "text/javascript"; script.type = "text/javascript";
script.src = "https://giscus.app/client.js"; script.src = "https://giscus.app/client.js";
script.setAttribute("data-repo", "PJ-568/568_Calc"); script.setAttribute("data-repo", "PJ-568/568_Calc");
script.setAttribute("data-repo-id", "R_kgDOKgTh_A"); script.setAttribute("data-repo-id", "R_kgDOKgTh_A");
script.setAttribute("data-category", "Announcements"); script.setAttribute("data-category", "Announcements");
script.setAttribute("data-category-id", "DIC_kwDOKgTh_M4CaKUO"); script.setAttribute("data-category-id", "DIC_kwDOKgTh_M4CaKUO");
script.setAttribute("data-mapping", "title"); script.setAttribute("data-mapping", "title");
script.setAttribute("data-strict", "1"); script.setAttribute("data-strict", "1");
script.setAttribute("data-reactions-enabled", "1"); script.setAttribute("data-reactions-enabled", "1");
script.setAttribute("data-emit-metadata", "0"); script.setAttribute("data-emit-metadata", "0");
script.setAttribute("data-input-position", "top"); script.setAttribute("data-input-position", "top");
script.setAttribute("data-theme", "transparent_dark"); script.setAttribute("data-theme", "transparent_dark");
script.setAttribute("data-lang", giscus_lang); script.setAttribute("data-lang", giscus_lang);
script.setAttribute("data-loading", "lazy"); script.setAttribute("data-loading", "lazy");
script.crossOrigin = "anonymous"; script.crossOrigin = "anonymous";
script.async = true; script.async = true;
document.getElementById("giscus-container").appendChild(script); document.getElementById("giscus-container").appendChild(script);
}; };
window.addEventListener('load', giscus); window.addEventListener('load', giscus);

@ -1,26 +1,26 @@
function includeHTML() { function includeHTML() {
var elements = document.getElementsByTagName("include"); var elements = document.getElementsByTagName("include");
for (var i = 0; i < elements.length; i++) { for (var i = 0; i < elements.length; i++) {
var element = elements[i]; var element = elements[i];
var file = element.getAttribute("src"); var file = element.getAttribute("src");
if (file) { if (file) {
var xhttp = new XMLHttpRequest(); var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() { xhttp.onreadystatechange = function() {
if (this.readyState === 4 && this.status === 200) { if (this.readyState === 4 && this.status === 200) {
element.innerHTML = this.responseText; element.innerHTML = this.responseText;
// 执行加载的JavaScript代码 // 执行加载的JavaScript代码
var scripts = element.getElementsByTagName("script"); var scripts = element.getElementsByTagName("script");
for (var j = 0; j < scripts.length; j++) { for (var j = 0; j < scripts.length; j++) {
var script = document.createElement("script"); var script = document.createElement("script");
script.innerHTML = scripts[j].innerHTML; script.innerHTML = scripts[j].innerHTML;
document.body.appendChild(script); document.body.appendChild(script);
} }
} }
}; };
xhttp.open("GET", file, true); xhttp.open("GET", file, true);
xhttp.send(); xhttp.send();
} }
} }
} }
document.addEventListener("DOMContentLoaded", includeHTML); document.addEventListener("DOMContentLoaded", includeHTML);

@ -1,43 +1,43 @@
// const sleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay)) // const sleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay))
document.onreadystatechange=function () { document.onreadystatechange=function () {
if (document.readyState=="complete"){ if (document.readyState=="complete"){
loadingFade(); loadingFade();
} }
} }
function startLoading() { function startLoading() {
const position = document.getElementById('loading'); const position = document.getElementById('loading');
var loadingBackground=document.getElementById('Calc-loading_bg'); var loadingBackground=document.getElementById('Calc-loading_bg');
position.style.display = 'block'; position.style.display = 'block';
loadingBackground.style.opacity=1; loadingBackground.style.opacity=1;
setTimeout(() => loadingFade(), 30000) setTimeout(() => loadingFade(), 30000)
} }
function loadingFade() { function loadingFade() {
var opacity=1; var opacity=1;
const position = document.getElementById('loading'); const position = document.getElementById('loading');
var loadingBackground=document.getElementById('Calc-loading_bg'); var loadingBackground=document.getElementById('Calc-loading_bg');
var time=setInterval(function () { var time=setInterval(function () {
if (opacity<=0){ if (opacity<=0){
clearInterval(time); clearInterval(time);
position.style.display = 'none'; position.style.display = 'none';
try{ try{
translate.listener.start(); translate.listener.start();
translate.language.setLocal('chinese_simplified'); translate.language.setLocal('chinese_simplified');
translate.setAutoDiscriminateLocalLanguage(); translate.setAutoDiscriminateLocalLanguage();
translate.language.setUrlParamControl(); translate.language.setUrlParamControl();
translate.ignore.class.push('notTranslate'); translate.ignore.class.push('notTranslate');
} }
catch(e){console.log(e);} catch(e){console.log(e);}
translate.setUseVersion2(); translate.setUseVersion2();
translate.nomenclature.append('chinese_simplified','english',` translate.nomenclature.append('chinese_simplified','english',`
568_Calc=568_Calc 568_Calc=568_Calc
`); `);
translate.execute(); translate.execute();
} }
loadingBackground.style.opacity=opacity; loadingBackground.style.opacity=opacity;
opacity-=0.4; opacity-=0.4;
},100); },100);
} }

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://Calc.pj568.eu.org/</loc>
<lastmod>2023-10-16T17:53:11+08:00</lastmod>
</url>
<url>
<loc>https://Calc.pj568.eu.org/404.html</loc>
<lastmod>2023-10-16T17:53:11+08:00</lastmod>
</url>
<url>
<loc>https://Calc.pj568.eu.org/footer.html</loc>
<lastmod>2023-10-16T17:53:11+08:00</lastmod>
</url>
</urlset>
Loading…
Cancel
Save