aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/client.html40
-rw-r--r--webAO/styles/client.css6
2 files changed, 34 insertions, 12 deletions
diff --git a/public/client.html b/public/client.html
index 28a0bf1..34c2aa1 100644
--- a/public/client.html
+++ b/public/client.html
@@ -20,13 +20,14 @@
<meta property="twitter:url" content="http://web.aceattorneyonline.com/">
<meta property="twitter:image" content="https://repository-images.githubusercontent.com/78860508/89fcba80-aafd-11e9-80db-c5b10c01aba9">
- <meta http-equiv="Content-Security-Policy" content="script-src-elem 'self' 'unsafe-inline' https://ajax.googleapis.com;
- style-src-elem 'self' 'unsafe-inline' https://golden-layout.com;
- script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ajax.googleapis.com;
- style-src 'self' 'unsafe-inline' https://golden-layout.com;
- img-src 'self' data: file: *;
- connect-src 'self' ws: file: *;
- media-src 'self' file: *;">
+ <meta http-equiv="Content-Security-Policy" content="
+ script-src-elem 'self' 'unsafe-inline' https://ajax.googleapis.com https://accounts.google.com/gsi/client;
+ style-src-elem 'self' 'unsafe-inline' https://golden-layout.com https://accounts.google.com/gsi/style;
+ script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ajax.googleapis.com https://accounts.google.com/gsi/client;
+ style-src 'self' 'unsafe-inline' https://golden-layout.com https://accounts.google.com/gsi/style;
+ img-src 'self' data: file: *;
+ connect-src 'self' ws: file: *;
+ media-src 'self' file: *;">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="logo-new.png"/>
@@ -37,10 +38,8 @@
<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="lib/jdataview.min.js"></script>
+ <script src="https://accounts.google.com/gsi/client" async defer></script>
+ <script src="lib/jdataview.min.js" async defer></script>
</head>
<body>
@@ -50,8 +49,27 @@
<p>Having trouble? <a href="https://discord.gg/9rYQVVQ">Join us on Discord</a></p>
<button class="client_reconnect" onclick="ReconnectButton()">Reconnect</button>
</div>
+ </div>
<div id="client_charselect">
<p>Choose your character</p>
+ <div id="client_secondfactor">
+ <p>You need to authorize to continue</p>
+ <div id="g_id_onload"
+ data-client_id="107239014890-eo1vg90jdn2l7fgudsp9mdk8c1nraq0g"
+ data-context="use"
+ data-ux_mode="redirect"
+ data-login_uri="https://webtest.aceattorneyonline.com/index.html"
+ data-auto_prompt="false">
+ </div>
+
+ <div class="g_id_signin"
+ data-type="standard"
+ data-shape="rectangular"
+ data-theme="outline"
+ data-text="continue_with"
+ data-size="large"
+ data-logo_alignment="left">
+ </div>
<button onclick="pickChar(-1)">Or spectate</button>
<br><br>
<input id="client_charactersearch" placeholder="Search" oninput="chartable_filter(event)"></input>
diff --git a/webAO/styles/client.css b/webAO/styles/client.css
index 4e0712e..3bcc493 100644
--- a/webAO/styles/client.css
+++ b/webAO/styles/client.css
@@ -68,6 +68,10 @@
animation: error_blink 3s ease-in-out infinite;
}
+#client_secondfactor {
+ display: block;
+}
+
#client_loading {
display: block;
flex-direction: column;
@@ -703,4 +707,4 @@
.hrtext:after {
left: 0.5em;
margin-right: -50%;
-} \ No newline at end of file
+}