add verson select

This commit is contained in:
Bluzume 2021-10-31 11:34:48 -04:00
parent 7a23d2b915
commit 97f7d8e43a
16 changed files with 114 additions and 43 deletions

3
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

9
.idea/KitsuneOffline.iml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/misc.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/KitsuneOffline.iml" filepath="$PROJECT_DIR$/.idea/KitsuneOffline.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -15,7 +15,7 @@
document.body.parentElement.id = 'sdoodles';
}
</script>
<style>#hplogo{height:216px;outline:none;overflow:hidden;position:relative;width:384px;-moz-user-select:-moz-none;-ms-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none}#sdoodles,#sdoodles center,#sdoodles body,#sdoodles #hplogo,#sdoodles #hplogo2{overflow:hidden;margin:0;height:100%;width:100%}#sadoodle,#fpdoodle,#sadoodle center,#fpdoodle center,#sadoodle body,#fpdoodle body,#sadoodle #hplogo,#fpdoodle #hplogo,#sadoodle #hplogo2,#fpdoodle #hplogo2{overflow:hidden;margin:0;height:100vh;width:100vw}#hpcta{image-rendering:pixelated;width:100%;height:100%;left:0;top:0;overflow:hidden;position:absolute;cursor:pointer;border:0;padding:0;background-color:transparent;background-position:center;background-size:contain;background-repeat:no-repeat}.hpcta-marathon{background-image:url(/logos/2020/kitsune/rc7/CTA-Marathon-174788017-174787794.png)}.hpcta-archery{background-image:url(/logos/2020/kitsune/rc7/CTA-Archery-174787996-174787824.png)}.hpcta-closing{background-image:url(/logos/2020/kitsune/rc7/CTA-Closing-174787829-192414335.png)}.hpcta-opening{background-image:url(/logos/2020/kitsune/rc7/CTA-Opening-144867217-174787752-174787825-192413481.png)}.hpcta-rugby{background-image:url(/logos/2020/kitsune/rc7/CTA-Rugby-174787947-174787773.png)}.hpcta-skateboarding{background-image:url(/logos/2020/kitsune/rc7/CTA-Skateboarding-174787927.png)}.hpcta-swimming{background-image:url(/logos/2020/kitsune/rc7/CTA-Swimming-174787828-174787766.png)}.hpcta-tabletennis{background-image:url(/logos/2020/kitsune/rc7/CTA-TableTennis-174787827-174787820.png)}.hpcta-climbing{background-image:url(/logos/2020/kitsune/rc7/CTA_Climbing-174787997.png)}#hpctaplay{background-position:center;background-size:contain;background-repeat:no-repeat;background-image:url(/logos/2020/kitsune/rc7/CTA-CenteredPlayButtonFrame1.png);image-rendering:pixelated;width:100%;height:100%;top:0;left:0;overflow:hidden;position:absolute;cursor:pointer;padding:0;visibility:hidden;animation:hpctaplayanimate-offset 1.5s steps(1,end) infinite}.hpcta-closing #hpctaplay,.hpcta-opening #hpctaplay{background-image:url(/logos/2020/kitsune/rc7/CTA-CenteredPlayButtonFrame1.png);animation:hpctaplayanimate-centered 1.5s steps(1,end) infinite}@keyframes hpctaplayanimate-centered{0%{background-image:url(/logos/2020/kitsune/rc7/CTA-CenteredPlayButtonFrame1.png)}50%{background-image:url(/logos/2020/kitsune/rc7/CTA-CenteredPlayButtonFrame2.png)}}@keyframes hpctaplayanimate-offset{0%{background-image:url(/logos/2020/kitsune/rc7/CTA-OffsetPlayButtonFrame1.png)}50%{background-image:url(/logos/2020/kitsune/rc7/CTA-OffsetPlayButtonFrame2.png)}}#hpcanvas{position:absolute;left:0;top:0;width:100%;height:100%}#hplogoaria,#hplogogamearia{top:0;left:-2px;width:1px;height:1px;position:absolute;overflow:hidden}#hplogovideo{position:absolute;left:0;top:0;width:100%;height:100%}#hplogovideo video{position:absolute;left:0;top:0;width:100%;height:100%}@font-face{font-family:'PixelMplus10';src:url('gstatic/external_hosted/pixelmplus_font/PixelMplus10-Regular.ttf')}</style><!-- find.foo/letsplayagame21 --><div id="hplogo"><div id="hplogo2" role="region" tabindex="0" dir="{{LANGUAGE_DIRECTION}}"aria-controls="hplogoaria"><div id='hplogovideo'></div><canvas id="hpcanvas" width=960 height=540 dir="{{LANGUAGE_DIRECTION}}"></canvas><div role="region" id="hplogoaria" aria-live="assertive"></div><div id="hplogogamearia" aria-live="polite"></div></div><button id='hpcta' title="{{LOGO_ALT_TEXT_HTML}}"><div id='hpctaplay'></div></button></div><script nonce="Gz4XVC9SWcO3uf3mDFvUag">(function setCta(){var bugId = '144867217';var elem = document.getElementById('hpcta');var mapping ={'174788017':'hpcta-marathon','174787794':'hpcta-marathon','174787996':'hpcta-archery','174787824':'hpcta-archery','174787829':'hpcta-closing','192414335':'hpcta-closing','144867217':'hpcta-opening','174787752':'hpcta-opening','174787825':'hpcta-opening','192413481':'hpcta-opening','174787947':'hpcta-rugby','174787773':'hpcta-rugby','174787927':'hpcta-skateboarding','174787828':'hpcta-swimming','174787766':'hpcta-swimming','174787827':'hpcta-tabletennis','174787820':'hpcta-tabletennis','174787997':'hpcta-climbing',};if (mapping.hasOwnProperty(bugId)){elem.classList.add(mapping[bugId])} else{elem.classList.add('hpcta-opening')}})();</script><script nonce="Gz4XVC9SWcO3uf3mDFvUag">(function(){/*
<style>#hplogo{height:216px;outline:none;overflow:hidden;position:relative;width:384px;-moz-user-select:-moz-none;-ms-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none}#sdoodles,#sdoodles center,#sdoodles body,#sdoodles #hplogo,#sdoodles #hplogo2{overflow:hidden;margin:0;height:100%;width:100%}#sadoodle,#fpdoodle,#sadoodle center,#fpdoodle center,#sadoodle body,#fpdoodle body,#sadoodle #hplogo,#fpdoodle #hplogo,#sadoodle #hplogo2,#fpdoodle #hplogo2{overflow:hidden;margin:0;height:100vh;width:100vw}#hpcta{image-rendering:pixelated;width:100%;height:100%;left:0;top:0;overflow:hidden;position:absolute;cursor:pointer;border:0;padding:0;background-color:transparent;background-position:center;background-size:contain;background-repeat:no-repeat}.hpcta-marathon{background-image:url(/logos/2020/kitsune/rc7/CTA-Marathon-174788017-174787794.png)}.hpcta-archery{background-image:url(/logos/2020/kitsune/rc7/CTA-Archery-174787996-174787824.png)}.hpcta-closing{background-image:url(/logos/2020/kitsune/rc7/CTA-Closing-174787829-192414335.png)}.hpcta-opening{background-image:url(/logos/2020/kitsune/rc7/CTA-Opening-144867217-174787752-174787825-192413481.png)}.hpcta-rugby{background-image:url(/logos/2020/kitsune/rc7/CTA-Rugby-174787947-174787773.png)}.hpcta-skateboarding{background-image:url(/logos/2020/kitsune/rc7/CTA-Skateboarding-174787927.png)}.hpcta-swimming{background-image:url(/logos/2020/kitsune/rc7/CTA-Swimming-174787828-174787766.png)}.hpcta-tabletennis{background-image:url(/logos/2020/kitsune/rc7/CTA-TableTennis-174787827-174787820.png)}.hpcta-climbing{background-image:url(/logos/2020/kitsune/rc7/CTA_Climbing-174787997.png)}#hpctaplay{background-position:center;background-size:contain;background-repeat:no-repeat;background-image:url(/logos/2020/kitsune/rc7/CTA-CenteredPlayButtonFrame1.png);image-rendering:pixelated;width:100%;height:100%;top:0;left:0;overflow:hidden;position:absolute;cursor:pointer;padding:0;visibility:hidden;animation:hpctaplayanimate-offset 1.5s steps(1,end) infinite}.hpcta-closing #hpctaplay,.hpcta-opening #hpctaplay{background-image:url(/logos/2020/kitsune/rc7/CTA-CenteredPlayButtonFrame1.png);animation:hpctaplayanimate-centered 1.5s steps(1,end) infinite}@keyframes hpctaplayanimate-centered{0%{background-image:url(/logos/2020/kitsune/rc7/CTA-CenteredPlayButtonFrame1.png)}50%{background-image:url(/logos/2020/kitsune/rc7/CTA-CenteredPlayButtonFrame2.png)}}@keyframes hpctaplayanimate-offset{0%{background-image:url(/logos/2020/kitsune/rc7/CTA-OffsetPlayButtonFrame1.png)}50%{background-image:url(/logos/2020/kitsune/rc7/CTA-OffsetPlayButtonFrame2.png)}}#hpcanvas{position:absolute;left:0;top:0;width:100%;height:100%}#hplogoaria,#hplogogamearia{top:0;left:-2px;width:1px;height:1px;position:absolute;overflow:hidden}#hplogovideo{position:absolute;left:0;top:0;width:100%;height:100%}#hplogovideo video{position:absolute;left:0;top:0;width:100%;height:100%}@font-face{font-family:'PixelMplus10';src:url('https://www.gstatic.com/external_hosted/pixelmplus_font/PixelMplus10-Regular.ttf')}</style><!-- find.foo/letsplayagame21 --><div id="hplogo"><div id="hplogo2" role="region" tabindex="0" dir="{{LANGUAGE_DIRECTION}}"aria-controls="hplogoaria"><div id='hplogovideo'></div><canvas id="hpcanvas" width=960 height=540 dir="{{LANGUAGE_DIRECTION}}"></canvas><div role="region" id="hplogoaria" aria-live="assertive"></div><div id="hplogogamearia" aria-live="polite"></div></div><button id='hpcta' title="{{LOGO_ALT_TEXT_HTML}}"><div id='hpctaplay'></div></button></div><script nonce="Gz4XVC9SWcO3uf3mDFvUag">(function setCta(){var bugId = '144867217';var elem = document.getElementById('hpcta');var mapping ={'174788017':'hpcta-marathon','174787794':'hpcta-marathon','174787996':'hpcta-archery','174787824':'hpcta-archery','174787829':'hpcta-closing','192414335':'hpcta-closing','144867217':'hpcta-opening','174787752':'hpcta-opening','174787825':'hpcta-opening','192413481':'hpcta-opening','174787947':'hpcta-rugby','174787773':'hpcta-rugby','174787927':'hpcta-skateboarding','174787828':'hpcta-swimming','174787766':'hpcta-swimming','174787827':'hpcta-tabletennis','174787820':'hpcta-tabletennis','174787997':'hpcta-climbing',};if (mapping.hasOwnProperty(bugId)){elem.classList.add(mapping[bugId])} else{elem.classList.add('hpcta-opening')}})();</script><script nonce="Gz4XVC9SWcO3uf3mDFvUag">(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
@ -23,7 +23,7 @@
var d=function(b){var a=0;return function(){return a<b.length?{done:!1,value:b[a++]}:{done:!0}}},e=function(b){var a="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return a?a.call(b):{next:d(b)}},f=function(b){for(var a,c=[];!(a=b.next()).done;)c.push(a.value);return c},g=this||self;var h=function(b,a){var c=document.createElement("script");c.async=!0;a&&(c.onload=a);c.src=b;document.body.appendChild(c)},k=function(b,a){var c=b.shift();c&&h(c,function(){a();k(b,a)})};window.google||(window.google={});google.doodle||(google.doodle={});google.doodle.id="144867217";google.doodle.url=google.doodle.url||"/search?q=automatically+replaced";google.doodle.alt="Automatically Replaced Alt Text JS";google.doodle.share="Automatically Replaced Share Text JS";google.doodle.shortlink="//g.co/doodle/permalink";
google.doodle.facebook_link="//g.co/doodle/facebooklink";google.doodle.twitter_link="//g.co/doodle/twitterlink";google.doodle.email_link="//g.co/doodle/emaillink";google.doodle.copy_link="//g.co/doodle/copylink";google.doodle.gallery="//www.google.com/doodles/gallery";google.doodle.large_image="/logos/doodles/2021/doodle-champion-island-games-begin-6753651837108462.2-l.png";google.doodle.hl="Automatically Replaced Language";google.doodle.gl="Automatically Replaced Geo Code";google.doodle.msgs={"Automatically Replaced Translations":"Translations"};
google.doodle.doodle_args={"leaderboardUrl":"https://storage.googleapis.com/kitsune-scores/scores.json","defaultLeaderboard":"[{\\\"TeamId\\\":0,\\\"GlobalScore\\\":32941,\\\"RecordCount\\\":590},{\\\"TeamId\\\":1,\\\"GlobalScore\\\":30938,\\\"RecordCount\\\":510},{\\\"TeamId\\\":2,\\\"GlobalScore\\\":36028,\\\"RecordCount\\\":650},{\\\"TeamId\\\":3,\\\"GlobalScore\\\":31865,\\\"RecordCount\\\":550}]","leaderboardCacheIntervalMs":"60000"};
if(!google.doodle||!google.doodle.loaded){var l=["google","doodle","loaded"],m=g;l[0]in m||"undefined"==typeof m.execScript||m.execScript("var "+l[0]);for(var n;l.length&&(n=l.shift());)l.length?m[n]&&m[n]!==Object.prototype[n]?m=m[n]:m=m[n]={}:m[n]=!0;var p=JSON.parse('["gstatic/external_hosted/createjs/createjs-2015.11.26.min.js","gstatic/external_hosted/cannonjs/cannon.min.js","gstatic/external_hosted/expr_eval/dist/bundle.min.js"]'),q=JSON.parse("[]"),
if(!google.doodle||!google.doodle.loaded){var l=["google","doodle","loaded"],m=g;l[0]in m||"undefined"==typeof m.execScript||m.execScript("var "+l[0]);for(var n;l.length&&(n=l.shift());)l.length?m[n]&&m[n]!==Object.prototype[n]?m=m[n]:m=m[n]={}:m[n]=!0;var p=JSON.parse('["https://www.gstatic.com/external_hosted/createjs/createjs-2015.11.26.min.js","https://www.gstatic.com/external_hosted/cannonjs/cannon.min.js","https://www.gstatic.com/external_hosted/expr_eval/dist/bundle.min.js"]'),q=JSON.parse("[]"),
r=[].concat(p instanceof Array?p:f(e(p)),q instanceof Array?q:f(e(q))),t=0,u=function(){t++;t>=r.length&&h("/logos/2020/kitsune/rc7/kitsune20.js")};k(q,u);for(var v=0;v<p.length;v++)h(p[v],u);0==r.length&&u()};}).call(this);</script>
<script nonce="Gz4XVC9SWcO3uf3mDFvUag">(function(){var d=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},e=window.google.doodle,k=e.l10n,l=e.allMsgs,n=["alt","title","src","href","dir"],p=window.location.hash||window.location.search;function q(a){var b=r,g=t;a=document.querySelectorAll(a);for(var h=0,m;m=a[h];h++){var E=b,F=g;var f=n;var c="undefined"!=typeof Symbol&&Symbol.iterator&&f[Symbol.iterator];f=c?c.call(f):{next:d(f)};for(c=f.next();!c.done;c=f.next())c=c.value,m.getAttribute(c)==E&&(m[c]=F)}}
function u(a){var b=a[v]||a.en;if(!b)return null;if(b=b[w]||b.ALL||(a.en?a.en.ALL:null))return b;for(var g in a)for(var h in a[g])if(a[g][h])return a[g][h];return null}var x=/[&=]?hl=([^&]*)/.exec(p),v=x?x[1]:"en",w=(x=/[&=]?gl=([^&]*)/.exec(p))?x[1]:"ALL",y={"{{LOGO_ALT_TEXT_HTML}}":"{{LOGO_ALT_TEXT}}"},z=u(k)||{},r;for(r in z){var t=y[r]?z[y[r]]:z[r],A;for(A in e)e[A]==r&&(e[A]=t);q("div");q("a");q("canvas")}var B=l.translations,C=l.messages;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -1,35 +0,0 @@
<html>
<head>
<meta charset="UTF-8">
<style>
html,body,header {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<script>
if(localStorage["CONFIG_LANGUAGE"] == undefined)
{
location = "/logos/config.html";
}
handler = function(event){
if(event.keyCode == 121){
location = "/logos/config.html";
}
else
{
window.removeEventListener("keydown");
}
}
window.addEventListener("keydown", handler);
document.write('<iframe src="/logos/2020/kitsune/rc7/kitsune20.html?hl='+localStorage["CONFIG_LANGUAGE"]+'" width="100%" height="100%" frameBorder="0">');
</script>
</body>
</html>

View File

@ -1,10 +1,10 @@
{
"name": "Kitsune",
"main": "logos/run.html",
"main": "silica/run.html",
"window": {
"title": "Kitsune",
"width": 960,
"height": 544,
"icon":"logos/icon.png"
"icon":"silica/icon.png"
}
}

View File

@ -8,6 +8,10 @@
<center>
<h1>Kitsune Configurator</h1>
<hr>
<b>VERSION:</b><br>
<select id="version">
</select><br>
<hr>
<b>LANGUAGE:</b><br>
<select id="language">
<option value="af">Afrikaans</option>
@ -26,7 +30,6 @@
<option value="en-GB">English (UK)</option>
<option value="en" selected>English (US)</option>
<option value="es">Spanish; Castilian</option>
<option value="es-419">Spanish; South America</option>
<option value="et">Estonian</option>
<option value="eu">Basque</option>
<option value="fa">Persian</option>
@ -96,7 +99,7 @@
<br>
<button onclick="save()">Start Game</button>
<br>
<h2>Press F10 At Game Start to return to this config menu</h2>
<h2>Press F10 to return to this config menu</h2>
</center>
<script>
@ -140,13 +143,38 @@
}
redirect = function(){
location = "/logos/run.html";
location = "/silica/run.html";
}
populate = function(){
fs = require('fs');
files = fs.readdirSync("logos/2020/kitsune");
files.forEach(file => {
opt = document.createElement("option");
opt.value = file;
opt.innerText = file;
if(file == localStorage["CONFIG_VERSION"])
opt.selected = true;
document.getElementById("version").add(opt);
});
}
save = function(){
localStorage["CONFIG_LANGUAGE"] = document.getElementById("language").value;
localStorage["CONFIG_VERSION"] = document.getElementById("version").value;
redirect();
}
loadSettings = function(){
if(localStorage["CONFIG_LANGUAGE"] != undefined)
document.getElementById("language").value = localStorage["CONFIG_LANGUAGE"];
}
populate();
loadSettings();
</script>
</body>
</html>
</html>

View File

Before

Width:  |  Height:  |  Size: 546 B

After

Width:  |  Height:  |  Size: 546 B

46
silica/run.html Normal file
View File

@ -0,0 +1,46 @@
<html>
<head>
<meta charset="UTF-8">
<style>
html,body,header {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<script>
if(localStorage["CONFIG_LANGUAGE"] == undefined || localStorage["CONFIG_VERSION"] == undefined)
{
location = "/silica/config.html";
}
handler = function(event){
if(event.keyCode == 121){
location = "/silica/config.html";
}
else
{
window.removeEventListener("keydown");
}
}
window.addEventListener("keydown", handler);
url = '/logos/2020/kitsune/'+localStorage["CONFIG_VERSION"]+'/kitsune20.html?hl='+localStorage["CONFIG_LANGUAGE"];
history.replaceState(null, null, url)
// Change URL
xhr = new XMLHttpRequest();
xhr.open("GET", url, false);
xhr.send();
// Get html contents
document.clear();
document.write(xhr.response.replaceAll("https://www.gstatic.com/", "/gstatic/"));
// Replace gstatic.com for /gstatic/
</script>
</body>
</html>