mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-25 01:41:45 +00:00
refactor(index.html): removed not needed type
If no Type attribute is defined for Script tags it uses "text/javascript" as default so it does not need to be set.
This commit is contained in:
parent
4414580408
commit
e6164a95d6
1 changed files with 58 additions and 35 deletions
85
index.html
85
index.html
|
@ -1,27 +1,30 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="popup.css" />
|
<link rel="stylesheet" type="text/css" href="popup.css" />
|
||||||
|
|
||||||
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
|
||||||
<script type="text/javascript" src="js/technical/break_eternity.js"></script>
|
<script src="js/technical/break_eternity.js"></script>
|
||||||
<script type="text/javascript" src="js/technical/layerSupport.js"></script>
|
<script src="js/technical/layerSupport.js"></script>
|
||||||
<script type="text/javascript" src="js/tree.js"></script>
|
<script src="js/tree.js"></script>
|
||||||
<script type="text/javascript" src="js/layers.js"></script>
|
<script src="js/layers.js"></script>
|
||||||
<script type="text/javascript" src="js/mod.js"></script>
|
<script src="js/mod.js"></script>
|
||||||
<script type="text/javascript" src="js/technical/temp.js"></script>
|
<script src="js/technical/temp.js"></script>
|
||||||
<script type="text/javascript" src="js/game.js"></script>
|
<script src="js/game.js"></script>
|
||||||
<script type="text/javascript" src="js/utils.js"></script>
|
<script src="js/utils.js"></script>
|
||||||
<script type="text/javascript" src="js/technical/systemComponents.js"></script>
|
<script src="js/technical/systemComponents.js"></script>
|
||||||
<script type="text/javascript" src="js/components.js"></script>
|
<script src="js/components.js"></script>
|
||||||
<script type="text/javascript" src="js/technical/canvas.js"></script>
|
<script src="js/technical/canvas.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onload="load()">
|
<body onload="load()">
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<canvas id="treeCanvas" class="canvas" v-if ="!(gameEnded && !player.keepGoing)"></canvas>
|
<canvas id="treeCanvas" class="canvas" v-if="!(gameEnded && !player.keepGoing)"></canvas>
|
||||||
|
|
||||||
<div v-if="false" id="loadingSection" class="fullWidth">
|
<div v-if="false" id="loadingSection" class="fullWidth">
|
||||||
<h1>Loading... (If this takes too long it means there was a serious error!)←</h1>
|
<h1>Loading... (If this takes too long it means there was a serious error!)←</h1>
|
||||||
|
@ -34,34 +37,51 @@
|
||||||
<h3>Please check the Discord to see if there are new content updates!</h3><br><br>
|
<h3>Please check the Discord to see if there are new content updates!</h3><br><br>
|
||||||
<div v-if="!player.timePlayedReset">It took you {{formatTime(player.timePlayed)}} to beat the game.</div>
|
<div v-if="!player.timePlayedReset">It took you {{formatTime(player.timePlayed)}} to beat the game.</div>
|
||||||
<br>
|
<br>
|
||||||
<button class="longUpg can" onclick="hardReset(true)">Play Again</button> <button class="longUpg can" onclick="keepGoing()">Keep Going</button>
|
<button class="longUpg can" onclick="hardReset(true)">Play Again</button> <button
|
||||||
|
class="longUpg can" onclick="keepGoing()">Keep Going</button>
|
||||||
<br><br><br>
|
<br><br><br>
|
||||||
<span v-if="modInfo.discordLink"><a class="link" v-bind:href="modInfo.discordLink" target="_blank">{{modInfo.discordName}}</a><br></span>
|
<span v-if="modInfo.discordLink"><a class="link" v-bind:href="modInfo.discordLink"
|
||||||
<a class="link" href="https://discord.gg/F3xveHV" target="_blank" v-bind:style="modInfo.discordLink ? {'font-size': '16px'} : {}">The Modding Tree Discord</a><br>
|
target="_blank">{{modInfo.discordName}}</a><br></span>
|
||||||
<a class="link" href="http://discord.gg/wwQfgPa" target="_blank" v-bind:style="{'font-size': '16px'}">Main Prestige Tree server</a><br>
|
<a class="link" href="https://discord.gg/F3xveHV" target="_blank"
|
||||||
|
v-bind:style="modInfo.discordLink ? {'font-size': '16px'} : {}">The Modding Tree Discord</a><br>
|
||||||
|
<a class="link" href="http://discord.gg/wwQfgPa" target="_blank" v-bind:style="{'font-size': '16px'}">Main
|
||||||
|
Prestige Tree server</a><br>
|
||||||
<br><br>
|
<br><br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="treeOverlay" v-if="!(gameEnded && !player.keepGoing)" class="treeOverlay" onscroll="resizeCanvas()" v-bind:class="{ fullWidth: (player.tab == 'none' || player.navTab == 'none'), col: (player.tab !== 'none' && player.navTab !== 'none'), left: (player.tab !== 'none' && player.navTab !== 'none')}">
|
<div id="treeOverlay" v-if="!(gameEnded && !player.keepGoing)" class="treeOverlay" onscroll="resizeCanvas()"
|
||||||
<div id="version" onclick="showTab('changelog-tab')" class="overlayThing" style="margin-right: 13px">{{VERSION.withoutName}}</div>
|
v-bind:class="{ fullWidth: (player.tab == 'none' || player.navTab == 'none'), col: (player.tab !== 'none' && player.navTab !== 'none'), left: (player.tab !== 'none' && player.navTab !== 'none')}">
|
||||||
<button v-if= "player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside')" class="other-back overlayThing" onclick="goBack()">←</button>
|
<div id="version" onclick="showTab('changelog-tab')" class="overlayThing" style="margin-right: 13px">
|
||||||
<img id="optionWheel" class="overlayThing" v-if="player.tab!='options-tab'" src="options_wheel.png" onclick="showTab('options-tab')"></img>
|
{{VERSION.withoutName}}</div>
|
||||||
|
<button
|
||||||
|
v-if="player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside')"
|
||||||
|
class="other-back overlayThing" onclick="goBack()">←</button>
|
||||||
|
<img id="optionWheel" class="overlayThing" v-if="player.tab!='options-tab'" src="options_wheel.png"
|
||||||
|
onclick="showTab('options-tab')"></img>
|
||||||
<div id="info" v-if="player.tab!='info-tab'" class="overlayThing" onclick="showTab('info-tab')"><br>i</div>
|
<div id="info" v-if="player.tab!='info-tab'" class="overlayThing" onclick="showTab('info-tab')"><br>i</div>
|
||||||
<div id="discord" class="overlayThing">
|
<div id="discord" class="overlayThing">
|
||||||
<img onclick="window.open((modInfo.discordLink ? modInfo.discordLink : 'https://discord.gg/F3xveHV'),'mywindow')" src="discord.png" target="_blank"></img>
|
<img onclick="window.open((modInfo.discordLink ? modInfo.discordLink : 'https://discord.gg/F3xveHV'),'mywindow')"
|
||||||
|
src="discord.png" target="_blank"></img>
|
||||||
<ul id="discord-links">
|
<ul id="discord-links">
|
||||||
<li v-if="modInfo.discordLink"><a class="link" v-bind:href="modInfo.discordLink" target="_blank">{{modInfo.discordName}}</a><br></li>
|
<li v-if="modInfo.discordLink"><a class="link" v-bind:href="modInfo.discordLink"
|
||||||
<li><a class="link" href="https://discord.gg/F3xveHV" target="_blank" v-bind:style="modInfo.discordLink ? {'font-size': '16px'} : {}">The Modding Tree Discord</a><br></li>
|
target="_blank">{{modInfo.discordName}}</a><br></li>
|
||||||
<li><a class="link" href="http://discord.gg/wwQfgPa" target="_blank" v-bind:style="{'font-size': '16px'}">Main Prestige Tree server</a></li>
|
<li><a class="link" href="https://discord.gg/F3xveHV" target="_blank"
|
||||||
|
v-bind:style="modInfo.discordLink ? {'font-size': '16px'} : {}">The Modding Tree
|
||||||
|
Discord</a><br></li>
|
||||||
|
<li><a class="link" href="http://discord.gg/wwQfgPa" target="_blank"
|
||||||
|
v-bind:style="{'font-size': '16px'}">Main Prestige Tree server</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<overlay-head v-if="!(gameEnded && !player.keepGoing)"></overlay-head>
|
<overlay-head v-if="!(gameEnded && !player.keepGoing)"></overlay-head>
|
||||||
<div class="sideLayers" >
|
<div class="sideLayers">
|
||||||
<div v-for="(node, index) in OTHER_LAYERS['side']"><tree-node :layer='node' :abb='tmp[node].symbol' :size="'small'" :key="'side' + index"></tree-node></div>
|
<div v-for="(node, index) in OTHER_LAYERS['side']">
|
||||||
|
<tree-node :layer='node' :abb='tmp[node].symbol' :size="'small'" :key="'side' + index"></tree-node>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="!(gameEnded && !player.keepGoing)" id="treeTab" style="z-index: 0" onscroll="resizeCanvas()" v-bind:class="{ fullWidth: (player.tab == 'none' || player.navTab == 'none'), col: (player.tab !== 'none' && player.navTab !== 'none'), left: (player.tab !== 'none' && player.navTab !== 'none')}">
|
<div v-if="!(gameEnded && !player.keepGoing)" id="treeTab" style="z-index: 0" onscroll="resizeCanvas()"
|
||||||
|
v-bind:class="{ fullWidth: (player.tab == 'none' || player.navTab == 'none'), col: (player.tab !== 'none' && player.navTab !== 'none'), left: (player.tab !== 'none' && player.navTab !== 'none')}">
|
||||||
<br><br><br><br>
|
<br><br><br><br>
|
||||||
<overlay-head id="fakeHead" style="visibility: hidden;">
|
<overlay-head id="fakeHead" style="visibility: hidden;">
|
||||||
</overlay-head>
|
</overlay-head>
|
||||||
|
@ -73,16 +93,19 @@
|
||||||
<!-- Popups -->
|
<!-- Popups -->
|
||||||
<div class="popup-container">
|
<div class="popup-container">
|
||||||
<transition-group name="fade">
|
<transition-group name="fade">
|
||||||
<div v-for="popup,index in activePopups" class="popup" v-bind:class="popup.type" v-bind:key="'p' + popup.id" v-bind:style="popup.color ? {'background-color': popup.color} : {}">
|
<div v-for="popup,index in activePopups" class="popup" v-bind:class="popup.type"
|
||||||
|
v-bind:key="'p' + popup.id" v-bind:style="popup.color ? {'background-color': popup.color} : {}">
|
||||||
<h3>{{popup.title}}</h3><br>
|
<h3>{{popup.title}}</h3><br>
|
||||||
<h2 v-html="popup.message"></h2>
|
<h2 v-html="popup.message"></h2>
|
||||||
</div>
|
</div>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="player.navTab !== 'none' && player.tab !== 'none' && !(gameEnded && !player.keepGoing)" onscroll="resizeCanvas()" v-bind:class="{ fullWidth: player.navTab == 'none', col: player.navTab != 'none', right: player.navTab != 'none', fast: true, tab: true}">
|
<div v-if="player.navTab !== 'none' && player.tab !== 'none' && !(gameEnded && !player.keepGoing)"
|
||||||
<div v-for="layer in LAYERS" >
|
onscroll="resizeCanvas()"
|
||||||
<div v-if="player.tab==layer" >
|
v-bind:class="{ fullWidth: player.navTab == 'none', col: player.navTab != 'none', right: player.navTab != 'none', fast: true, tab: true}">
|
||||||
|
<div v-for="layer in LAYERS">
|
||||||
|
<div v-if="player.tab==layer">
|
||||||
<layer-tab :layer="layer" :back="'none'" :spacing="'50px'" :key="'left'"></layer-tab>
|
<layer-tab :layer="layer" :back="'none'" :spacing="'50px'" :key="'left'"></layer-tab>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue