mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
Dev (#28)
This commit is contained in:
parent
664e5dd262
commit
1f97a940ac
@ -41,7 +41,7 @@
|
||||
<img src="/resources/images/covers/minecraft.png" class="cover-image" />
|
||||
<div class="installations">
|
||||
<button class="play-button" onclick="game.play('/game/web/mobile/eaglerpocketmobile-1.8.8/')">Play</button>
|
||||
<button class="play-button" href="/game/offline/mobile/eaglerpocketmobile-1.8.8/index.html" download="EaglerPocketMobile_Offline.html">Download Offline</button>
|
||||
<a class="play-button" href="/game/offline/mobile/eaglerpocketmobile-1.8.8/index.html" download="EaglerPocketMobile_Offline.html">Download Offline</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
10
public/resources/styles/mobile.css
Normal file
10
public/resources/styles/mobile.css
Normal file
@ -0,0 +1,10 @@
|
||||
.launcher {
|
||||
width: 95vw;
|
||||
height: 95vh;
|
||||
margin: 10px auto 0 auto;
|
||||
}
|
||||
|
||||
.play-button {
|
||||
text-decoration: none;
|
||||
padding: 10px 10px;
|
||||
}
|
@ -59,7 +59,7 @@
|
||||
<li>Added hacked clients</li>
|
||||
<li>Added Eaglercraft 1.2.5</li>
|
||||
<li>Added more mods and resource packs</li>
|
||||
<li>Fix mobile site not working</li>
|
||||
<li>Fix and optimize mobile site</li>
|
||||
<br />
|
||||
<strong>MineXLauncher 1.1</strong>
|
||||
<li>Temporary workaround for keyboard not working in the game</li>
|
||||
|
@ -1,12 +1,18 @@
|
||||
const theme = {
|
||||
load() {
|
||||
if (window.location.pathname === '/mobile/') {
|
||||
const link = document.createElement('link');
|
||||
link.rel = 'stylesheet';
|
||||
link.href = '/resources/styles/mobile.css';
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
const setTheme = cookie.get('minexlauncher.theme');
|
||||
if (setTheme === null) {
|
||||
theme.set('default');
|
||||
} else if (setTheme !== 'default') {
|
||||
const link = document.createElement('link');
|
||||
link.rel = 'stylesheet';
|
||||
link.href = '/resources/styles/' + setTheme + '.css';
|
||||
link.href = `/resources/styles/${setTheme}.css`;
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user