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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
<!DOCTYPE html>
<html lang="en"><head>
<title>Attorney Online session</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="client.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
<!--<script src="golden/js/goldenlayout.js"></script>-->
<link type="text/css" rel="stylesheet" href="golden/css/goldenlayout.css" />
<link type="text/css" rel="stylesheet" href="https://golden-layout.com/files/latest/css/goldenlayout-dark-theme.css" />
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script src="backgrounds.min.js"></script>
<script src="evidences.min.js"></script>
<script src="ui.b.js"></script>
<script src="client.b.js"></script>
</head>
<template id="client_wrapper">
<meta name="frame-title" lang="en" content="Game">
<div id="client_background"></div>
<div id="client_gamewindow">
<img id="client_court" alt="Courtroom background" onerror="imgError(this);">
<img id="client_char" alt="Character sprite" onerror="imgError(this);">
<img id="client_bench" alt="Bench overlay">
<img id="client_fg" alt="Various overlay" onerror="imgError(this);">
<img id="client_evi" src="misc/evidence_selector.png" alt="Character Evidence" onerror="imgError(this);">
<img id="client_shout" alt="Effect overlay" src="misc/placeholder.gif" onerror="imgError(this);">
<div id="client_name">
<p>Dolan</p>
</div>
<div id="client_chat">
<p id="client_inner_chat"></p>
</div>
</div>
<input id="client_inputbox" class="long" type="text" onkeypress="onEnter(event)" style="padding-left: 1px; padding-right: 1px;">
<div id="client_emo">
</div>
<br>
<div id="client_buttons">
<img src="misc/holdit.png" id="button_1" alt="Hold it!" class="client_button" onclick="toggleshout(1)">
<img src="misc/objection.png" id="button_2" alt="OBJECTION!" class="client_button" onclick="toggleshout(2)">
<img src="misc/takethat.png" id="button_3" alt="Take That!" class="client_button" onclick="toggleshout(3)">
<br><br>
<label for="textcolor">Text Color:</label>
<select id="textcolor" name="textcolor">
<option value="0">Default</option>
<option value="1">Green</option>
<option value="2">Red</option>
<option value="3">Orange</option>
<option value="4">Blue</option>
<option value="5">Yellow</option>
<option value="6">Margenta</option>
</select>
<label for="sendsfx">SFX</label>
<input type="checkbox" id="sendsfx" name="sendsfx" value="sendsfx">
<br><br>
<label>Flip: </label>
<img src="misc/flip.png" id="button_flip" alt="Flip" class="client_button" onclick="toggleflip()">
<label>Effect: </label>
<img src="misc/flash.png" id="button_effect_1" alt="Flash" class="client_button" onclick="toggleaffect(1)">
<img src="misc/shake.png" id="button_effect_2" alt="Shake" class="client_button" onclick="toggleaffect(2)">
</div>
</template>
<template id="client_settings">
<meta name="frame-title" lang="en" content="Settings">
<br><br>
<label for="client_encoding"> Client Side Chat Encoding:</label>
<select id="client_encoding" name="client_encoding">
<option value="none">None</option>
<option value="unicode">Unicode</option>
<option value="utf16">UTF-16</option>
</select>
<br><br>
<label for="client_decoding"> Client Side Chat Decoding:</label>
<select id="client_decoding" name="client_decoding">
<option value="none">None</option>
<option value="unicode">Unicode</option>
<option value="utf16">UTF-16</option>
</select>
<br><br>
<label for="bg_command"> Change background command:</label>
<input id="bg_command" name="bg_command" class="short" type="text" value="bg $1">
<br><br>
<div class="slider">Music<input id="client_mvolume" class="long" type="range" min="0" max="100" value="80" onchange="changeMusicVolume()"></div>
<div class="slider">SFX <input id="client_svolume" class="long" type="range" min="0" max="100" value="70" onchange="changeSFXVolume()"></div>
<div class="slider">Blip <input id="client_bvolume" class="long" type="range" min="0" max="100" value="60" onchange="changeBlipVolume()"></div>
<input id="change_character" type="button" onclick="changeCharacter()" value="Change character">
</template>
<template id="mainmenu">
<meta name="frame-title" lang="en" content="Log">
<div id="client_menu">
<div class="hrtext">↓ Main Menu ↓</div>
<span id="menu_1" onclick="togglemenu(1)" class="menu_icon active"><i class="material-icons em-3">work</i><div>Evidence</div></span>
<span id="menu_2" onclick="togglemenu(2)" class="menu_icon"><i class="material-icons em-3">room</i><div>Location</div></span>
<span id="menu_3" onclick="togglemenu(3)" class="menu_icon"><i class="material-icons em-3">gavel</i><div>Action</div></span>
<span id="menu_4" onclick="togglemenu(4)" class="menu_icon"><i class="material-icons em-3">description</i><div>Guide</div></span>
<div class="hrtext">↓ <span id="content_name">Content</span> ↓</div>
<span class="menu_content active" id="content_1">
<meta name="frame-title" lang="en" content="Evidence">
<fieldset style="text-align: left">
<legend>Information</legend>
<span>
<img id="evi_icon" src="misc/evidence_selector.png" alt="Evidence Icon" onerror="imgError(this);">
</span>
<span style="display:inline-block">
<label for="evi_filename">Icon:</label>
<select id="evi_select" name="evi_select" onchange="updateEvidenceIcon()"></select>
<input id="evi_filename" name="evi_filename" class="short" type="text">
<br><br>
<label for="evi_name">Name:</label>
<input id="evi_name" name="evi_name" class="short" type="text">
<br><br>
<label for="evi_desc">Description:</label>
<textarea id="evi_desc" name="evi_desc" rows="2" cols="20"></textarea>
</span>
<br><br>
<span style="display:block;text-align:center">
<img src="misc/evidence_add.png" id="evi_add" alt="Add Evidence" class="client_button hover_button" onclick="addevidence()">
<img src="misc/evidence_edit.png" id="evi_edit" alt="Edit Evidence" class="client_button hover_button inactive" onclick="editevidence()">
<img src="misc/evidence_cancel.png" id="evi_cancel" alt="Cancel Evidence" class="client_button hover_button inactive" onclick="cancelevidence()">
<img src="misc/evidence_remove.png" id="evi_del" alt="Remove Evidence" class="client_button hover_button inactive" onclick="delevidence()">
</span>
</fieldset>
<br>
<div id="evidences"></div>
<br>
<img src="misc/present.png" id="button_present" alt="Present" class="client_button" onclick="togglepresent()">
</span>
<span class="menu_content" id="content_2">
<div id="areas"></div><br>
<fieldset style="text-align: left">
<legend>Current Area Background</legend>
<span>
<img id="bg_preview" src="misc/placeholder.gif" alt="Background Preview" onerror="imgError(this);">
</span>
<span style="display:inline-block">
<label for="bg_filename">Background:</label><br>
<select id="bg_select" name="bg_select" onchange="updateBackgroundPreview()" style="margin-top:10px"></select>
<br>
<input id="bg_filename" name="bg_filename" class="short" type="text" style="margin-top:10px">
<br><br>
<img src="misc/location_change.png" id="bg_change" alt="Change" class="client_button hover_button" onclick="changeBackgroundOOC()">
<span>
</fieldset>
</span>
<span class="menu_content" id="content_3"></span>
<span class="menu_content" id="content_4"></span>
</div>
</template>
<template id="log">
<meta name="frame-title" lang="en" content="Log">
<div id="client_log">
<div class="hrtext">↓ log starts here ↓</div>
</div>
</template>
<template id="misc" style="display: flex; flex-direction: column;">
<meta name="frame-title" lang="en" content="Miscellaneous">
<div id="client_bars">
<span style="background-image: url("misc/zdoh.png"); width: 90px; height: 20px;">
<img class="client_defense" alt="Defense health" id="client_defense_hp" src="misc/advocat.png" style="clip-path: polygon(0px 0px, 90px 0px, 90px 20px, 0px 20px, 0px 0px); clip: rect(0px, 90px, 20px, 0px);">
</span>
<span style="background-image: url("misc/zdoh.png"); width: 90px; height: 20px;" misc="">
<img class="client_prosecutor" alt="Prosecution health" id="client_prosecutor_hp" src="misc/procuror.png" style="clip-path: polygon(0px 0px, 90px 0px, 90px 20px, 0px 20px, 0px 0px); clip: rect(0px, 90px, 20px, 0px);" misc="">
</span>
</div>
</template>
<template id="ooc">
<meta name="frame-title" lang="en" content="Server">
<div style="height: 100%; display: flex; flex-direction: column;">
<textarea id="client_ooclog" style="flex: 1 auto"></textarea>
<input id="client_oocinputbox" class="long" type="text" onkeypress="onOOCEnter(event)">
</div>
</template>
<template id="music">
<meta name="frame-title" lang="en" content="Music">
<select id="client_musiclist" size="5" onclick="musiclist_click(event)" style="width: 100%; height: 100%;">
</select>
</template>
<template id="about">
<meta name="frame-title" lang="en" content="About">
<img id="about-logo" src="images/logo-new.png" alt="Attorney Online logo">
<h1 style="line-height: .3em;">webAO</h1>
<h3>version 2.1.1</h3>
<p>Client created by <a href="https://github.com/stonedDiscord">@stonedDiscord</a> and fixed up by <a href="https://github.com/oldmud0">@oldmud0</a>.</p>
<p>Special thanks to Aleks for reverse engineering the original Delphi client written by FanatSors.</p>
</template>
<body>
<span id="sound"></span>
<div id="here"></div>
<div id="client_loading">
<h1 id="client_loadingtext">Loading</h1>
<button onclick="RetryButton()">RETRY</button>
</div>
<div id="client_charselect">
<button onclick="pickchar(1001)">SPECTATE</button>
<table id="client_chartable"></table>
</div>
<div id="client_error" class="error" style="display: none">
<p>You were disconnected from the server.</p>
<p>Code: <span id="error_id">(none)</span></p>
<button onclick="ReconnectButton()">Reconnect</button>
</div>
</body>
</html>
|