-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.html
233 lines (206 loc) · 10.5 KB
/
news.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="referrer" content="no-referrer">
<!-- SEO Meta Tags -->
<meta name="description" content="Aria is a business focused HTML landing page template built with Bootstrap to help you create lead generation websites for companies and their services.">
<meta name="author" content="Inovatik">
<!-- OG Meta Tags to improve the way the post looks when you share the page on LinkedIn, Facebook, Google+ -->
<meta property="og:site_name" content=""> <!-- website name -->
<meta property="og:site" content=""> <!-- website link -->
<meta property="og:title" content=""> <!-- title shown in the actual shared post -->
<meta property="og:description" content=""> <!-- description shown in the actual shared post -->
<meta property="og:image" content=""> <!-- image link, make sure it's jpg -->
<meta property="og:url" content=""> <!-- where do you want your post to link to -->
<meta property="og:type" content="article">
<!-- Website Title -->
<title>游戏公告-KukeMC-我的世界服务器(Minecraft)</title>
<!-- Styles -->
<link href="static/css/bootstrap.css" rel="stylesheet">
<link href="static/css/styles.css" rel="stylesheet">
<link href="static/css/markdown.css" rel="stylesheet">
<!-- Favicon -->
<link rel="icon" href="https://m.ccw.site/gandi_application/user_assets/2a6bb37880317d2bb5525ab560618e04.png">
</head>
<body data-spy="scroll" data-target=".fixed-top">
<!-- Preloader -->
<div class="spinner-wrapper">
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</div>
<!-- end of preloader -->
<!-- Navbar -->
<div id="navbar"></div>
<!-- Header -->
<header id="header" class="ex-header">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1>游戏公告</h1>
</div> <!-- end of col -->
</div> <!-- end of row -->
</div> <!-- end of container -->
</header> <!-- end of ex-header -->
<!-- end of header -->
<!-- Breadcrumbs -->
<div class="ex-basic-1">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="breadcrumbs">
<a href="index.html">首页</a><span> > 游戏公告</span>
</div> <!-- end of breadcrumbs -->
</div> <!-- end of col -->
</div> <!-- end of row -->
</div> <!-- end of container -->
</div> <!-- end of ex-basic-1 -->
<!-- end of breadcrumbs -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/night-owl.min.css">
<!-- Terms Content -->
<div class="ex-basic-2">
<div class="container">
<div class="row">
<div class="markdown-body" id="markdown-output">
<p>加载中...</p>
</div>
</div>
</div> <!-- end of row -->
</div> <!-- end of container -->
</div> <!-- end of ex-basic -->
<!-- end of terms content -->
<!-- 正确加载 marked.js -->
<script src="static/js/marked.min.js"></script>
<script>
// 确保 marked 加载后再执行 fetch
document.addEventListener("DOMContentLoaded", function() {
// 启用 gfm 和 breaks 选项,支持换行符
marked.setOptions({
breaks: true // 支持换行符
});
// 加载 markdown 文件
fetch('/static/markdown/news.md')
.then(response => response.text()) // 将响应转换为文本
.then(markdown => {
// 使用 marked.parse 而不是 marked()
const markdownOutput = document.getElementById('markdown-output');
markdownOutput.innerHTML = marked.parse(markdown);
})
.catch(error => {
console.error('Error loading markdown file:', error);
});
});
</script>
<!-- Breadcrumbs -->
<div class="ex-basic-1">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="breadcrumbs">
<!-- 编辑此页 -->
<style>
/* From Uiverse.io by adamgiebl */
.cssbuttons-io {
position: relative;
font-family: inherit;
font-weight: 500;
font-size: 15px;
letter-spacing: 0.05em;
border-radius: 0.5em;
align-items: center;
cursor: pointer;
border: none;
background: linear-gradient(to right, #8e2de2, #4a00e0);
color: ghostwhite;
overflow: hidden;
}
.cssbuttons-io svg {
width: 1.2em;
height: 1.2em;
margin-right: 0.5em;
}
.cssbuttons-io span {
position: relative;
z-index: 10;
transition: color 0.4s;
display: inline-flex;
align-items: center;
padding: 0.8em 1.2em 0.8em 1.05em;
}
.cssbuttons-io::before,
.cssbuttons-io::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.cssbuttons-io::before {
content: "";
background: #94D3A2;
width: 120%;
left: -10%;
transform: skew(30deg);
transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}
.cssbuttons-io:hover::before {
transform: translate3d(100%, 0, 0);
}
.cssbuttons-io:active {
transform: scale(0.95);
}
.cssbuttons-io a{
color: green;
text-decoration: none;
transition: color 0.4s;
}
.cssbuttons-io:hover a {
color: #fff;
}
</style>
<button class="cssbuttons-io">
<span>
<a href="https://github.com/kukemc/KukeMC-Server/edit/main/static/markdown/news.md" target="_blank" ><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_wkQN" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>
编辑此页</span>
</button>
<br></br>
<a href="index.html">首页</a><span> > 游戏公告</span>
<script src="https://giscus.app/client.js"
data-repo="kukemc/KukeMC-Server"
data-repo-id="R_kgDOKNoR9A"
data-category="Announcements"
data-category-id="DIC_kwDOKNoR9M4CjEjv"
data-mapping="news"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="zh-CN"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
</div> <!-- end of breadcrumbs -->
</div> <!-- end of col -->
</div> <!-- end of row -->
</div> <!-- end of container -->
</div> <!-- end of ex-basic-1 -->
<!-- end of breadcrumbs -->
<div id="footer"></div>
<!-- end of copyright -->
<!-- Scripts -->
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> <!-- jQuery for Bootstrap's JavaScript plugins -->
<script src="http://apps.bdimg.com/libs/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery-easing/1.4.1/jquery.easing.min.js"></script> <!-- jQuery Easing for smooth scrolling between anchors -->
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/8.0.6/swiper-bundle.min.js"></script> <!-- Swiper for image and text sliders -->
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script> <!-- Magnific Popup for lightboxes -->
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/Morphext/2.4.4/morphext.min.js"></script> <!-- Morphtext rotating text in the header -->
<script src="static/js/scripts.js"></script> <!-- Custom scripts -->
</body>
</html>