-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (79 loc) · 2.64 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
---
layout: default
published: true
---
<div class="row">
<div class="col-md-4">
<!-- A responsive sidebar - ish? -->
<div class="mcWidget">
<div class="mcWidget-title">
<h3>Minecraft Server Status</h3>
</div>
<div class="mcIcon">
<img src="" id="favicon">
</div>
<div id="serverAddress"><b>Address:</b> pwn9.org:25565</div>
<div id="mcStatus">Loading ...</div>
</div>
<div class="discord-widget"></div>
<p class="discord-join">
<a href="https://discordapp.com/invite/h9FfA7J" target="_blank">Join Our Discord Server!</a>
</p>
<!-- End Sidebar -->
</div>
<div class="col-md-8">
<!-- Place for an intro paragraph on the homepage -->
<div class="entry">
</div>
<!-- End Intro -->
<!-- Begin posts -->
<div class="posts">
{% for post in site.posts limit:5 %}
<article class="post">
<h3><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h3>
<div class="entry">
{{ post.excerpt | strip_html | truncatewords:75 }}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More...</a>
</article>
{% endfor %}
</div>
<!-- End posts -->
</div>
</div>
<script type="text/javascript">
(function() {
var url = "https://api.minetools.eu/ping/pwn9.org/25565";
$.getJSON(url, function(r) {
//data is the JSON string
if(r.error){
$('#rest').html('Server Offline');
return false;
}
var pl = '';
if(r.players.sample.length > 0 ){ pl = '<br>- '+r.players.sample[0].name; }
$('#mcStatus').html('<b>MOTD:</b> '+r.description.replace(/§(.+?)/gi, '')+'<br><b>Players Online:</b> '+r.players.online+pl);
$('#favicon').attr('src', r.favicon);
});
})();
</script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/restingcoder/[email protected]/discord-widget.min.js"></script>
<script type="text/javascript">
discordWidget.init({
serverId: '174608456551104513',
title: 'Discord @ http://discord.pwn9.com/',
join: false,
joinText: 'Join Server',
alphabetical: false,
theme: 'dark',
//hideChannels: ['💤 AFK', '💎 Members', '🌎 Public', '🌎 Public (🔊HQ)'],
hideChannels: ['💤 AFK', '🌎 Public (🔊HQ)'],
showAllUsers: true,
allUsersDefaultState: true,
showNick: true,
userName: '',
useCDN: true
});
discordWidget.render();
</script>
<!-- End Content Container -->