This repository was archived by the owner on Jan 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathlayout.html
More file actions
175 lines (163 loc) · 8.68 KB
/
layout.html
File metadata and controls
175 lines (163 loc) · 8.68 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
{% set server = config("server-ip") %}
{% set serverPORT = config("server-port") %}
{% set discord = config("discord")%}
{% set discordID = config("discord-id") %}
{% set discordLink = config("discord-link") %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ store.name }} | {{ __(page.title) }}</title>
<link rel="shortcut icon" href="{{ store.favicon }}">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36735942-3']);
_gaq.push(['_trackPageview']);
{% if store.googleAnalytics %}
_gaq.push(['b._setAccount', '{{ store.googleAnalytics }}']);
_gaq.push(['b._trackPageview']);
{% endif %}
(function () {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') +
'.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<!-- Generated via SASS -->
<link href="{{ asset('store.css') }}" rel="stylesheet">
<!-- FontAwesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Custom Theme CSS Output -->
<style>{{ store.css|raw }}</style>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
</head>
<body>
<div class="notification">
{% if page.message.display %}
<div class="alert alert-{{ page.message.type}} mb-0 mb-4 container" role="alert">
{{ page.message.text }}
</div>
{% endif %}
</div>
<div class="header-splash">
<div class="header-splash-overlay"></div>
</div>
{% include "header_1.html" %}
{% block content %}{% endblock %}
<footer class="mt-5 mb-4">
<div class="container d-flex justify-content-between align-items-center flex-column flex-md-row">
<div class="footer-left text-center text-md-start mb-3 mb-md-0">
<p class="mb-0">Copyright @ <span id="thisyear">2024</span> {{store.name}}. All Rights Reserved.</p>
<small class="mb-0">We are not affiliated with Mojang AB.</small>
</div>
<div class="row no-gutters align-items-center footer-right">
<div class="col-12 text-center text-md-right text-heading-font text-white">
{% if store.locales|length > 1 %}
<div class="btn-group dropup">
<button type="button" class="btn btn-primary d-block d-sm-inline-block dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-globe mr-2"></i> {{__("Language") }}
</button>
<div class="dropdown-menu">
{% for locale, name in store.locales %}
<a class="dropdown-item" href="?locale={{ locale }}">{{ name }}</a>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</footer>
<div class="modal fade remote-modal" tabindex="-1" role="dialog" aria-labelledby="popup-modal" aria-hidden="true" id="popup-modal"></div>
{% if page.category == "checkout" %}
<script src="https://js.stripe.com/v2/"></script>
{% endif %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
crossorigin="anonymous"></script>
<script src="/templates/209/js/skin.min.js"></script>
<script src="/templates/209/js/site.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
crossorigin="anonymous"></script>
<script>
jQuery(function () {
var countdowns = $(".countdown-to");
countdowns.each(function () {
setInterval(function (ele) {
timeLeft = parseInt(ele.attr("data-countdown"));
if (timeLeft == 0) {
ele.html("Time Expired!");
} else {
timeLeft--;
ele.attr("data-countdown", timeLeft);
var days = Math.floor(timeLeft / (60 * 60 * 24));
var hours = Math.floor((timeLeft % (60 * 60 * 24)) / (60 * 60));
var minutes = Math.floor((timeLeft % (60 * 60)) / (60));
var seconds = Math.floor((timeLeft % 60));
ele.html(days + "d " + hours + "h " + minutes + "m " + seconds + "s");
}
}, 1000, jQuery(this));
});
});
</script>
<script>
let thisyear = document.getElementById("thisyear").innerHTML = new Date().getFullYear();
try {
fetch(`https://api.minetools.eu/ping/{{server}}`).then(res => res.json()).then(data => setServerCount(data.players.online));
} catch { console.log("Unable to fetch server player count from API.") }
try {
fetch(`https://discord.com/api/v9/invites/{{discordID}}?with_counts=true`)
.then(res => res.json())
.then(data => setDiscordCount(data["approximate_member_count"]));
{#fetch(`https://discordapp.com/api/guilds/{{discordID}}/embed.json`).then(res => res.json()).then(data => setDiscordCount(data.presence_count));#}
} catch { console.log("Unable to fetch Discord player count from API.") }
function setServerCount(count) {
try {
document.getElementById("server-counter").innerHTML = count;
document.getElementById("server-counter-2").innerHTML = count;
} catch { console.log("Unable to set server player count.") }
}
function setDiscordCount(count) {
try {
document.getElementById("discord-counter").innerHTML = count;
document.getElementById("discord-counter-2").innerHTML = count;
} catch { console.log("Unable to set Discord player count.") }
}
function subtractPackage(id) {
let inputs = [...document.querySelectorAll(".package__quantity")].filter(i => i.name == `quantity[${id}]`);
inputs.forEach(input => input.setAttribute('value', input.value-1));
document.getElementById(`package--${id}`).submit();
}
</script>
<script>
document.getElementById('ip-copy').addEventListener('click', function() {
Swal.fire({
title: 'Hello!',
text: 'You have copied the server IP',
icon: 'success',
confirmButtonText: 'Cool'
});
navigator.clipboard.writeText(`{{server}}:{{serverPORT}}`);
});
</script>
</body>
</html>