-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
257 lines (232 loc) · 11.4 KB
/
blog.html
File metadata and controls
257 lines (232 loc) · 11.4 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blog | LegacyMinecraftPE</title>
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="lmc.css">
<link rel="stylesheet" href="style.css">
<style>
.search-highlight {
background-color: yellow;
font-weight: bold;
color: black;
}
.search-navigation {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #fff;
padding: 10px;
border: 1px solid #ccc;
display: none;
}
.search-navigation a {
margin: 0 5px;
cursor: pointer;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">LegacyMinecraftPE</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li class="active"><a href="blog.html">Blog</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Tools <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="tools/minecraftpet.html">MinecraftPET</a></li>
<li><a href="tools/cellular-data-support-clients.html">Clients with cellular data
support</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Helpful <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="0.8ids.html">MCPE 0.8 item id's</a></li>
</ul>
</li>
<li><a href="https://legacyminecraftpe.github.io/MCPEAlphaVersions">MCPE Alpha versions</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://discord.gg/4fv4RrTav4" target="_blank" class="social-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
viewBox="0 0 16 16">
<path
d="M13.545 2.907a13.227 13.227 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.19 12.19 0 0 0-3.658 0 8.258 8.258 0 0 0-.412-.833.051.051 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.041.041 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032c.001.014.01.028.021.037a13.276 13.276 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019c.308-.42.582-.863.818-1.329a.05.05 0 0 0-.01-.059.051.051 0 0 0-.018-.011 8.875 8.875 0 0 1-1.248-.595.05.05 0 0 1-.02-.066.051.051 0 0 1 .015-.019c.084-.063.168-.129.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.052.052 0 0 1 .053.007c.08.066.164.132.248.195a.051.051 0 0 1-.004.085 8.254 8.254 0 0 1-1.249.594.05.05 0 0 0-.03.03.052.052 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.235 13.235 0 0 0 4.001-2.02.049.049 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.034.034 0 0 0-.02-.019Zm-8.198 7.307c-.789 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612m5.316 0c-.788 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612" />
</svg>
</a>
</li>
<li>
<a href="https://github.com/LegacyMinecraftPE" target="_blank" class="social-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
viewBox="0 0 16 16">
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8" />
</svg>
</a>
</li>
<form id="searchForm" class="form-inline navbar-form navbar-left">
<div class="form-group">
<input type="text" class="form-control" id="searchInput" placeholder="Inpage search">
</div>
<button type="submit" class="btn btn-default">Search</button>
</form>
</ul>
</div>
</div>
</nav>
<div class="jumbotron" style="background: -jumbotron-bg no-repeat center center; background-size: cover; position: relative; color: white;">
<div style="background: rgba(0, 0, 0, 0.5); position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;"></div>
<div class="container text-center" style="position: relative; z-index: 2; color: white;">
<h1>Blog</h1>
</div>
</div>
<div class="section-padding">
<div class="container">
<div class="search-navigation">
<a id="prevResult" class="disabled">↑ Previous</a>
<a id="nextResult" class="disabled">Next ↓</a>
</div>
<div class="blog-list">
<a href="blog/how-does-authorization-and-other-things-work-in-realms-alpha.html" class="blog-post">
<img src="assets/images/mcpe_realms.png" alt="Realms Alpha" class="blog-post-image">
<div class="blog-post-content">
<div>
<h4 class="blog-post-title">How does authorization and other things work in Realms Alpha</h4>
<p class="blog-post-description">This post describes the interaction algorithm between the game client and the server-side components to implement the Realms Alpha functionality.</p>
</div>
<span class="blog-post-date">September 7, 2025</span>
</div>
</a>
</div>
</div>
</div>
<footer style="padding: 20px 0; border-top: 1px solid var(--border-color); background: var(--navbar-bg)">
<div class="container">
<div class="row">
<div class="col-md-6 text-left">
<h2">LegacyMinecraftPE <small style="color: grey;">2023-2025</small></h6>
<p style="margin-bottom: 0; font-size: 12px;">Saving the history of Minecraft PE Alpha</p>
<p style="font-size: 10px; color: grey;">This website is not affiliated with Mojang, Microsoft, or any other entity</p>
</div>
<div class="col-md-6 text-right">
<button id="theme-toggle" class="btn btn-default">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z" />
</svg>
</button>
</div>
</div>
</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$(document).ready(function () {
$('#searchForm').submit(function (event) {
event.preventDefault();
var searchText = $('#searchInput').val().trim().toLowerCase();
if (searchText === '') {
clearSearch();
return;
}
clearSearch();
var textNodes = getTextNodesIn(document.body);
var searchResults = [];
textNodes.forEach(function (node) {
var nodeText = node.textContent.toLowerCase();
if (nodeText.includes(searchText)) {
$(node.parentNode).addClass('search-highlight');
searchResults.push(node.parentNode);
}
});
if (searchResults.length > 0) {
$('.search-navigation').show();
scrollToElement(searchResults[0]);
currentResultIndex = 0;
$('#prevResult').click(function () {
navigateResults('prev');
});
$('#nextResult').click(function () {
navigateResults('next');
});
} else {
$('.search-navigation').hide();
}
});
function getTextNodesIn(node) {
var textNodes = [];
if (node.nodeType == Node.TEXT_NODE) {
textNodes.push(node);
} else {
var children = node.childNodes;
for (var i = 0, len = children.length; i < len; ++i) {
textNodes.push.apply(textNodes, getTextNodesIn(children[i]));
}
}
return textNodes;
}
function scrollToElement(element) {
$('html, body').animate({
scrollTop: $(element).offset().top - 100
}, 500);
}
var currentResultIndex = 0;
function navigateResults(direction) {
var results = $('.search-highlight');
if (direction === 'next') {
currentResultIndex++;
if (currentResultIndex >= results.length) {
currentResultIndex = 0;
}
} else if (direction === 'prev') {
currentResultIndex--;
if (currentResultIndex < 0) {
currentResultIndex = results.length - 1;
}
}
scrollToElement(results[currentResultIndex]);
}
function clearSearch() {
$('.search-highlight').removeClass('search-highlight');
$('.search-navigation').hide();
currentResultIndex = 0;
}
});
</script>
<script>
const themeToggle = document.getElementById('theme-toggle');
function setTheme(themeName) {
document.documentElement.setAttribute('data-theme', themeName);
localStorage.setItem('theme', themeName);
}
function toggleTheme() {
if (localStorage.getItem('theme') === 'dark') {
setTheme('light');
} else {
setTheme('dark');
}
}
if (localStorage.getItem('theme') === 'dark') {
setTheme('dark');
} else {
setTheme('light');
}
themeToggle.addEventListener('click', toggleTheme);
</script>
</body>
</html>