-
Notifications
You must be signed in to change notification settings - Fork 710
/
index.html
126 lines (114 loc) · 7.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html>
<head>
<title>Untrusted - a user javascript adventure game</title>
<meta charset='utf8'></meta>
<link rel="shortcut icon" href="favicon.ico" />
<link href='//fonts.googleapis.com/css?family=Droid+Sans+Mono|Share+Tech+Mono' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="styles/game.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="lib/es5-shim.min.js"></script>
<script type="text/javascript" src="lib/shortcut.js"></script>
<script type="text/javascript" src="lib/rotjs-library/rot.js"></script>
<script type="text/javascript" src="lib/jquery.jplayer.min.js"></script>
<link rel="stylesheet" href="lib/codemirror-3.1/lib/codemirror.css">
<script src="lib/codemirror-3.1/lib/codemirror.js"></script>
<script src="lib/codemirror-3.1/mode/javascript/javascript.js"></script>
<link rel="stylesheet" href="lib/codemirror-3.1/theme/vibrant-ink.css">
<script src="scripts/build/untrusted.js"></script>
</head>
<body>
<a id="forkMe" href="https://github.com/AlexNisnevich/untrusted" target="_blank"><img style="position: absolute; top: 0; right: 0; border: 0; z-index: 9999;" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_darkblue_121621.png?resize=149%2C149" alt="Fork me on GitHub"></a>
<div id="container">
<div id="panes">
<noscript>
You must enable JavaScript to play Untrusted.
</noscript>
<a id="muteButton"><img draggable ="false" src="images/mute-off.png" /></a>
<span id="nowPlayingMsg" class="topStatus"></span>
<span id="savedLevelMsg" class="topStatus"></span>
<div id="screenPane">
<canvas id="drawingCanvas"></canvas>
<div id="dummyDom"></div>
<div id="screen"></div>
<div id="inventory"></div>
<div id="output"></div>
<div id="chapter"></div>
</div>
<div id="editorPane" style="display: none;">
<textarea id="editor">
</textarea>
<div id="buttons">
<span><a id="helpButton" title="Ctrl+1: API Reference"><span class="keys">^1</span> API</a></span>
<span><a id="toggleFocusButton" title="Ctrl+2: Toggle Focus"><span class="keys">^2</span> Toggle Focus</a></span>
<span><a id="notepadButton" title="Ctrl+3: Notepad"><span class="keys">^3</span> Notepad</a></span>
<span><a id="resetButton" title="Ctrl+4: Reset Level"><span class="keys">^4</span> Reset</a></span>
<span><a id="executeButton" title="Ctrl+5: Execute"><span class="keys">^5</span> Execute</a></span>
<span><a id="phoneButton" style="display: none;" title="Q: Use Phone"><span class="keys"> Q</span> Phone</a></span>
<span><a id="menuButton" title="Ctrl+0: Menu" style="float: right;"><span class="keys">^0</span> <span id="menuLabel">Menu</span></a></span>
</div>
</div>
<div id="helpPane" style="display: none;">
<div id="helpPaneSidebar">
<div id="helpPaneTitle">API Reference</div>
<ul></ul>
</div>
<div id="helpPaneContent"></div>
<div id="helpPaneCloseButton">x</div>
</div>
<div id="menuPane" class='pop_up_box'>
<div id="leftMenuPane">
<ul>
<li id="rootDir">/</li>
<li id="levelsDir" class="nested selected">levels/</li>
<li id="scriptsDir" class="nested">scripts/</li>
<li id="bonusDir" class="nested">bonus/</li>
</ul>
</div>
<div id="rightMenuPane">
<div class="pop_up_box_heading">Level Select</div>
<div id="root"></div>
<div id="levels"></div>
<div id="scripts"></div>
<div id="bonus"></div>
</div>
</div>
<div id="notepadPane" class='pop_up_box'>
<div id='notepadPaneContent'>
<div class="pop_up_box_heading">$EDITOR</div>
<textarea id=notepadTextarea></textarea>
<button id='notepadSaveButton'>Save</button>
</div>
<div id='notepadPaneCloseButton'>x</div>
</div>
</div>
<div id="licensing">
<a onClick="$('#licensingEmail').toggle();">Interested in using Untrusted commercially?</a>
<span id="licensingEmail">[email protected]</span>
</div>
<div id="paypal">
<span id="paypalCaption">Send some beer money our way?</span>
<form id="paypalButton" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHbwYJKoZIhvcNAQcEoIIHYDCCB1wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCm7SFl45X1Lu7xu+F3oAV+spw9MvqKfjmED56iQSTH7SbbRdGmbtbQ30smDaU9rOXIt1QoEcFJgjO/Fq8o0+BWn7thno7btbwDnt4Jvr2DycSwZPSa8x8jNgypLBQVkQVL2v7ufhcjuNpIr7nz4M9CdmT0ys2m2JwpprBWDjFrtzELMAkGBSsOAwIaBQAwgewGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI4EnAzSo6DfyAgci7VmL95V9fzkvjGoJSp9ZyDwaziQZPr9/CV285CyhivtaDc1Ytz1tnYAumWweOmBhlKbRNUg+3nXSlvqh8FXM/iHmr5QKEPFKFWvyqIOuXheDzKg+pX7UeeLzkZpagx6eJtvxf4C2KmOVcx4f8y6vj+Eoh4wsO/yKqyt0cdXWpnNNl7N1vMGSiJa43yHJ4TGGDwa9jOJfKo/kUZE8s7LYpGQODNvFEHYnLplS5pYo+xhbpq4j74z1oCT+UOYhJMvwa4N91dYOFOaCCA4cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNV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WAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDQwOTIwMTMwNVowIwYJKoZIhvcNAQkEMRYEFCwi/dWQTjH3ydSP3kF9F1D65lSoMA0GCSqGSIb3DQEBAQUABIGAJ11YwSy6yDT6yk7rHUbyGQ027xEZ8xwDqjDGbbpPxswr3B4nXHlJwohhmv4Iy50Oq9g/FWCeQSNXMti52qGvAdzVVuzCelTb8ngxWmY+B7129CmqjZJPZPPCCuT+NjDovXDfNbJzYWakBkJSGeRlM84JBUuSQF1Ki+lI7BBUC7s=-----END PKCS7-----">
<input type="image" src="//www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="//www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
<div id="new">
<span><span id="new-text">NEW</span> Check out Alex's new game, <a href="https://app.wordbots.io" target="_blank">Wordbots</a>!</span>
</div>
</div>
<div id="jquery_bgPlayer" class="jp-jplayer"></div>
<div id="jquery_soundPlayer" class="jp-jplayer"></div>
<!-- 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());
gtag('config', 'G-CNGKWCR3CM');
</script>
<iframe id="user_code" style="display:none;" />
</body>
</html>