1 Star 0 Fork 74

古明地板/cat-zh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 21.46 KB
一键复制 编辑 原始数据 按行查看 历史
Cirn09 提交于 2020-08-19 18:04 . 灾难
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Cache-Control" content="private, no-cache, no-store">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="res/favicon.gif" type="image/x-icon">
<!-- I only use jquery ironically -->
<script src="lib/react.min.js"></script> <!--todo: use min version -->
<!-- Local versions of libs will be hosted so our Chinese players wont be forced to use VPN -->
<script src="lib/jQuery.js"></script>
<script src="lib/dojo.xd.js"></script>
<script src="lib/lz-string.js"></script>
<script src="lib/dropbox_v2.js"></script>
<!-- friends don't let friends use AMD and require.js -->
<script src="lib/system.js"></script>
<!-- <script type="text/javascript" src="http://www.kongregate.com/javascripts/kongregate_api.js"></script> -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-29812134-1', 'bloodrizer.ru');
ga('send', 'pageview');
</script>
<script type="text/javascript">
var now = Date.now();
$("<link />").attr("rel", "stylesheet").attr("type", "text/css").attr("href", "res/default.css?_=" + now).appendTo($("head"));
</script>
<script src="https://www.gstatic.com/firebasejs/3.6.4/firebase.js"></script>
<script>
var config = {
apiKey: "AIzaSyDAitgXAOdO-0SgRIEjTDj69fvDz4MCB1g",
authDomain: "kg-firebase.firebaseapp.com",
databaseURL: "https://kg-firebase.firebaseio.com",
storageBucket: "kg-firebase.appspot.com",
messagingSenderId: "660584803958"
};
firebase.initializeApp(config);
</script>
<script>
/**
* Workaround for IE9 local storage :V
*
* This fix is intended for IE in general and especially for IE9,
* where localStorage is defined as system variable.
*
*/
window.LCstorage = window.localStorage;
if (document.all && !window.localStorage) {
window.LCstorage = {};
window.LCstorage.removeItem = function () { };
}
</script>
<script type="text/javascript">
</script>
<title>Kittens Game - a Dark Souls of incremental gaming</title>
</head>
<body>
<div id="gamePageContainer">
<div id="topBar">
<div style="padding-left: 10px;">
Kittens Game <span style="font-size: small;">by <a href="http://bloodrizer.ru/" class="copyright" target="_blank">bloodrizer</a></span>
<!--- a Dark Souls of incremental gaming -->
<span style="font-size: small;">
<a href="http://kittensgame.com/alpha" title="experimental, unstable" target="_blank">&alpha;</a>
<a href="http://kittensgame.com/beta" title="experimental, stable" target="_blank">&beta;</a>
<a href="http://kittensgame.com/web" title="RC, nighty build" target="_blank">ML</a>
<a href="http://bloodrizer.ru/games/kittens" title="stable, verified" target="_blank">BU</a>
</span>
<a href="#" style="color: red">
<!-- nothing exceptional there so far -->
</a>
<span id="motd">
<!-- motd -->
</span>
<div id="devPanel" style="display:inline-block; padding-left: 15px; font-size: 14px;">
<div id="devPanelFPS" onClick="gamePage.restartFPSCounters()">
</div>
<div id="devPanelCheats" style="display:none">
<a href="#" onclick="gamePage.science.unlockAll();">All techs</a>
<a href="#" onclick="gamePage.workshop.unlockAll();">All upgrades</a>
<a href="#" onclick="gamePage.resPool.maxAll();">All resources</a>
<a href="#" onclick="gamePage.bld.devAddStorage();">More storage</a>
<a href="#" onclick="gamePage.unlockedSchemes = gamePage.ui.allSchemes; gamePage.ui.updateOptions();">All themes</a>
</div>
</div>
</div>
<div id="headerLinks" style="position: absolute; top: 0; right: 10px; float: right;" >
<div id="headerToolbar" style="font-size: 12px; display: inline-block">
<!-- toolbar panel goes there -->
</div>
<span id="energyTooltip" style="padding-right: 15px; font-size: 12px;" title="Energy"></span>
<span id="sorrowTooltip" style="padding-right: 15px; font-size: 12px;" title="Black liquid sorrow"></span>
<span id="autosaveTooltip" style="padding-right: 15px; font-size: 12px; opacity: 0;">autosaving...</span>
<span id="saveTooltip" style="padding-right: 15px; font-size: 12px; opacity: 0;">Saved!</span>
<div class="links-block" style="padding-top:3px;display:inline-block;">
<a id="save-link" href="#" onclick="gamePage.saveUI();">Save</a> |
<a id="options-link" href="#" onclick="$('#optionsDiv').toggle();">Options</a> |
<a id="reset-link" href="#" onclick="gamePage.reset();">Reset</a> |
<span id="devModeButton" style="display: none;"><a href="#" id="devBtn" onclick="dev();">DEV</a> |</span>
<a id="wipe-link" href="#" onclick="wipe();">Wipe</a> |
<a id="getTheApp-link" href="#" onclick="gamePage.ui.displayAppDialog();" style="font-weight: bold; color:#666;">Get the app</a> |
<a href="changelog.txt" target="_blank">Ver <span id="versionLink">?.?.?.?</span></a>
</div>
</div>
</div>
<div id="game" >
<div id="tooltip" class="button_tooltip"></div>
<!-- LEFT -->
<div id="leftColumn" class="column" style="vertical-align: top;">
<div id="leftColumnViewport">#nothing interesting here</div>
</div>
<!-- MID -->
<div id="midColumn" style="vertical-align: top;" class="column">
<div id="gameContainerId" style="border: 1px solid gray;">
<span>糟糕!</span>
<div id="gameContainerHelp" style="font-size:150%;">
很遗憾,游戏被Ban了.<br>
<ul>
<li><a href="https://kitten-game-cn.now.sh/#" style="color:red">新地址</a></li>
<li>安得广厦千万间,大庇天下寒猫俱欢颜</li>
<li>下面是你的存档,等十秒没出现就说明你的存档丢失了</li>
</ul>
</div>
<textarea id="saveData" rows="10" cols="30">
稍等
</textarea>
</div>
</div>
<!-- RIGHT -->
<div id="rightColumn" class="column">
<div>
<span id="calendarSign" style="cursor:pointer;"></span><span id="calendarDiv" style="cursor:pointer;">Calendar :V</span>
<a id="dev_boostCalendar" href="#" onclick="dev_boostCalendar();" style="display: none; text-decoration: none; position: relative; left: 5px;">&gt;&gt;&gt;</a>
</div>
<div class="right-tab-header">
<a id="logLink" href="#" class="active" onclick="gamePage.ui.hideChat();">Log</a>
<a id="chatLink" class="chatLink" href="//shang.qq.com/wpa/qunwpa?idkey=2b9f0b27b1aabbce582429184ec05344fa384f59bf410f44071f42b271866338" target="_blank" title="点击加入猫薄荷同好会QQ群:499256691">聊天</a>
</div>
<div id="observeButton"></div>
<div class="right-tab" id="rightTabLog">
<div>
<div class="console-intro" style="padding-top: 10px; border-top: 1px solid gray;">
You are a kitten in a catnip forest.
</div>
<span id="clearLog">
<a id="clearLogHref" href="#" onClick="gamePage.clearLog();">Clear log</a>
</span>
<span id="logFiltersBlock" style="padding-top: 5px">
<a id="logFiltersBlockText" onclick="gamePage.toggleFilters();" href="#">[<span id="filterIcon">+</span>] Log Filters</a>
</span>
<a id="pauseBtn" style="font-size: 12px;" href="#" title="Pause/unpause the game" onclick="gamePage.togglePause();">pawse</a>
<a id="undoBtn" style="font-size: 12px;" href="#" title="Undo the change" onclick="gamePage.undo();">undo</a>
<div id="logFilters" style="display:none">
</div>
</div>
<div id="gameLog" style="overflow-y: scroll; padding-top: 10px; height: 100%; min-height:100%;">
<!-- Log goes there -->
</div>
</div>
<div class="right-tab" id="rightTabChat" style="display:none;">
<div id="IRCChatInner">
<!--iframe-- src="https://kiwiirc.com/client/irc.canternet.org/?nick=kitten_?#kittensgame" style="border:0; width: 400px; height:800px;"></iframe-->
<iframe src="https://kiwiirc.com/nextclient/?settings=98efrnr34rbd&nick=kitten_?" style="border:0; width: 400px; height:800px;"></iframe>
</div>
</div>
</div>
<div id="toggleCenter" onClick="gamePage.ui.toggleCenter();" class="column"><span class="toggleCenter">&gt;</span></div>
</div>
<div id="creditsDiv" style="display: none" class="dialog credits">
<a id="dialogClose" class="close" href="#" onclick="$('#creditsDiv').hide();" style="position: absolute; top: 10px; right: 15px;">close</a>
CSS themes: shrx, Kida, Volkeyrn (see top bar of each theme).<br />
<br />
Code contributions:
<ul>
<li>
<a href="http://www.reddit.com/user/Zusias" target="_blank">Zusias</a>
</li>
<li>Duke</li>
<li title="For years of dedication and support">
<a href="http://www.reddit.com/user/xranti" target="_blank">xranti</a>
</li>
<li><a href="http://www.reddit.com/user/klusark" target="_blank">klusark</a></li>
<li title="For save editor, inspiration and years of dedication and support">
<a href="https://coderpatsy.bitbucket.io/" target="_blank">coderpatsy</a>
</li>
<li>ArcanisCz</li>
<li>Kida</li>
<li title="For years of dedication and support">
freeroot
</li>
<li title="For years of dedication and support">
Ethaniel
</li>
<li title="Alpha branch, challenges, years of contribution">
Kyogre
</li>
<li title="For years of managing IRC and the wiki">
wikimon
</li>
<li title="Policies design and being a Grand Mufti">
Hunter
</li>
<li title="Policies, general code stuff">
Ziggurat
</li>
<li title="Exploration, general code stuff">
plcp_
</li>
<li title="Themes implementation">
Volkeyrn
</li>
<li title="help with i18n and localization">
PellaAndroid
</li>
</ul>
Thanks a lot to 4chan/igg for being such a nice guys.<br >
Thanks a lot to /r/kittensgame community for all the feedback and testing.<br />
Special thanks to Kittens Game discord mods and members<br />
Special thanks for anyone who is not in the list, we still love you &lt;3<br/>
tumblr icon by <a href="https://moonlight-pendent13.deviantart.com">Moonlight-pendent13</a><br />
<br />
Warmest thanks to <a href="http://www.reddit.com/user/ainil" target="_blank">ainil</a> for the long months of support and feedback.<br />
<br />
And finally, my undying gratitude to Waraiko.
</div>
<div id="optionsDiv" style="display: none;" class="dialog help">
<a id="dialogClose" href="#" class="close" onclick="gamePage.closeOptions()" style="position: absolute; top: 10px; right: 15px;">close</a>
<label id="optionLanguage" for="languageSelector">Language:</label>
<select id="languageSelector" onchange="gamePage.ui.updateLanguage()">
</select>
&nbsp;<a id="addTranslationLink" target="_blank" href="http://bloodrizer.ru/games/kittens/wiki/index.php?page=locales" style="font-size:14px;">Add translation</a>
<a id="languageApplyLink" href="#" onclick="gamePage.ui.applyLanguage()" style="display: none; padding-left: 15px;">Apply changes</a>
<br>
<br>
<label id="optionNotation" for="notationSelector">Notation:</label>
<select id="notationSelector" onchange="gamePage.ui.updateNotation()">
</select>
<br>
<br>
<label id="optionScheme" for="schemeToggle">Color scheme:</label>
<select id="schemeToggle" onchange="gamePage.toggleScheme($('#schemeToggle').val())">
</select>
&nbsp;<a id="schemeRelock" href="#" onclick="gamePage.ui.relockSchemes()" style="font-size:14px;">Relock schemes</a>
<br><i><span id="schemeTip" style="font-size: 70%;">Schemes that you cannot select yet can be permanently unlocked by specific actions.</span></i>
<br>
<br>
<input id="workersToggle" type="checkbox" onclick="gamePage.useWorkers = $('#workersToggle')[0].checked;">
<label id="optionWorkers" for="workersToggle">Use web worker
<i>(game works correctly in background tab, may cause performance issues)
<br>
You need to refresh the browser page for this setting to take effect.
</i></label>
<br>
<!-- ===================================== NOTE: FOR FULL I18N SUPPORT ===================================== -->
<!-- add new option text into en.json and code for i18n in ui.js:classes.ui.DesktopUI.updateIndexHTMLLanguage -->
<input id="forceHighPrecision" type="checkbox" onclick="gamePage.opts.forceHighPrecision = $('#forceHighPrecision')[0].checked;">
<label id="optionForceHighPrecision" for="forceHighPrecision">Use high precision for resource values</label>
<br>
<input id="usePerSecondValues" type="checkbox" onclick="gamePage.opts.usePerSecondValues = $('#usePerSecondValues')[0].checked;">
<label id="optionUsePerSecondValues" for="usePerSecondValues">Use per second values <i>(per tick otherwise)</i></label>
<br>
<input id="usePercentageResourceValues" type="checkbox" onclick="gamePage.opts.usePercentageResourceValues = $('#usePercentageResourceValues')[0].checked;">
<label id="optionUsePercentageResourceValues" for="usePercentageResourceValues">Use percentage resource production values</label>
<br>
<input id="showNonApplicableButtons" type="checkbox" onclick="gamePage.opts.showNonApplicableButtons = $('#showNonApplicableButtons')[0].checked;">
<label id="optionShowNonApplicableButtons" for="showNonApplicableButtons">Always show festivals/trade/sacrifice/shatter buttons even if not applicable</label>
<br>
<input id="usePercentageConsumptionValues" type="checkbox" onclick="gamePage.opts.usePercentageConsumptionValues = $('#usePercentageConsumptionValues')[0].checked;">
<label id="optionUsePercentageConsumptionValues" for="usePercentageConsumptionValues">Use percentage values for craft/trade/sacrifice buttons</label>
<br>
<input id="highlightUnavailable" type="checkbox" onclick="gamePage.opts.highlightUnavailable = $('#highlightUnavailable')[0].checked;">
<label id="optionHighlightUnavailable" for="highlightUnavailable">Highlight buildings limited by storage space</label>
<br>
<input id="set-ks-enable" type="checkbox" >
<label id="ks-label" for="set-ks-enable" style="color:red;">启用小猫珂学家</label> <!-- [<a href="https://gitee.com/likexia/cbc-kitten-scientists" target="_blank" style="color:blue;text-decoration:none;" title="点击查看">教程</a>] -->
<br>
<input id="hideSell" type="checkbox" onclick="gamePage.opts.hideSell = $('#hideSell')[0].checked;">
<label id="optionHideSell" for="hideSell">Hide 'sell' buttons</label>
<br>
<input id="hideDowngrade" type="checkbox" onclick="gamePage.opts.hideDowngrade = $('#hideDowngrade')[0].checked;">
<label id="optionHideDowngrade" for="hideDowngrade">Hide 'downgrade' buttons</label>
<br>
<input id="hideBGImage" type="checkbox" onclick="gamePage.opts.hideBGImage = $('#hideBGImage')[0].checked; gamePage.ui.updateOptions();">
<label id="optionHideBGImage" for="hideBGImage">Hide background image <i>(for color schemes where applicable)</i></label>
<br>
<input id="tooltipsInRightColumn" type="checkbox" onclick="gamePage.opts.tooltipsInRightColumn = $('#tooltipsInRightColumn')[0].checked; gamePage.ui.updateOptions();">
<label id="optionTooltipsInRightColumn" for="tooltipsInRightColumn">Move tooltips in right column</label>
<br>
<br>
<a id="optionMore" href="#" onclick="$('.optsExtra').toggle();">More...</a>
<!-- looks like a to niche option to occupy entire setting slot -->
<div class="optsExtra" style="display:none;">
<input id="noConfirm" type="checkbox" onclick="gamePage.opts.noConfirm = $('#noConfirm')[0].checked;">
<label id="optionNoConfirm" for="noConfirm">Do not confirm when clearing all jobs, researching policy or when buying or selling all (Shift-click)</label>
<br>
<input id="IWSmelter" type="checkbox" onclick="gamePage.opts.IWSmelter = $('#IWSmelter')[0].checked;">
<label id="optionIWSmelter" for="IWSmelter">Smelters turn off at 95% max Iron in Iron Will mode</label>
<br>
<input id="disableTelemetry" type="checkbox" onclick="gamePage.opts.disableTelemetry = $('#disableTelemetry')[0].checked;">
<label id="optionDisableTelemetry" for="disableTelemetry">Disable game telemetry</label>
<br>
<input id="enableRedshift" type="checkbox" onclick="gamePage.opts.enableRedshift = $('#enableRedshift')[0].checked;">
<label id="optionEnableRedshift" for="enableRedshift">Enable offline progression</label>
<br>
<input id="batchSize" type="number" min="1" max="9999" size="4" oninput="$('#batchSize')[0].value = gamePage.opts.batchSize = Math.max(1, Math.min(9999, $('#batchSize')[0].value));">
<label id="optionBatchSize" for="batchSize">Batch size of Ctrl-click</label>
<br>
<input id="forceLZ" type="checkbox" onclick="gamePage.opts.forceLZ = $('#forceLZ')[0].checked;">
<label id="optionForceLZ" for="forceLZ" style="font-size: 75%;">Always compress in-memory save, in UTF-16 <i>(experimental)</i></label>
<br>
<input id="compressSaveFile" type="checkbox" onclick="gamePage.opts.compressSaveFile = $('#compressSaveFile')[0].checked;">
<label id="optionCompressSaveFile" for="compressSaveFile" style="font-size: 75%;">Compress exported save file <i>(experimental)<br>
WARNING: it generates save files that are NOT COMPATIBLE with older versions.</i></label>
</div>
<br>
<input id="exportButton" type="button" value="Export" onclick="gamePage.saveExport();">
<input id="importButton" type="button" value="Import" onclick="$('#importData').val(''); $('#importDiv').show();" style="margin-top: 10px;">
<br>
</div>
<div id="exportDiv" style="display: none" class="dialog help">
<h1 id="exportTo" >Export To:</h1>
<input id="exportToDropbox" type="button" onclick="gamePage.saveExportDropbox();" value="Dropbox (Beta)">
<input id="exportToSimpleFile" type="button" onclick="gamePage.saveToFile(false);" value="File (simple name)">
<input id="exportToFullFile" type="button" onclick="gamePage.saveToFile(true);" value="File (full name)">
<a id="download-link" target="_blank" style="display: none"></a>
<br>
<h1 id="exportToEext">Text Export:</h1>
<br>
<textarea id="exportData" style="width: 550px; height: 220px;" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
<br>
<input id="closeButton" type="button" value="Close" onclick="$('#exportDiv').hide();" style="margin-top: 10px;">
</div>
<div id="importDiv" style="display: none" class="dialog help">
<div id="importWarning">Warning! Importing data will overwrite your current game data.</div>
<h1 id="importFrom">Import Form:</h1>
<input id="importFromDropbox" type="button" onclick="gamePage.saveImportDropbox();" value="Dropbox (Beta)">
<br>
<h1 id="importFromText">Text Import:</h1>
<br>
<textarea id="importData" style="width: 550px; height: 220px;" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
<br>
<input id="doImportButton" type="button" value="Import" onclick="gamePage.saveImport(); $('#importDiv').hide();" style="margin-top: 10px;">
<input id="cancelButton" type="button" value="Cancel" onclick="$('#importDiv').hide();" style="margin-top: 10px;">
</div>
<div id="appDiv" style="display: none" class="dialog help">
<a id="dialogClose" href="#" class="close" style="position: absolute; top: 10px; right: 15px;">close</a>
<span id="appText">Kittens Game Mobile has been released! Click on the link to follow:</span>
<br>
<br>
<a id="appAndroid" target="_blank" href="https://play.google.com/store/apps/details?id=com.nuclearunicorn.kittensgame&hl=en">Android</a>&nbsp;|&nbsp;
<a id="appIOS" target="_blank" href="https://itunes.apple.com/us/app/kittens-game/id1198099725?mt=8">iOS</a>
<br>
<br>
<br>
<!--span style="font-size:12px;">(Will open in a new window)</span-->
</div>
<div id="footerLinks" class="links-block">
<a href="wiki/" target="_blank" title="猫国百科全书">百科</a> |
<a href="http://bloodrizer.ru/games/kittens/wiki/" target="_blank">Wiki</a> |
<a class="chatLink" href="//shang.qq.com/wpa/qunwpa?idkey=2b9f0b27b1aabbce582429184ec05344fa384f59bf410f44071f42b271866338" target="_blank" title="点击加入猫薄荷同好会QQ群:499256691">Q群</a> |
<!-- <a href="http://kittensgame.tumblr.com" target="_blank">tumblr</a> | -->
<!-- <a href="#" onclick="$('#helpDiv').toggle();">help</a> | -->
<a href="#" onclick="$('#creditsDiv').toggle();">人员</a> |
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=82FJX5M8M3GVN" target="_blank">捐赠</a> |
<a href="https://www.patreon.com/bloodrizer" target="_blank">支持</a>
<!-- | <a href="classic/" target="_blank">classic</a> -->
</div>
</div>
<script>
setTimeout(function() {
var json = LCstorage["com.nuclearunicorn.kittengame.savedata"];
var data = LZString.compressToBase64(json);
$("#saveData").attr("value", data);
console.log('fdafda')
}, 2500);
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/Cirn09/cat-zh.git
[email protected]:Cirn09/cat-zh.git
Cirn09
cat-zh
cat-zh
master

搜索帮助