aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.html
blob: 0833b431b9c64922a7c06e983c7b3e55b1de2d24 (plain)
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
<!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="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" />
    <script src="ui.b.js"></script>
    <script src="client.js"></script>
</head>

<template id="client_wrapper">
    <meta name="frame-title" lang="en" content="Game">
    <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);">
        <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>
        <input type="checkbox" id="sendsfx" name="sendsfx" value="sendsfx">
        <label for="sendsfx">SFX</label>
    </div>
</template>

<template id="client_settings">
    <meta name="frame-title" lang="en" content="Settings">
    <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="log">
    <meta name="frame-title" lang="en" content="Log">
    <div id="client_log"></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(&quot;misc/zdoh.png&quot;); 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(&quot;misc/zdoh.png&quot;); 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>

<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>CONNECTION ERROR</p><br>
            <button onclick="ReconnectButton()">RECONNECT</button>
    </div>
</body>
</html>