-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path摸鱼日报.html
96 lines (85 loc) · 2.23 KB
/
摸鱼日报.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>摸鱼日报</title>
<style>
body {
margin: 0;
padding: 0;
}
.box {
width: 100%;
height: 60px;
background-color: #000000;
}
.s {
display: inline-block;
text-align: center;
width: 11%;
height: 40px;
color: #ffffff;
}
.add {
color: #ffdd00;
}
img {
width: 100%;
}
video {
width: 100%;
}
@media (min-width: 560px) {
.r {
width: 390px;
margin: auto;
border: 2px solid black;
}
}
</style>
</head>
<body>
<div class="r">
<div class="box">
<div class="s add">打工日历</div>
<div class="s">摸鱼日报</div>
<div class="s">明星八卦</div>
<div class="s">内涵段子</div>
<div class="s">新闻简报</div>
<div class="s">情感花园</div>
<div class="s">星座运势</div>
<div class="s">摸鱼视频</div>
</div>
<div class="x">
<img src="https://dayu.qqsuu.cn/moyurili/apis.php">
</div>
</div>
<script>
const btn = document.querySelectorAll(".s")
const inp = document.querySelector('.x')
const imgUrl = [
'https://dayu.qqsuu.cn/moyurili/apis.php',
"https://dayu.qqsuu.cn/moyuribao/apis.php",
'https://dayu.qqsuu.cn/mingxingbagua/apis.php',
"https://dayu.qqsuu.cn/neihanduanzi/apis.php",
"https://dayu.qqsuu.cn/weiyujianbao/apis.php",
"https://dayu.qqsuu.cn/qingganhuayuan/apis.php",
"https://dayu.qqsuu.cn/xingzuoyunshi/apis.php"
]
for (let i = 0; i < btn.length; i++) {
btn[i].addEventListener('click', function () {
if (i == 7) {
inp.innerHTML = '<video src="https://dayu.qqsuu.cn/moyuribaoshipin/apis.php" alt="" controls="0"></video>'
} else {
inp.innerHTML = `<img src=${imgUrl[i]}>`
}
for (ix = 0; ix < btn.length; ix++) {
btn[ix].classList.remove('add')
}
this.classList.add('add')
})
}
</script>
</body>
</html>