Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
html5syt committed Apr 27, 2024
1 parent ea277d4 commit 3a88251
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 148 deletions.
24 changes: 0 additions & 24 deletions docs/assets/javascripts/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,8 @@ document$.subscribe(function() {
var textWrapper = document.querySelector('.ml3');
textWrapper.innerHTML = textWrapper.textContent.replace(/\S/g, "<span class='letter'>$&</span>");

anime.timeline({loop: true})
.add({
targets: '.ml3 .letter',
opacity: [0,1],
easing: "easeInOutQuad",
duration: 2250,
delay: (el, i) => 150 * (i+1)
}).add({
targets: '.ml3',
opacity: 0,
duration: 1000,
easing: "easeOutExpo",
delay: 1000
});


//全屏视频
var video = document.getElementById("video1");
var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);

if (isMobile) {
video.style.display = "none";
video.muted = true;
} else {
video.volume = 0.5; // 或者根据需要设置适当的音量值,例如 0.5 表示 50% 的音量
}

// 优化
// const container = document.querySelector('.container');
Expand Down
12 changes: 6 additions & 6 deletions docs/custom/partials/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
{% endif %}
{% if not config.extra.generator == false %}
文档版本:2.5│正式修订日期:2024年4月27日<p>\n当前时间:</p> <p class="p1"></p>
文档版本:2.5│正式修订日期:2024年4月27日<br>当前时间: <p class="p1"></p>

<script defer>
//格式:2020年04月12日 10:20:00 星期二
Expand Down Expand Up @@ -86,12 +86,12 @@
}
}, 1000);
</script>

<br>
<p>
<span>\n本站已经运行</span>
<span id='box1'></span>
<span>本站已经运行</span>
<span class='box1'></span>
</p>
<div id="box1"></div>
<div class="box1"></div>
<script>
function timingTime(){
let start = '2024-05-01 00:00:00'
Expand All @@ -108,7 +108,7 @@
return day + "天" + ss + "时" + ff + "分" + mm +'秒'
}
setInterval(()=>{
document.getElementById('box1').innerHTML = timingTime()
document.getElementByClass('box1').innerHTML = timingTime()
},1000)
</script>

Expand Down
136 changes: 19 additions & 117 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
<div style="text-align:center;"> <h1><b>全站使用说明(未迁移完成)</b></h1></div>

---
## 欢迎各位成员!


<div style="text-align:center;"> <h1 style="color: red"><b>请认真阅读完以下重点内容!</b></h1></div>

1. **注册规则在2.1节!**
2. **此社区不对所有成年人开放,请勿在校内大幅度宣传!(懂得都懂)**
3. **本文部分图片由于功能变动与社区实际情况有出入,请以实际社区操作为准!**

---
---
title: Home
hide:
Expand All @@ -24,110 +11,25 @@ comments: false

<center><font color= #02A6F2 size=6 class="ml3">欢迎各位成员!</font></center>
<script src="https://cdn.jsdelivr.net/npm/animejs@3.2.2/lib/anime.min.js"></script>
<script>
anime.timeline({loop: true})
.add({
targets: '.ml3',
opacity: [0,1],
easing: "easeInOutQuad",
duration: 2250,
delay: (el, i) => 150 * (i+1)
}).add({
targets: '.ml3',
opacity: 0,
duration: 1000,
easing: "easeOutExpo",
delay: 1000
});


<div style="text-align:center;"> <h1 style="color: red"><b>请认真阅读完以下重点内容!</b></h1></div>

<!-- !时间 -->
<!-- <div id="rcorners2" > -->
<!-- <div id="rcorners1"> -->
<!-- <i class="fa fa-calendar" style="font-size:100"></i> -->
<body>
<font color="#4351AF">
<p class="p1"></p>
<script defer>
//格式:2020年04月12日 10:20:00 星期二
function format(newDate) {
var day = newDate.getDay();
var y = newDate.getFullYear();
var m =
newDate.getMonth() + 1 < 10
? "0" + (newDate.getMonth() + 1)
: newDate.getMonth() + 1;
var d =
newDate.getDate() < 10 ? "0" + newDate.getDate() : newDate.getDate();
var h =
newDate.getHours() < 10 ? "0" + newDate.getHours() : newDate.getHours();
var min =
newDate.getMinutes() < 10
? "0" + newDate.getMinutes()
: newDate.getMinutes();
var s =
newDate.getSeconds() < 10
? "0" + newDate.getSeconds()
: newDate.getSeconds();
var dict = {
1: "",
2: "",
3: "",
4: "",
5: "",
6: "",
0: "",
};
//var week=["日","一","二","三","四","五","六"]
return (
y +
"" +
m +
"" +
d +
"" +
" " +
h +
":" +
min +
":" +
s +
" 星期" +
dict[day]
);
}
var timerId = setInterval(function () {
var newDate = new Date();
var p1 = document.querySelector(".p1");
if (p1) {
p1.textContent = format(newDate);
}
}, 1000);
</script>
</font>
</body>
<!-- </div> -->
开发中,站点变动较大,请谅解!
<!-- </div> -->




<body>
<font color="#B9B9B9">
<p style="text-align: center; ">
<span>(未启用)本站已经运行</span>
<span id='box1'></span>
</p>
<div id="box1"></div>
<script>
function timingTime(){
let start = '2022-10-20 00:00:00'
let startTime = new Date(start).getTime()
let currentTime = new Date().getTime()
let difference = currentTime - startTime
let m = Math.floor(difference / (1000))
let mm = m % 60 //
let f = Math.floor(m / 60)
let ff = f % 60 // 分钟
let s = Math.floor(f/ 60) // 小时
let ss = s % 24
let day = Math.floor(s / 24 ) // 天数
return day + "" + ss + "" + ff + "" + mm +''
}
setInterval(()=>{
document.getElementById('box1').innerHTML = timingTime()
},1000)
</script>
</font>
</body>




1. **注册规则在2.1节!**
2. **此社区不对所有成年人开放,请勿在校内大幅度宣传!(懂得都懂)**
3. **本文部分图片由于功能变动与社区实际情况有出入,请以实际社区操作为准!**
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ markdown_extensions:


extra_javascript:
- assets/javascripts/extra.js
# - assets/javascripts/extra.js
- assets/javascripts/bannerSlider.js
- assets/javascripts/mathjax.js
- assets/javascripts/iconsearch.js
Expand Down

0 comments on commit 3a88251

Please sign in to comment.