mirror of
https://github.com/LCE-Hub/lce-hub.github.io.git
synced 2026-07-15 21:32:25 +00:00
Deploying to gh-pages from @ LCE-Hub/lce-hub.github.io@8febdc0c7e 🚀
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 369 KiB After Width: | Height: | Size: 528 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 998 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 216 KiB After Width: | Height: | Size: 679 KiB |
@@ -1,8 +0,0 @@
|
||||
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=class{musicFiles=[`music/music1.ogg`,`music/music2.ogg`,`music/music3.ogg`,`music/music4.ogg`,`music/music5.ogg`];musicIndex=Math.floor(Math.random()*5);music;isMuted=!1;hasInteracted=!1;constructor(){this.music=new Audio(this.musicFiles[this.musicIndex]),this.music.volume=.3,this.music.preload=`auto`,this.music.addEventListener(`ended`,()=>this.nextTrack()),localStorage.getItem(`emerald-muted`)===`true`&&(this.isMuted=!0,this.music.pause())}nextTrack(){this.musicIndex=(this.musicIndex+1)%this.musicFiles.length,this.music.src=this.musicFiles[this.musicIndex],this.music.preload=`auto`,this.isMuted||this.music.play().catch(()=>{})}start(){this.hasInteracted||this.isMuted||(this.hasInteracted=!0,this.music.play().catch(()=>{}))}toggleMute(){this.isMuted=!this.isMuted,localStorage.setItem(`emerald-muted`,String(this.isMuted)),this.isMuted?this.music.pause():(this.hasInteracted||=!0,this.music.play().catch(()=>{})),this.updateUI()}updateUI(){let e=document.getElementById(`audio-toggle`);if(e){e.classList.toggle(`muted`,this.isMuted);let t=e.querySelector(`i`);t&&(t.className=this.isMuted?`fas fa-volume-mute`:`fas fa-volume-up`)}}playSFX(e){let t=new Audio(`sounds/${e}`);t.volume=.4,t.play().catch(()=>{})}};document.addEventListener(`DOMContentLoaded`,()=>{let t=new e;t.updateUI(),document.addEventListener(`click`,()=>t.start(),{once:!0}),document.getElementById(`audio-toggle`)?.addEventListener(`click`,()=>{t.playSFX(`click.wav`),t.toggleMute()});let n=document.querySelectorAll(`.tab-item`),r=document.querySelectorAll(`.tab-content`),i=0,a=e=>{e<0&&(e=n.length-1),e>=n.length&&(e=0),i!==e&&t.playSFX(`click.wav`),i=e,n.forEach((t,n)=>{t.classList.toggle(`active`,n===e)}),r.forEach((t,n)=>{t.classList.toggle(`active`,n===e)})};n.forEach((e,t)=>{e.addEventListener(`click`,()=>a(t))}),window.addEventListener(`keydown`,e=>{(e.key===`q`||e.key===`ArrowLeft`)&&a(i-1),(e.key===`e`||e.key===`ArrowRight`)&&a(i+1)}),document.getElementById(`prev-tab`)?.addEventListener(`click`,()=>a(i-1)),document.getElementById(`next-tab`)?.addEventListener(`click`,()=>a(i+1));let o=document.querySelector(`.carousel-img`),s=[`Community/image.png`,`Community/image2.png`,`Community/image3.png`,`Community/image4.png`,`Community/image5.png`,`Community/image6.png`],c=0,l=(e,n=!1)=>{n&&t.playSFX(`wood click.wav`),c=(c+e+s.length)%s.length,o&&(o.style.opacity=`0`,setTimeout(()=>{o.src=s[c],o.style.opacity=`1`},100))};document.querySelector(`.carousel-arrow.left`)?.addEventListener(`click`,()=>l(-1,!0)),document.querySelector(`.carousel-arrow.right`)?.addEventListener(`click`,()=>l(1,!0));let u=`Emerald-Legacy-Launcher/Emerald-Legacy-Launcher`,d=document.getElementById(`download-modal`),f=document.getElementById(`modal-options`),p=document.getElementById(`modal-title`),m=document.getElementById(`close-modal`),h=[],g=[],_=`Windows`,v=()=>{let e=window.navigator.userAgent.toLowerCase(),t=window.navigator.platform?.toLowerCase()||``,n=`Unknown`,r=`x64`;return e.includes(`win`)?n=`Windows`:e.includes(`mac`)?n=`macOS`:e.includes(`linux`)&&(n=`Linux`),(e.includes(`arm64`)||e.includes(`aarch64`)||t.includes(`arm64`)||t.includes(`aarch64`)||n===`macOS`&&window.navigator.maxTouchPoints>0)&&(r=`arm64`),{os:n,arch:r}},y=(e,t,n)=>{if(e===`Windows`)return n.find(e=>e.name.endsWith(`.exe`))||n.find(e=>e.name.endsWith(`.msi`));if(e===`macOS`){let e=t===`arm64`?`aarch64.dmg`:`x64.dmg`;return n.find(t=>t.name.endsWith(e))}if(e===`Linux`){let e=t===`arm64`?`aarch64`:`x86_64`;return n.find(t=>t.name.endsWith(`.flatpak`)&&t.name.includes(e))||n.find(e=>e.name.endsWith(`.flatpak`))}return null},b=e=>{if(!d||!f||!p)return;_=e;let t=document.getElementById(`nightly-toggle`)?.checked||!1,n=t?g:h,r=[],i=`Select Downloader`;e===`Windows`?(r=n.filter(e=>e.name.endsWith(`.exe`)||e.name.endsWith(`.msi`)),i=`Emerald Legacy for Windows ${t?`(Nightly)`:``}`):e===`macOS`?(r=n.filter(e=>e.name.endsWith(`.dmg`)),i=`Emerald Legacy for macOS ${t?`(Nightly)`:``}`):e===`Linux`&&(r=n.filter(e=>e.name.endsWith(`.flatpak`)||e.name.endsWith(`.deb`)||e.name.endsWith(`.rpm`)),i=`Emerald Legacy for Linux ${t?`(Nightly)`:``}`);let{arch:a}=v(),o=y(e,a,r);p.innerText=i,f.innerHTML=r.length>0?r.map(e=>{let t=e.name===o?.name;return`
|
||||
<div class="modal-btn-container">
|
||||
<a href="${e.browser_download_url}" class="main-btn" onclick="window.playAudioSFX('levelup.ogg')">
|
||||
<span>${e.name.split(`_`).pop()?.split(`-`).pop()||e.name}</span>
|
||||
</a>
|
||||
${t?`<span class="splash-text">Recommended!</span>`:``}
|
||||
</div>
|
||||
`}).join(``):`<div style="color: grey; font-size: 1.2rem; padding: 20px;">No builds found for this platform.</div>`,d.classList.add(`active`)};document.getElementById(`nightly-toggle`)?.addEventListener(`change`,()=>{t.playSFX(`click.wav`),b(_)}),window.playAudioSFX=e=>t.playSFX(e);let x=async()=>{try{let[e,t]=await Promise.all([fetch(`https://api.github.com/repos/${u}/releases/latest`),fetch(`https://api.github.com/repos/${u}/releases/tags/nightly`)]),[n,r]=await Promise.all([e.json(),t.json()]);h=n.assets||[],g=r.assets||[];let{os:i}=v(),a=document.getElementById(`main-download-btn`);if(a){a.addEventListener(`click`,e=>{e.preventDefault(),b(i===`Unknown`?`Windows`:i)});let e=a.querySelector(`span`);e&&(e.innerText=`Download for ${i===`Unknown`?`Your OS`:i}`)}let o=document.getElementById(`download-win`),s=document.getElementById(`download-linux`),c=document.getElementById(`download-macos`);o?.addEventListener(`click`,e=>{e.preventDefault(),b(`Windows`)}),s?.addEventListener(`click`,e=>{e.preventDefault(),b(`Linux`)}),c?.addEventListener(`click`,e=>{e.preventDefault(),b(`macOS`)})}catch(e){console.error(`Error fetching releases:`,e)}};m?.addEventListener(`click`,()=>{t.playSFX(`back.ogg`),d?.classList.remove(`active`)}),d?.addEventListener(`click`,e=>{e.target===d&&(t.playSFX(`back.ogg`),d.classList.remove(`active`))}),window.addEventListener(`keydown`,e=>{e.key===`Escape`&&(d?.classList.contains(`active`)&&t.playSFX(`back.ogg`),d?.classList.remove(`active`))});let S=document.getElementById(`image-modal`),C=document.getElementById(`expanded-image`),w=document.getElementById(`close-image-modal`),T=e=>{!S||!C||(t.playSFX(`levelup.ogg`),C.src=e,S.classList.add(`active`))};document.querySelectorAll(`.gallery-frame img, .carousel-img`).forEach(e=>{e.style.cursor=`pointer`,e.addEventListener(`click`,()=>{T(e.src)})}),w?.addEventListener(`click`,()=>{t.playSFX(`back.ogg`),S?.classList.remove(`active`)}),S?.addEventListener(`click`,e=>{e.target===S&&(t.playSFX(`back.ogg`),S.classList.remove(`active`))}),window.addEventListener(`keydown`,e=>{e.key===`Escape`&&S?.classList.contains(`active`)&&(t.playSFX(`back.ogg`),S.classList.remove(`active`))}),x(),setInterval(()=>l(1,!1),5e3)});
|
||||
20
assets/index-CjEpeUAh.js
Normal file
20
assets/index-CjEpeUAh.js
Normal file
File diff suppressed because one or more lines are too long
26
index.html
26
index.html
@@ -15,7 +15,7 @@
|
||||
href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&family=Silkscreen:wght@400;700&display=swap"
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
||||
<script type="module" crossorigin src="/assets/index-90k8wNOq.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-CjEpeUAh.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-B6xBYW09.css">
|
||||
</head>
|
||||
|
||||
@@ -95,33 +95,26 @@
|
||||
</div>
|
||||
|
||||
<div class="action-buttons">
|
||||
<a href="https://github.com/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher/releases/latest"
|
||||
<a href="https://github.com/LCE-Hub/LCE-Emerald-Launcher/releases/latest"
|
||||
class="main-btn get-launcher" id="main-download-btn">
|
||||
<div class="btn-content">
|
||||
<span>Get Launcher</span>
|
||||
</div>
|
||||
<img src="logo.png" class="btn-icon">
|
||||
</a>
|
||||
<a href="https://github.com/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher"
|
||||
class="main-btn github-repo" target="_blank">
|
||||
<a href="https://github.com/LCE-Hub/LCE-Emerald-Launcher" class="main-btn github-repo"
|
||||
target="_blank">
|
||||
<div class="btn-content">
|
||||
<span class="btn-title">GitHub Repo</span>
|
||||
</div>
|
||||
<img src="github-icon.png" class="btn-icon-github">
|
||||
</a>
|
||||
<a href="https://discord.gg/RHGRUwpmVc" class="main-btn join-discord" target="_blank">
|
||||
<a href="https://discord.gg/xeqvKPrwwS" class="main-btn join-discord" target="_blank">
|
||||
<div class="btn-content">
|
||||
<span class="btn-title">Join Discord</span>
|
||||
</div>
|
||||
<img src="discord-icon.jpg" class="btn-icon-discord">
|
||||
</a>
|
||||
<a href="https://fluxer.gg/s9ySzCPb" class="main-btn join-fluxer" target="_blank">
|
||||
<div class="btn-content">
|
||||
<span class="btn-title">Join Fluxer</span>
|
||||
</div>
|
||||
<img src="fluxer.svg" class="btn-icon">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="screenshot-carousel">
|
||||
@@ -186,9 +179,6 @@
|
||||
</div>
|
||||
|
||||
<div class="content-footer">
|
||||
<div class="roadmap-link">
|
||||
<a href="https://github.com/orgs/Emerald-Legacy-Launcher/projects/2">DEVELOPMENT ROADMAP →</a>
|
||||
</div>
|
||||
<div class="acknowledgments">
|
||||
<p>Developed by the Emerald Team. Original creators: 4J Studios & Mojang.</p>
|
||||
</div>
|
||||
@@ -218,8 +208,8 @@
|
||||
</div>
|
||||
<div class="gallery-item large">
|
||||
<div class="gallery-frame">
|
||||
<img src="Launcher/settings.png" alt="Launcher Settings">
|
||||
<div class="frame-caption">Settings</div>
|
||||
<img src="Launcher/settings.png" alt="LCE Workshop">
|
||||
<div class="frame-caption">Workshop</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -359,4 +349,4 @@
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user