A WHOLE BUNCH OF CHANGES

This commit is contained in:
Nicky Case 2018-04-30 18:47:01 +01:00
parent 68e59584ea
commit 9709730f23
7 changed files with 35 additions and 16 deletions

View File

@ -26,6 +26,7 @@ and was possible thanks to these open source/Creative Commons resources:
* [Howler.js](https://howlerjs.com/) for the audio
* [MinPubSub](https://github.com/daniellmb/MinPubSub) for publish/subscribe
* [iNoBounce](https://github.com/lazd/iNoBounce/) for making iOS stop acting like a such a jerk
**Font:** [Patrick Hand](https://fonts.google.com/specimen/Patrick+Hand) by Patrick Wagesreiter

View File

@ -41,6 +41,7 @@ a:hover{
width: 100%;
height: calc(100% - 60px);
cursor: none;
overflow: hidden; /* modal's being awful */
}
#container[sim_is_running]{
background: #eee;

View File

@ -65,7 +65,7 @@ Good luck, and thanks again!
<meta property="og:image" content="http://ncase.me/crowds/social/thumb.png">
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="css/index.css?v=3">
<link rel="stylesheet" type="text/css" href="css/index.css?v=4">
</head>
<body>
@ -230,7 +230,7 @@ Good luck, and thanks again!
<script src="js/slideshow/SandboxUI.js"></script>
<script src="js/slideshow/Modal.js"></script>
<script src="js/slideshow/Preloader.js"></script>
<script src="js/slideshow/Translations.js?v=2"></script>
<script src="js/slideshow/Translations.js?v=3"></script>
<script src="js/sim/Peep.js?v=2"></script>
<script src="js/sim/Connection.js"></script>
@ -994,13 +994,13 @@ Also, <b></b> bolds a word/phrase, and <i></i> italicizes a word/phrase.
lots of love and thanks to</span>
<div style="font-size: 3em; line-height: 1.0em;">
MY PATREON SUPPORTERS</div>
<a onclick='publish("reference/show", ["supporters"]);'>
see names &amp; drawings of supporters</a> ·
<a onclick='publish("reference/show", ["playtesters"]);'>
see playtesters</a>
<br>
<a target="_blank" href="https://www.patreon.com/ncase" style="text-decoration:none">
help me make more like this! &lt;3</a>
<br>
<a onclick='publish("reference/show", ["supporters"]);'>
see my supporters</a> ·
<a onclick='publish("reference/show", ["playtesters"]);'>
see my playtesters</a>
<br><br>
@ -1044,6 +1044,11 @@ Also, <b></b> bolds a word/phrase, and <i></i> italicizes a word/phrase.
<words id="translations_add">
(add your own!)
</words>
<words id="translations_original">
<!-- No need to translate this, because, I assume, -->
<!-- if someone wants to play the game in English, they can read English -->
(original in English)
</words>
<!-- - - - - - - -->
<!-- BONUS BOXES -->
@ -1624,12 +1629,13 @@ Final thing! These references also need you to TRANSLATE:
</reference>
<reference id="supporters" hidden=yes large=yes>
<div>
To
<a target="_blank" href="https://www.patreon.com/ncase">my supporters on Patreon</a>:
I'm deeply grateful.
Your generosity <i>literally</i> feeds me and pays my rent,
and grants me the creative freedom to make these weird math/social-science games.
From the bottom of my heart, thank you!
Dear Patreon supporters:
Your generosity <i>literally</i> feeds me and pays my rent.
You give me the freedom to make these weird educational games,
so, from the bottom of my heart, thank you. &lt;3
<br>
<a target="_blank" href="https://www.patreon.com/ncase" style="text-decoration:none">
(want to support me in making more stuff like this? check out my Patreon!)</a>
</div>
</reference>
<reference id="playtesters" hidden=yes large=yes>

View File

@ -1037,6 +1037,11 @@ Also, <b></b> bolds a word/phrase, and <i></i> italicizes a word/phrase.
<words id="translations_add">
(aggiungi la tua!)
</words>
<words id="translations_original">
<!-- No need to translate this, because, I assume, -->
<!-- if someone wants to play the game in English, they can read English -->
(original in English)
</words>
<!-- - - - - - - -->
<!-- BONUS BOXES -->

View File

@ -44,7 +44,12 @@ function cloneObject(obj){
// Get words
function getWords(wordsID){
return $("words#"+wordsID).innerHTML.trim();
var dom = $("words#"+wordsID);
if(dom){
return dom.innerHTML.trim();
}else{
return "";
}
}
// Remove from array

View File

@ -106,7 +106,8 @@ subscribe("modal/translations", function(){
html += getWords("translations_do_not_exist");
}
html += " <a target='_blank' href='"+window.ADD_YOUR_OWN_LINK+"'>"+getWords("translations_add")+"</a>";
html += "<br>";
html += " <a href='.'>"+getWords("translations_original")+"</a>";
html += "<div style='height:12px'></div>";
html += _createLinks(" · ");
$("#modal_content").innerHTML = html;

View File

@ -2,7 +2,7 @@ window.TRANSLATIONS = [];
window.ADD_YOUR_OWN_LINK = "https://github.com/ncase/crowds#how-to-translate-this-thing";
var r = new XMLHttpRequest();
r.open("GET", "translations.txt", true);
r.open("GET", "translations.txt?cache="+Math.round(1000*Math.random()), true); // force cache refresh
r.onreadystatechange = function () {
if(r.readyState != 4 || r.status != 200) return;