A WHOLE BUNCH OF CHANGES
This commit is contained in:
parent
68e59584ea
commit
9709730f23
|
@ -26,6 +26,7 @@ and was possible thanks to these open source/Creative Commons resources:
|
||||||
|
|
||||||
* [Howler.js](https://howlerjs.com/) for the audio
|
* [Howler.js](https://howlerjs.com/) for the audio
|
||||||
* [MinPubSub](https://github.com/daniellmb/MinPubSub) for publish/subscribe
|
* [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
|
**Font:** [Patrick Hand](https://fonts.google.com/specimen/Patrick+Hand) by Patrick Wagesreiter
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ a:hover{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 60px);
|
height: calc(100% - 60px);
|
||||||
cursor: none;
|
cursor: none;
|
||||||
|
overflow: hidden; /* modal's being awful */
|
||||||
}
|
}
|
||||||
#container[sim_is_running]{
|
#container[sim_is_running]{
|
||||||
background: #eee;
|
background: #eee;
|
||||||
|
|
32
index.html
32
index.html
|
@ -65,7 +65,7 @@ Good luck, and thanks again!
|
||||||
<meta property="og:image" content="http://ncase.me/crowds/social/thumb.png">
|
<meta property="og:image" content="http://ncase.me/crowds/social/thumb.png">
|
||||||
|
|
||||||
<!-- Styles -->
|
<!-- 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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -230,7 +230,7 @@ Good luck, and thanks again!
|
||||||
<script src="js/slideshow/SandboxUI.js"></script>
|
<script src="js/slideshow/SandboxUI.js"></script>
|
||||||
<script src="js/slideshow/Modal.js"></script>
|
<script src="js/slideshow/Modal.js"></script>
|
||||||
<script src="js/slideshow/Preloader.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/Peep.js?v=2"></script>
|
||||||
<script src="js/sim/Connection.js"></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>
|
lots of love and thanks to</span>
|
||||||
<div style="font-size: 3em; line-height: 1.0em;">
|
<div style="font-size: 3em; line-height: 1.0em;">
|
||||||
MY PATREON SUPPORTERS</div>
|
MY PATREON SUPPORTERS</div>
|
||||||
<a onclick='publish("reference/show", ["supporters"]);'>
|
|
||||||
see names & 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">
|
<a target="_blank" href="https://www.patreon.com/ncase" style="text-decoration:none">
|
||||||
help me make more like this! <3</a>
|
help me make more like this! <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>
|
<br><br>
|
||||||
|
|
||||||
|
@ -1044,6 +1044,11 @@ Also, <b></b> bolds a word/phrase, and <i></i> italicizes a word/phrase.
|
||||||
<words id="translations_add">
|
<words id="translations_add">
|
||||||
(add your own!)
|
(add your own!)
|
||||||
</words>
|
</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 -->
|
<!-- BONUS BOXES -->
|
||||||
|
@ -1624,12 +1629,13 @@ Final thing! These references also need you to TRANSLATE:
|
||||||
</reference>
|
</reference>
|
||||||
<reference id="supporters" hidden=yes large=yes>
|
<reference id="supporters" hidden=yes large=yes>
|
||||||
<div>
|
<div>
|
||||||
To
|
Dear Patreon supporters:
|
||||||
<a target="_blank" href="https://www.patreon.com/ncase">my supporters on Patreon</a>:
|
Your generosity <i>literally</i> feeds me and pays my rent.
|
||||||
I'm deeply grateful.
|
You give me the freedom to make these weird educational games,
|
||||||
Your generosity <i>literally</i> feeds me and pays my rent,
|
so, from the bottom of my heart, thank you. <3
|
||||||
and grants me the creative freedom to make these weird math/social-science games.
|
<br>
|
||||||
From the bottom of my heart, thank you!
|
<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>
|
</div>
|
||||||
</reference>
|
</reference>
|
||||||
<reference id="playtesters" hidden=yes large=yes>
|
<reference id="playtesters" hidden=yes large=yes>
|
||||||
|
|
5
it.html
5
it.html
|
@ -1037,6 +1037,11 @@ Also, <b></b> bolds a word/phrase, and <i></i> italicizes a word/phrase.
|
||||||
<words id="translations_add">
|
<words id="translations_add">
|
||||||
(aggiungi la tua!)
|
(aggiungi la tua!)
|
||||||
</words>
|
</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 -->
|
<!-- BONUS BOXES -->
|
||||||
|
|
|
@ -44,7 +44,12 @@ function cloneObject(obj){
|
||||||
|
|
||||||
// Get words
|
// Get words
|
||||||
function getWords(wordsID){
|
function getWords(wordsID){
|
||||||
return $("words#"+wordsID).innerHTML.trim();
|
var dom = $("words#"+wordsID);
|
||||||
|
if(dom){
|
||||||
|
return dom.innerHTML.trim();
|
||||||
|
}else{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove from array
|
// Remove from array
|
||||||
|
|
|
@ -106,7 +106,8 @@ subscribe("modal/translations", function(){
|
||||||
html += getWords("translations_do_not_exist");
|
html += getWords("translations_do_not_exist");
|
||||||
}
|
}
|
||||||
html += " <a target='_blank' href='"+window.ADD_YOUR_OWN_LINK+"'>"+getWords("translations_add")+"</a>";
|
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(" · ");
|
html += _createLinks(" · ");
|
||||||
$("#modal_content").innerHTML = html;
|
$("#modal_content").innerHTML = html;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ window.TRANSLATIONS = [];
|
||||||
window.ADD_YOUR_OWN_LINK = "https://github.com/ncase/crowds#how-to-translate-this-thing";
|
window.ADD_YOUR_OWN_LINK = "https://github.com/ncase/crowds#how-to-translate-this-thing";
|
||||||
|
|
||||||
var r = new XMLHttpRequest();
|
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 () {
|
r.onreadystatechange = function () {
|
||||||
|
|
||||||
if(r.readyState != 4 || r.status != 200) return;
|
if(r.readyState != 4 || r.status != 200) return;
|
||||||
|
|
Loading…
Reference in New Issue