Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNisnevich committed Jun 14, 2024
2 parents 0017a40 + 2b72790 commit cbbd564
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
16 changes: 7 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,14 @@

<div id="jquery_bgPlayer" class="jp-jplayer"></div>
<div id="jquery_soundPlayer" class="jp-jplayer"></div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-345959-12']);
_gaq.push(['_trackPageview']);
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CNGKWCR3CM"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
gtag('config', 'G-CNGKWCR3CM');
</script>
<iframe id="user_code" style="display:none;" />
</body>
Expand Down
4 changes: 2 additions & 2 deletions scripts/build/untrusted.js
Original file line number Diff line number Diff line change
Expand Up @@ -1092,12 +1092,12 @@ function CodeEditor(textAreaDomID, width, height, game) {
'content': this.getCode(true).replace(/\t/g, ' ')
};

var t = ['372f2dad', '3edbb23c', '7c82f871', '36a67eb8', '623e8b32'];
var t = 'NTg4NmM5YWQ3N2U4ZTNhNTljZjIzNWFhYmE2YzZiNGFkODJiYjQ0Nw==';
$.ajax({
'url': 'https://api.github.com/gists',
'type': 'POST',
'data': JSON.stringify(data),
'headers': { 'Authorization': 'token ' + t.join('') },
'headers': { 'Authorization': 'token ' + atob(t) },
'success': function (data, status, xhr) {
$('#savedLevelMsg').html('Level ' + lvlNum + ' solution saved at <a href="'
+ data['html_url'] + '" target="_blank">' + data['html_url'] + '</a>');
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/untrusted.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions scripts/codeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,12 @@ function CodeEditor(textAreaDomID, width, height, game) {
'content': this.getCode(true).replace(/\t/g, ' ')
};

var t = ['372f2dad', '3edbb23c', '7c82f871', '36a67eb8', '623e8b32'];
var t = 'NTg4NmM5YWQ3N2U4ZTNhNTljZjIzNWFhYmE2YzZiNGFkODJiYjQ0Nw==';
$.ajax({
'url': 'https://api.github.com/gists',
'type': 'POST',
'data': JSON.stringify(data),
'headers': { 'Authorization': 'token ' + t.join('') },
'headers': { 'Authorization': 'token ' + atob(t) },
'success': function (data, status, xhr) {
$('#savedLevelMsg').html('Level ' + lvlNum + ' solution saved at <a href="'
+ data['html_url'] + '" target="_blank">' + data['html_url'] + '</a>');
Expand Down
11 changes: 11 additions & 0 deletions solutions/18_superDrEvalBros.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,17 @@ function antiGravity() {
}
map.startTimer(antiGravity, 25);
```
# "Straight Shot"
## H3Xivall
```javascript
// Walk up to the edge and press the phone button
var ob = 0
for (let i = ob; i < 10; i++) {
map.defineObject(i.toString(), 10);
map.placeObject(player.getX()+1+i,player.getY()+1,i.toString());
}
// Now just walk across
```

0 comments on commit cbbd564

Please sign in to comment.