Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
435 lines (359 loc) · 10.8 KB
/
Copy pathindex.html
File metadata and controls
435 lines (359 loc) · 10.8 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<!--设置html版本为最新版-->
<!--<!DOCTYPE html>-->
<!DOCTYPE html>
<html>
<html lang="zh-CN">
<style>
<!--设置页面整体字体大小-->
body {
font-size:
16px;
}
<!--设置标题大小-->
h1{
font-size: 36px;
}
<!--设置标题颜色-->
h1{
color: #333;
}
<!--设置段落颜色-->
p{
color: #666;
}
<!--设置链接颜色-->
a{
color: #333;
}
<!--设置链接下划线-->
a:hover{
text-decoration: underline;
}
<!--设置图片边框-->
img{
border: 1px solid #ccc;
}
<!--设置图片宽度-->
img{
max-width: 100%;
}
<!--设置图片居中-->
.center{
display: block;
margin: 0 auto;
}
<!--设置列表样式-->
ul{
list-style: disc;
padding-left: 20px;
}
<!--设置列表颜色-->
li{
color: #666;
}
<!--设置代码块样式-->
pre{
background-color: #f5f5f5;
border: 1px solid #ccc;
padding: 10px;
font-size: 14px;
line-height: 1.5;
color: #333;
margin: 10px 0;
}
<!--设置代码块行号-->
pre{
counter-reset: line;
}
pre code{
counter-increment: line;
}
pre code::before{
content: counter(line);
display: inline-block;
width: 2em;
margin-right: 0.5em;
color: #ccc;
text-align: right;
}
<!--设置按钮样式-->
button{
background-color: #333;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
<!--设置按钮悬停样式-->
button:hover{
background-color: #666;
}
<!--设置表格样式-->
table{
border-collapse: collapse;
border: 1px solid #ccc;
margin: 10px 0;
}
<!--设置表格边框-->
th, td{
border: 1px solid #ccc;
padding: 10px;
text-align: center;
}
<!--设置表格标题样式-->
th{
background-color: #f5f5f5;
}
<!--设置分页样式-->
.pagination{
display: inline-block;
}
.pagination a{
color: black;
float: left;
padding: 8px 16px;
text-decoration: none;
}
.pagination a.active{
background-color: #4CAF50;
color: white;
border: 1px solid #4CAF50;
}
.pagination a:hover:not(.active){
background-color: #ddd;
}
<!--设置标签云样式-->
.tagcloud{
margin: 10px 0;
}
.tagcloud a{
display: inline-block;
background-color: #f5f5f5;
color: #333;
border-radius: 5px;
padding: 5px 10px;
margin: 5px;
text-decoration: none;
}
.tagcloud a:hover{
background-color: #333;
color: #fff;
}
<!--设置标签云颜色-->
.tagcloud a{
background-color: #f5f5f5;
}
<!--设置标签云悬停样式-->
.tagcloud a:hover{
background-color: #333;
color: #fff;
}
<!--设置标签云字体大小-->
.tagcloud a{
font-size: 14px;
}
<!--设置标签云行高-->
.tagcloud a{
line-height: 20px;
}
<!--设置标签云间距-->
.tagcloud a{
margin: 5px;
}
</style>
<!--下载font-awesome.css图标包-->
<!--https://www.58html.com/html/template/font-awesome.zip-->
<link rel="stylesheet" href="https://www.58html.com/gui/css/font-awesome/css/font-awesome.css">
<div id="lyrow">
<head>
<meta charset="utf-8" />
<title>已载入</title>
<meta name="keywords" content="关键词,关键字">
<meta name="description" content="描述信息">
<meta name="lrz" content="402rd">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
<script src="jquery-3.3.1.min.js"></script>
</head>
<div></div>
<div></div>
<select id="languageSwitcher">
<option value="cn">简体中文</option>
<option value="en">English</option>
<!--//添加更多语言选项-->
<option value="jp">日本語</option>
<option value="de">Deutsch</option>
</select>
<!--当语言选项被点击打开对应语言的页面文件并将语言选项改为选中状态-->
<script>
$(document).ready(function () {
$("#languageSwitcher").change(function () {
var language = $(this).val();
//选中“简体中文时”打开index.html
if (language == "cn") {
window.location.href = "https://lrz207.github.io/index.html";
} else {
//打开htmls目录下对应language目录下的语言文件
location.href = "https://lrz207.github.io/htmls/" + language + "/" + language + ".html";
}
//修改languageSwitcher的内容为language
});
});
</script>
<p>建立日期:2022</p>
<p>更新日期:2025-1-1</p>
<p><Version:0 class="5 4 20250101"></Version:0></p>
<p class="page_index" ;front-size:40px>有什么想说的可以写邮件到:v72006@outlook.com</p>
<a href="https://lrz207.github.io/htmls/update.html" target="_blank">更新说明</a>
<a href="https://lrz207.github.io/htmls/test.html" target="_blank">语言测试</a>
<a href="https://lrz207.github.io/htmls/videopalyer/main.html" target="_blank">视频播放器</a>
<a href="https://lrz207.github.io/htmls/contact.html" target="_blank">联系</a>
<a href="https://zhouql.vip/bilibili/" target="_blank">友情链接</a>
<a href="https://lrz207.github.io/htmls/text_encrypt.html" target="_blank">文本加密工具</a>
<!--打开新页面“文本加密工具”-->
</div>
<body>
<script type="text/javascript ">
//获取当前网络状态
var state = window.navigator.onLine;
if (state) {
alert("您好,当前处于联网状态 ");
} else {
alert("当前处于断网状态,请修复连接 ");
} //当联网的时候触发该事件
window.ononline = function() {
alert("网络正常 ");
} //当断网的时候触发该事件
window.onoffline = function() {
alert("网络连接已断开,请重新连接 ");
}
$.ajax({
url: "./data/test.json",
type: "GET",
dataType: "json",
success: function(data) {
displayData(data)
}
});
function nothingFunction() {
alert("什么都不会发生就怪了。 ")
};
</script>
</body>
<script>
//创建背景音乐并播放
var bgmnum = 5;
var bgmnumx = 1;
var bgm = document.createElement("audio");
bgm.src = "https://lrz207.github.io/res/sounds/backgroud" + bgmnumx + ".mp3";
bgm.loop = true;
bgm.volume = 0.5;
document.body.appendChild(bgm);
bgm.play();
//添加暂停,继续播放按钮并以浮动框形式呈现
var pauseBtn = document.createElement("button");
pauseBtn.innerHTML = "暂停";
pauseBtn.style.position = "fixed";
pauseBtn.style.top = "50%";
pauseBtn.style.left = "50%";
pauseBtn.style.transform = "translate(-50%, -50%)";
pauseBtn.style.backgroundColor = "red";
pauseBtn.style.color = "white";
pauseBtn.style.padding = "10px";
pauseBtn.style.borderRadius = "5px";
pauseBtn.style.fontSize = "18px";
pauseBtn.style.zIndex = "9999";
pauseBtn.onclick = function() {
bgm.pause();
};
document.body.appendChild(pauseBtn);
//创建播放按钮并将其添加到页面上
var playBtn = document.createElement("button");
playBtn.innerHTML = "播放";
playBtn.style.position = "fixed";
playBtn.style.top = "50%";
playBtn.style.left = "50%";
playBtn.style.transform = "translate(-50%, -50%)";
playBtn.style.backgroundColor = "red";
playBtn.style.color = "white";
playBtn.style.padding = "10px";
playBtn.style.borderRadius = "5px";
playBtn.style.fontSize = "18px";
playBtn.style.zIndex = "9999";
playBtn.onclick = function() {
bgm.play();
};
document.body.appendChild(playBtn);
// 创建按钮的函数,避免重复代码
function createButton(text, position, callbackFunction, color = "red") {
var btn = document.createElement("button");
btn.innerHTML = text;
btn.style.position = "fixed";
btn.style.backgroundColor = color;
btn.style.color = "white";
btn.style.padding = "10px";
btn.style.borderRadius = "5px";
btn.style.fontSize = "18px";
btn.style.zIndex = "9999";
// 设置位置
if (position === "next") {
btn.style.bottom = "50px";
btn.style.right = "50px";
} else if (position === "prev") {
btn.style.bottom = "50px";
btn.style.left = "50px";
}
// 添加点击事件
btn.onclick = callbackFunction;
document.body.appendChild(btn);
return btn;
}
// 创建切换下一首按钮并将其添加到页面上
createButton("下一首", "next", function() {
bgmnumx++;
if (bgmnumx > bgmnum) {
bgmnumx = 1; // 循环到第一首
}
bgm.src = "https://lrz207.github.io/res/sounds/backgroud" + bgmnumx + ".mp3";
bgm.play(); // 播放切换后的音频
});
// 创建切换上一首按钮的点击事件并实现播放上一首歌曲
createButton("上一首", "prev", function() {
bgmnumx--;
if (bgmnumx < 1) {
bgmnumx = bgmnum; // 循环到最后一首
}
bgm.src = "https://lrz207.github.io/res/sounds/backgroud" + bgmnumx + ".mp3";
bgm.play(); // 播放切换后的音频
});
document.body.appendChild(pauseBtn);
//添加音量控制按钮并以浮动框形式呈现
var volumeBtn = document.createElement("button");
volumeBtn.innerHTML = "音量";
volumeBtn.style.position = "fixed";
volumeBtn.style.top = "50%";
volumeBtn.style.right = "50%";
volumeBtn.style.transform = "translate(50%, -50%)";
volumeBtn.style.backgroundColor = "red";
volumeBtn.style.color = "white";
volumeBtn.style.padding = "10px";
volumeBtn.style.borderRadius = "5px";
volumeBtn.style.fontSize = "18px";
volumeBtn.style.zIndex = "9999";
voumeBtn.onclick = function() {
bgm.volume = bgm.volume? 0 : 1;
};
document.body.appendChild(volumeBtn);
function aaa() {
alert("你点了没用,我只是测试一下。 ")}
</script>
<button type="button " onclick="nothingFunction() " class="button">千万别点</button>
<button type="button " onclick="aaa()" class="button">这个没用</button>
<div class="test" id="test"></div>
<form name="form" id="form">
powered by LRZ
</form>
</html>