加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 8.92 KB
一键复制 编辑 原始数据 按行查看 历史
zhaolinxu 提交于 2022-05-19 13:57 . gx
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title>任务树 - Tree Quest</title>
<link rel="stylesheet" type="text/css" href="css/system-style.css" />
<link rel="stylesheet" type="text/css" href="css/bars.css" />
<link rel="stylesheet" type="text/css" href="css/components.css" />
<link rel="stylesheet" type="text/css" href="css/general-style.css" />
<link rel="stylesheet" type="text/css" href="css/misc.css" />
<link rel="stylesheet" type="text/css" href="css/other-tabs.css" />
<link rel="stylesheet" type="text/css" href="css/popup.css" />
<link rel="stylesheet" type="text/css" href="css/tree-node.css" />
<!-- custom CSS - layers -->
<link rel="stylesheet" type="text/css" href="css/custom/neural_implants.css" />
<link rel="stylesheet" type="text/css" href="css/custom/suit_maintenance.css" />
<link rel="stylesheet" type="text/css" href="css/custom/security-room.css" />
<!-- custom CSS - general -->
<link rel="stylesheet" type="text/css" href="css/custom/highlight-current.css" />
<link rel="stylesheet" type="text/css" href="css/custom/instant-ghost.css" />
<link rel="stylesheet" type="text/css" href="css/custom/interstitial.css" />
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.12/vue.min.js"></script>
<script src="js/technical/break_eternity.js"></script>
<script src="js/technical/layerSupport.js"></script>
<script src="js/mod.js"></script>
<script src="js/technical/loader.js"></script>
<script src="js/technical/temp.js"></script>
<script src="js/technical/displays.js"></script>
<script src="js/game.js"></script>
<script src="js/utils.js"></script>
<script src="js/utils/easyAccess.js"></script>
<script src="js/technical/systemComponents.js"></script>
<script src="js/components.js"></script>
<script src="js/technical/canvas.js"></script>
<script src="js/technical/particleSystem.js"></script>
<script src="js/utils/NumberFormating.js"></script>
<script src="js/utils/options.js"></script>
<script src="js/utils/save.js"></script>
<script src="js/utils/themes.js"></script>
</head>
<body onload="load()" onmousemove="updateMouse(event)">
<script src="chs.js?202106041511"></script>
<script src="//g8hh.com/zh/core.js"></script>
<div id="app">
<canvas id="treeCanvas" class="canvas" v-if="!(tmp.gameEnded && !player.keepGoing) && !player.showInterstitial"></canvas>
<div v-if="false" id="loadingSection" class="fullWidth">
<h1>Loading... (If this takes too long it means there was a serious error!)←</h1>
</div>
<div class="vl" v-if="player.navTab !== 'none' && tmp.other.splitScreen && player.tab!='none' && !(tmp.gameEnded && !player.keepGoing) && !player.showInterstitial"></div>
<div v-if="(tmp.gameEnded && !player.keepGoing)" class="fullWidth">
<br>
<h2>{{modInfo.name}} {{VERSION.withoutName}}</h2><br><br>
<h3>You've reached the end of the "prologue".</h3><br>
<h3>The next layers aren't properly implemented so you can't "keep going", but you're welcome to play again.</h3><br><br>
<h3 v-if="player.p.tanks.eq(3)">If you didn't already, try completing the game with only two oxygen tanks! You'll have to be a little creative to manage it in time.</h3>
<h3 v-if="player.p.tanks.eq(2)">Congrats on skipping one of the oxygen tanks! Did you do so intentionally?</h3><br><br>
<div v-if="!player.timePlayedReset">It took you {{formatTime(player.timePlayed)}} to beat the game.</div>
<br>
<button class="longUpg can" onclick="hardReset(true)">Play Again</button>
<br><br><br>
</div>
<div v-if="player.showInterstitial" class="interstitial">
<span v-html=interstitialList[player.interstitialName].content></span>
<br><br>
<div v-if="options.speedrunMode">
<div>Time splits:</div>
<div v-for="time of player.interstitialTimes">{{time[0]}}: {{formatTime(time[1])}}</div>
<div>{{player.interstitialName}}: {{formatTime(player.timePlayed)}} </div>
</div>
<div v-if="!options.speedrunMode && player.interstitialName == `endgame`">Time played: {{formatTime(player.timePlayed)}}</div>
<br><br>
<span v-html=interstitialList[player.interstitialName].buttons></span>
</div>
<div id="treeOverlay" v-if="!(tmp.gameEnded && !player.keepGoing) && !player.showInterstitial && (player.tab === 'none' || tmp.other.splitScreen || !readData(layoutInfo.showTree))" 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')}"
:style="{'margin-top': !readData(layoutInfo.showTree) && player.tab == 'info-tab' ? '50px' : ''}">
<div id="version" onclick="showTab('changelog-tab')" class="overlayThing" style="margin-right: 13px" >
{{VERSION.withoutName}}</div>
<button
v-if="((player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside' || player[player.tab].prevTab)) || player[player.navTab]?.prevTab)" class="other-back overlayThing" onclick="goBack(player.navTab == 'none' ? player.tab : player.navTab)"></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="discord" class="overlayThing">
<img onclick="window.open((modInfo.discordLink ? modInfo.discordLink : 'https://discord.gg/F3xveHV'),'mywindow')"
src="discord.png" target="_blank"></img>
<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><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>
</div>
<overlay-head v-if='!(tmp.gameEnded && !player.keepGoing) && !player.showInterstitial && player["p"].chapter >= 0'></overlay-head>
<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>
</div>
<div v-if="!(tmp.gameEnded && !player.keepGoing) && !player.showInterstitial && (player.tab === 'none' || tmp.other.splitScreen)" id="treeTab" 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>
<overlay-head id="fakeHead" style="visibility: hidden;">
</overlay-head>
<layer-tab :layer="player.navTab == 'none' ? player.tab : player.navTab" :key="'left'"></layer-tab>
<bg :layer="player.navTab == 'none' ? player.tab : player.navTab" ></bg>
</div>
<!-- Popups -->
<div class="popup-container">
<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-on:click="() => {activePopups.splice(index, 1)}" v-bind:style="popup.color ? {'background-color': popup.color} : {}">
<h3>{{popup.title}}</h3><br>
<h2 v-html="popup.message"></h2>
</div>
</transition-group>
</div>
<div class="particle-container">
<div v-for="particle,index in particles">
<particle :data="particle" :index="index" v-bind:key="'b' + particle.id"></particle>
</div>
</div>
<div v-if="player.navTab !== 'none' && player.tab !== 'none' && !(tmp.gameEnded && !player.keepGoing) && !player.showInterstitial" onscroll="resizeCanvas()" v-bind:class="{ fullWidth: player.navTab == 'none' || !tmp.other.splitScreen || !readData(layoutInfo.showTree), 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>
</div>
</div>
<bg :layer="player.tab" ></bg>
</div>
<div class = "bg2" v-bind:style = "tmp.backgroundStyle"></div>
</div>
<!--客服 开始-->
<script src="//g8hh.com/static/js/jquery.min.js"></script>
<link rel="stylesheet" href="//g8hh.com/static/css/kf.css" type="text/css" media="screen" charset="utf-8">
<script src="//g8hh.com/static/js/kf.js"></script>
<!-- 客服 结束 -->
<!--站长统计-->
<div style="display: none">
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?dbb7ff142f4d4b68546c93b9cd6e9328";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</div>
</body>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化