forked from RedTownServer/redtownserver.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
532 lines (524 loc) · 22.7 KB
/
index.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
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
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RedTownServer</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!-- semantic.css -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.css">
<!-- semantic.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.js"></script>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="../head.css">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@MCRedTownServer">
<meta name="twitter:creator" content="@MCRedTownServer">
<style>
.first {
background-image: url("image/head-bg-1.webp");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
padding: 16em 0em;
}
.first-content {
background-color: rgba(0, 0, 0, 0.6);
padding: 0.6em;
border-top: #fe4949 solid 5px;
}
.second {
padding: 0.6em 0em;
}
.second-item-inner {
border: #fe4949 solid 2px;
border-radius: 5px;
padding: 3em 1em;
background-color: #fd3939;
color: white;
}
.second-item-inner .header {
color: white;
}
</style>
</head>
<body>
<div class="computers">
<div class="ui fixed borderless huge menu">
<div class="ui container">
<div class="ui red header item title">
<div class="content">
<img src="../logo.svg" height="25em" width="auto" alt="RedTownServer logo">
<div class="sub header">
MinecraftServer
</div>
</div>
</div>
<a class="item right active">Home</a>
<a href="/article/?name=about" class="item">About</a>
<a class="item">Staff</a>
<div class="ui simple dropdown item">
Social<i class="dropdown icon"></i>
<div class="menu">
<a href="https://twitter.com/mcredtownserver" class="item">Twitter</a>
<a href="https://discord.gg/BCZkCW3QZZ" class="item">Discord</a>
<a href="https://minecraft.jp/servers/56ffb2cf4ddda1a7260041cb" class="item">JMS</a>
</div>
</div>
<div class="item">
<a href="./join/"><button class="ui red button">Join</button></a>
</div>
</div>
</div>
</div>
<div class="mobile">
<div class="ui fixed borderless huge menu">
<div class="ui container">
<div class="ui red header item title">
<div class="content">
<img src="../logo.svg" height="25em" width="auto" alt="RedTownServer logo">
<div class="sub header">
MinecraftServer
</div>
</div>
</div>
<div class="ui simple dropdown item right">
Menu<i class="ellipsis vertical"></i>
<div class="menu">
<a href="#" class="item active">Home</a>
<a href="/article/?name=about" class="item">About</a>
<a href="#" class="item">Staff</a>
<div class="ui simple dropdown item">
Social<i class="dropdown icon"></i>
<div class="menu">
<a href="https://twitter.com/mcredtownserver" class="item">Twitter</a>
<a href="https://discord.gg/BCZkCW3QZZ" class="item">Discord</a>
<a href="https://minecraft.jp/servers/56ffb2cf4ddda1a7260041cb" class="item">JMS</a>
</div>
</div>
<a href="./join/" class="item">Join</a>
</div>
</div>
</div>
</div>
</div>
<section class="first">
<div class="ui vertical center aligned segment">
<div class="ui text container first-content">
<div class="ui header">
<div style="width: 80%;margin-left: auto;margin-right: auto;">
<p style="text-align: left;color: white;">始めよう。</p>
<img src="logo.svg" alt="RedTownServerLogo" style="width: 100%;">
</div>
</div>
<h3 style="color: white">Minecraft Java版で楽しむ、イベントサーバー。</h3>
<div class="ui huge inverted red button">Join Now<i class="right arrow icon"></i></div>
</div>
</div>
</section>
<section class="second">
<div class="ui center aligned column grid stackable">
<div class="four wide column second-item" style="padding: 3em 2em 3.5em 2em;">
<div class="ui center aligned second-item-inner">
<div class="ui ">
<div class="second-item-content content" style="padding: 0.8em 1.2em">
<div class="ui header">
<i class="flask icon"></i>
定期イベント開催中!
</div>
<div class="description">
<h5>「鬼ごっこ」「逃走中」「アスレ」「人狼PvP」をはじめとする、様々なイベントを実施!大勢の人と遊ぶマイクラはやっぱり楽しい!よね!</h5>
</div>
</div>
</div>
</div>
</div>
<div class="four wide column second-item" style="padding: 3em 2em 3.5em 2em;">
<div class="ui center aligned second-item-inner">
<div class="ui ">
<div class="second-item-content content" style="padding: 0.8em 1.2em">
<div class="ui header">
<i class="bicycle icon"></i>
大型参加型イベント
</div>
<div class="description">
<h5>食べようと思っていた大好きな刺身が腐っていた時の衝撃のような、自称日本最大の大型イベントを年二回開催!</h5>
</div>
</div>
</div>
</div>
</div>
<div class="four wide column second-item" style="padding: 3em 2em 3.5em 2em;">
<div class="ui center aligned second-item-inner">
<div class="ui ">
<div class="second-item-content content" style="padding: 0.8em 1.2em">
<div class="ui header">
<i class="check icon"></i>
意見を取り入れ変えていく
</div>
<div class="description">
<h5>「イベント提案募集」「制作物提供」「運営募集」を通して、幅広く意見を取り入れ、日々制作に励んでいます。</h5>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="ui section divider"></div>
<section class="three">
<div class="ui text container">
<div class="ui center aligned basic segment grid stackable">
<div class="sixteen wide column content">
<div class="ui header">
<h2 style="color: red">この規模、RTSしか勝たん。</h2>
</div>
<div class="text">
毎年8月前半に「赤夏Festival」(旧:RTS夏祭り)という大型企画を開催しています。文化祭のような「ブースイベント(一日目)」とミニゲームを同時開催する「ミニゲームイベント(二日目)」の二部制です!
</div>
</div>
</div>
<div class="ui hidden divider" style="padding-top: 2em;"></div>
<div class="ui container">
<div class="ui items">
<div class="item">
<div class="image">
<img srcset="image/four-image-1.png" src="image/four-image-1.webp">
</div>
<div class="content">
<h3 class="header">プレイヤー同士の競い合い!</h3>
<div class="description">
<p>過去には参加者30人規模で開催しています!いろんな人と競い合いながら、協力し合いながら。</p>
</div>
</div>
</div>
<div class="item">
<div class="image">
<img srcset="image/four-image-2.png" src="image/four-image-2.webp">
</div>
<div class="content">
<h3 class="header">全く新しいイベントの形!</h3>
<div class="description">
<p>様々なブースやステージを自由に回る、全く新しい形のイベントを実現。ミニゲームイベントでは、ワクワク感がたまりません。</p>
</div>
</div>
</div>
<div class="item">
<div class="image">
<img srcset="image/four-image-3.png" src="image/four-image-3.webp">
</div>
<div class="content">
<h3 class="header">赤夏Festival2023特設サイト</h3>
<div class="description">
<p>赤夏Festival2023の詳細はこちらから!</p>
<a href="https://akanatsufes2023.studio.site/"><button class="ui inverted positive button">特設サイト<i class="right arrow icon"></i></button></a>
</div>
</div>
</div>
<div class="item">
<div class="image">
<img srcset="image/four-image-4.png" src="image/four-image-4.webp">
</div>
<div class="content">
<h3 class="header">ぴーんぽーんぱーんぽーん。</h3>
<div class="description">
<p>運営を絶賛募集中!ご応募、お待ちしております!</p>
<a href="https://mineidea.net/projects/7079870536"><button class="ui inverted positive button">運営になる<i class="right arrow icon"></i></button></a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="ui section divider"></div>
<section class="four">
<div class="ui text container segment">
<div class="ui header center aligned" style="color: #fe4949">
<h2>イベント開催予定</h2>
</div>
<div class="ui relaxed divided list" id="event-list">
</div>
<div style="text-align: center;">
<p>その他、臨時でイベントを開催!</p>
<p>Discordに参加してお知らせを確認しよう!</p>
<a href="https://discord.gg/BCZkCW3QZZ"><button class="ui inverted primary button"><i class="discord icon"></i>Discord</button></a>
</div>
</div>
</section>
<div class="ui section divider"></div>
<section class="five">
<div class="news-outer ui container">
<div class="ui header">
<h2 style="text-align: center;">News</h2>
</div>
<div class="ui three column grid stackable">
<div class="column">
<div class="ui segment news">
<a href="article/" id="news-f-ref">
<div class="blurring dimmable image">
<div class="ui dimmer">
<div class="content">
<div class="center">
<div id="news-f-title" class="ui header" style="color: aliceblue">Not Found</div>
<div id="news-f-description" class="description">
Not Found description
</div>
</div>
</div>
</div>
<div class="ui image">
<img id="news-f-img" src="../image/four-image-1.png">
</div>
</div>
<div id="news-f-title2" class="ui header">Not Found</div>
</a>
</div>
</div>
<div class="column">
<div class="ui segment news">
<a href="article/" id="news-s-ref">
<div class="blurring dimmable image">
<div class="ui dimmer">
<div class="content">
<div class="center">
<div id="news-s-title" class="ui header" style="color: aliceblue">Not Found</div>
<div id="news-s-description" class="description">
Not Found description
</div>
</div>
</div>
</div>
<div class="ui image">
<img id="news-s-img" src="../image/four-image-1.png">
</div>
</div>
<div id="news-s-title2" class="ui header">Not Found</div>
</a>
</div>
</div>
<div class="column">
<div class="ui segment news">
<a href="article/" id="news-t-ref">
<div class="blurring dimmable image">
<div class="ui dimmer">
<div class="content">
<div class="center">
<div id="news-t-title" class="ui header" style="color: aliceblue">Not Found</div>
<div id="news-t-description" class="description">
Not Found description
</div>
</div>
</div>
</div>
<div class="ui image">
<img id="news-t-img" src="../image/four-image-1.png">
</div>
</div>
<div id="news-t-title2" class="ui header">Not Found</div>
</a>
</div>
</div>
</div>
</div>
</section>
<div class="footter" style="background: #1B1C1D">
<div class="ui container">
<div class="ui center aligned basic segment">
<p style="color: white">(c)RedTownServer</p>
<p style="color: white">「Minecraft」は Mojang Synergies AB の商標であり、またこのサイトとの関連はありません。</p>
</div>
</div>
</div>
<script>
$(document).ready(function () {
$('.news .image').dimmer({
on: 'hover'
});
var target = $('#event-list');
$.ajax({
url: "events.json",
dataType: 'json',
success: function (dataValue) {
console.log(dataValue)
var now = new Date();
const nowTime = now.getFullYear() * 100000000 + (now.getMonth() + 1) * 1000000 + now.getDate() * 10000 + now.getHours() * 100 + now.getMinutes();
for (name in dataValue) {
var title = dataValue[name]["title"];
var start = new Date(dataValue[name]["start"]["Year"], dataValue[name]["start"]["Month"], dataValue[name]["start"]["Day"], dataValue[name]["start"]["Hour"], dataValue[name]["start"]["Minute"]);
var end = new Date(dataValue[name]["end"]["Year"], dataValue[name]["end"]["Month"], dataValue[name]["end"]["Day"], dataValue[name]["end"]["Hour"], dataValue[name]["end"]["Minute"]);
var description = dataValue[name]["description"];
var url = dataValue[name]["url"];
const startTime = start.getFullYear() * 100000000 + start.getMonth() * 1000000 + start.getDate() * 10000 + start.getHours() * 100 + start.getMinutes();
if (startTime < nowTime) {
const endTime = end.getFullYear() * 100000000 + end.getMonth() * 1000000 + end.getDate() * 10000 + end.getHours() * 100 + end.getMinutes();
if (endTime < nowTime) {
// 終了
var item = document.createElement("div");
item.style.padding = "0.5em"
item.classList.add("item");
var icon = document.createElement("i");
icon.classList.add("large");
icon.classList.add("calendar");
icon.classList.add("times");
icon.classList.add("outline");
icon.classList.add("middle");
icon.classList.add("aligned");
icon.classList.add("icon");
icon.style.color = "#aaaaaa";
item.appendChild(icon);
var content = document.createElement("div");
content.classList.add("content");
var header = document.createElement("p");
header.classList.add("header");
header.innerText = title;
header.style.color = "gray";
header.setAttribute("href", url);
content.appendChild(header);
var extra = document.createElement("div");
extra.classList.add("extra");
extra.innerText = start.getFullYear() + "/" + ('00' + start.getMonth()).slice(-2) + "/" + ('00' + start.getDate()).slice(-2) + " " + ('00' + start.getHours()).slice(-2) + ":" + ('00' + start.getMinutes()).slice(-2) + "~";
extra.style.color = "gray";
content.appendChild(extra);
var desc = document.createElement("div");
desc.classList.add("description");
desc.innerText = description;
desc.style.color = "gray";
content.appendChild(desc);
item.appendChild(content);
target.append(item);
console.log("aaaa");
} else {
// 開催中
var item = document.createElement("div");
item.classList.add("item");
item.style.border = "green solid 1px";
item.style.padding = "0.5em"
var icon = document.createElement("i");
icon.classList.add("large");
icon.classList.add("calendar");
icon.classList.add("check");
icon.classList.add("outline");
icon.classList.add("middle");
icon.classList.add("aligned");
icon.classList.add("icon");
icon.style.color = "#49fe60";
item.appendChild(icon);
var content = document.createElement("div");
content.classList.add("content");
var header = document.createElement("a");
header.classList.add("header");
header.innerText = title + " 【開催中】";
header.setAttribute("href", url);
content.appendChild(header);
var extra = document.createElement("div");
extra.classList.add("extra");
extra.innerText = start.getFullYear() + "/" + ('00' + start.getMonth()).slice(-2) + "/" + ('00' + start.getDate()).slice(-2) + " " + ('00' + start.getHours()).slice(-2) + ":" + ('00' + start.getMinutes()).slice(-2) + "~";
extra.style.color = "orange";
content.appendChild(extra);
var desc = document.createElement("div");
desc.classList.add("description");
desc.innerText = description;
content.appendChild(desc);
item.appendChild(content);
target.append(item);
console.log("bbbb");
}
} else {
// これから
var item = document.createElement("div");
item.style.padding = "0.5em"
item.classList.add("item");
var icon = document.createElement("i");
icon.classList.add("large");
icon.classList.add("calendar");
icon.classList.add("alternate");
icon.classList.add("outline");
icon.classList.add("middle");
icon.classList.add("aligned");
icon.classList.add("icon");
icon.style.color = "#000000";
item.appendChild(icon);
var content = document.createElement("div");
content.classList.add("content");
var header = document.createElement("a");
header.classList.add("header");
header.innerText = title;
header.setAttribute("href", url);
content.appendChild(header);
var extra = document.createElement("div");
extra.classList.add("extra");
extra.innerText = start.getFullYear() + "/" + ('00' + start.getMonth()).slice(-2) + "/" + ('00' + start.getDate()).slice(-2) + " " + ('00' + start.getHours()).slice(-2) + ":" + ('00' + start.getMinutes()).slice(-2) + "~";
content.appendChild(extra);
var desc = document.createElement("div");
desc.classList.add("description");
desc.innerText = description;
content.appendChild(desc);
item.appendChild(content);
target.append(item);
console.log("cccc");
}
}
},
error: function (dataValue) {
target.append("Failed to load");
}
});
$.ajax({
url: "/article/post.json",
dataType: 'json',
success: function (dataValue) {
if (dataValue.length >= 1) {
$.ajax({
url: "/article/posts/" + dataValue[0] + ".json",
dataType: 'json',
success: function (articleData) {
$('#news-f-title').text(articleData["title"]);
$('#news-f-description').text(articleData["desc"]);
$('#news-f-img').attr("src", articleData["thumbnail"]);
$('#news-f-ref').attr("href", "article/?name=" + dataValue[0]);
$('#news-f-title2').text(articleData["title"]);
},
error: function (articleData) {
}
});
if (dataValue.length >= 2) {
$.ajax({
url: "/article/posts/" + dataValue[1] + ".json",
dataType: 'json',
success: function (articleData) {
$('#news-s-title').text(articleData["title"]);
$('#news-s-description').text(articleData["desc"]);
$('#news-s-img').attr("src", articleData["thumbnail"]);
$('#news-s-ref').attr("href", "article/?name=" + dataValue[1]);
$('#news-s-title2').text(articleData["title"]);
},
error: function (articleData) {
}
});
if (dataValue.length >= 3) {
$.ajax({
url: "/article/posts/" + dataValue[2] + ".json",
dataType: 'json',
success: function (articleData) {
$('#news-t-title').text(articleData["title"]);
$('#news-t-description').text(articleData["desc"]);
$('#news-t-img').attr("src", articleData["thumbnail"]);
$('#news-t-ref').attr("href", "article/?name=" + dataValue[2]);
$('#news-t-title2').text(articleData["title"]);
},
error: function (articleData) {
}
});
}
}
}
},
error: function (dataValue) {
}
});
})
</script>
</body>
</html>