-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessages.html
More file actions
85 lines (66 loc) · 2.6 KB
/
Copy pathmessages.html
File metadata and controls
85 lines (66 loc) · 2.6 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>留言板 - 海外实践:沙特阿拉伯</title>
<script src="https://cdn.tailwindcss.com"></script>
<!-- CSS Modules -->
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/practice.css">
<link rel="stylesheet" href="css/messages.css">
</head>
<body>
<!-- ========== 共享背景层 ========== -->
<div id="atmosphere" class="atmosphere-overlay" style="opacity: 0.3; background-color: rgba(0,20,20,0.5);"></div>
<canvas id="canvas-layer"></canvas>
<!-- 返回按钮 -->
<a href="index.html?skipIntro=true" class="back-btn">
< 返回星图 / Return to Map
</a>
<!-- 内容容器 -->
<div class="practice-container">
<header class="page-header">
<h1 class="page-title">访客留言</h1>
<div class="page-subtitle">GUESTBOOK & FEEDBACK // CONNECT</div>
</header>
<div class="content-grid" style="display: block; max-width: 800px;">
<!-- 留言列表区 (Dual Mode: Local or Valine) -->
<!-- 留言板区域 -->
<!-- Twikoo Container -->
<div id="tcomment" class="glass-card" style="margin-top: 30px;">
<div style="text-align: center; color: #aaa; padding: 20px;">
正在连接星际通讯频段...(耗时长短不定,但在1min以内,请耐心等待⭐️⭐️) <br>
Connecting to Interstellar Network...
</div>
</div>
</div>
</div>
<!-- 简单复用现有的粒子效果 -->
<script src="js/effects.js"></script>
<script src="https://cdn.staticfile.net/twikoo/1.6.39/twikoo.all.min.js"></script>
<script src="js/messages.js"></script>
<script>
// 简化的 Main 用于页面背景
const canvas = document.getElementById('canvas-layer');
const ctx = canvas.getContext('2d');
function resize() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
window.addEventListener('resize', resize);
// 初始化
resize();
initParticles(); // From effects.js
function animate() {
ctx.clearRect(0, 0, window.innerWidth, window.innerHeight);
particles.forEach(p => {
p.update();
p.draw(ctx, 'default');
});
requestAnimationFrame(animate);
}
animate();
</script>
</body>
</html>