mirror of
https://github.com/AltarikMC/Launcher
synced 2024-11-22 06:19:50 +01:00
113 lines
6.2 KiB
HTML
113 lines
6.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Altarik Launcher</title>
|
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval';" />
|
|
<link rel="stylesheet" href="../../node_modules/izitoast/dist/css/iziToast.min.css">
|
|
<link href="assets/css/fonts.css" rel="stylesheet" />
|
|
<link href="assets/css/index.css" rel="stylesheet" />
|
|
<link href="assets/css/menubar.css" rel="stylesheet" />
|
|
<!--<link rel="shortcut icon" type="image/png" href="assets/images/icon.png"/> -->
|
|
</head>
|
|
<body>
|
|
<div id="vue">
|
|
<div id="menubar">
|
|
<ul class="left">
|
|
<img src="../../icon.ico">
|
|
</ul>
|
|
<ul class="right">
|
|
<!-- Mettre ce code en ligne pour éviter que chrome ne met un espace automatiquement entre les éléments -->
|
|
<li id="minimize-btn"><i class="material-icons">minimize</i></li><!--<li id="max-unmax-btn"><i class="material-icons">crop_square</i></li>--><li id="close-btn"><i class="material-icons">close</i></li>
|
|
</ul>
|
|
</div>
|
|
<div id="fullscreen" :style="{ display: displayFullscreen }">
|
|
<div @click="closeFullscreen" id="close"><i class="material-icons">close</i></div>
|
|
<div id="settings" :style="{ display: displaySettings }">
|
|
<h2>Paramètres</h2>
|
|
<span href="" id="disconnect-btn" @click="disconnectBtn">Se déconnecter</span>
|
|
<h4>Allocation mémoire</h4>
|
|
<label for="minMem">mémoire minimale : <span id="outputMinMem">{{ minMemValue }}</span></label><br />
|
|
<input type="number" min="1024" :max="memMax" :step="memStep" v-model="minMemValue" class="slider" id="minMem"><br />
|
|
<label for="maxMem">mémoire maximale : <span id="outputMaxMem">{{ maxMemValue }}</span></label><br />
|
|
<input type="number" min="1024" :max="memMax" :step="memStep" v-model="maxMemValue" class="slider" id="maxMem"><br />
|
|
<h4>Au secours, mon jeu ne démarre pas</h4>
|
|
<button @click="invalidateData" :disabled="invalidateButtonDisabled">{{ invalidateButtonText }}</button><br />
|
|
<span @click="credits">Voir crédits</span>
|
|
</div>
|
|
<div id="credits" :style="{ display: displayCredits }">
|
|
<div class="content">
|
|
<p>BSD 3-Clause License</p>
|
|
|
|
<p>Copyright (c) 2021, Altarik<br />
|
|
All rights reserved.</p>
|
|
|
|
<p>Redistribution and use in source and binary forms, with or without
|
|
modification, are permitted provided that the following conditions are met:</p>
|
|
|
|
<ol>
|
|
<li>Redistributions of source code must retain the above copyright notice, this
|
|
list of conditions and the following disclaimer.</li>
|
|
<li>Redistributions in binary form must reproduce the above copyright notice,
|
|
this list of conditions and the following disclaimer in the documentation
|
|
and/or other materials provided with the distribution.</li>
|
|
<li>Neither the name of the copyright holder nor the names of its
|
|
contributors may be used to endorse or promote products derived from
|
|
this software without specific prior written permission.</li>
|
|
</ol>
|
|
|
|
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="content">
|
|
<div id="sidebar">
|
|
<h2>Chapitres</h2>
|
|
<div id="sidebar-content" @change="modsInformations">
|
|
<div v-if="modsInformationsLoaded === false">Une erreur est survenue lors de la récupération des informations, vérifiez votre connexion internet puis cliquez sur réessayez</div>
|
|
<div v-for="(item, index) in modsInformations" v-else-if="modsInformations.length !== 0" v-on:click="changeSelectedChapter(index)" :class="{ selected: isSelected(index) }">
|
|
<h3>{{ item.title }}</h3>
|
|
<p>{{ item.description}}</p>
|
|
</div>
|
|
<div v-else>Chargement en cours</div>
|
|
</div>
|
|
</div>
|
|
<div id="media">
|
|
<div @click="options" title="Paramètres">
|
|
<img src="assets/images/settings.png">
|
|
</div>
|
|
<div @click="discord" title="Rejoingnez notre Discord">
|
|
<img src="assets/images/discord.png">
|
|
</div>
|
|
<div @click="web"title="Visitez notre site web">
|
|
<img src="assets/images/web.png">
|
|
</div>
|
|
|
|
</div>
|
|
<div id="main">
|
|
<div id="account">
|
|
<div id="nick">{{ nick }}</div><!-- <img src=""> Head du joueur -->
|
|
</div>
|
|
<button @click="launchBtnClick" id="launch-btn" :disabled="launchBtnDisable">
|
|
<div id="launch-text" :class="[{hidden: launchBtnHidden}]">{{ launchBtnText }}</div>
|
|
<div id="loading-message" :class="[{hidden: loadingMessageHidden}]">{{ loadingMessageText }}</div>
|
|
<div id="fullprogressbar" :class="[{hidden: fullprogressbarHidden}]"><div id="progressbar" :style="{ width: progressbarWidth + '%' }"></div></div>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="../../node_modules/izitoast/dist/js/iziToast.js" type="text/javascript"></script>
|
|
<script src="assets/js/preload.js"></script>
|
|
<script src="assets/js/index.js"></script>
|
|
</body>
|
|
</html>
|