diff options
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/index.html | 16 | ||||
| -rw-r--r-- | webAO/master.js | 30 | ||||
| -rw-r--r-- | webAO/styles/master.css | 255 |
3 files changed, 156 insertions, 145 deletions
diff --git a/webAO/index.html b/webAO/index.html index abf9860..a2c1203 100644 --- a/webAO/index.html +++ b/webAO/index.html @@ -7,9 +7,12 @@ <meta name="description" content=""> <meta name="author" content=""> - <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.aceattorneyonline.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; connect-src 'self' ws:;"> - <meta http-equiv="X-Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.aceattorneyonline.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; connect-src 'self' ws:;"> - <meta http-equiv="X-WebKit-CSP" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.aceattorneyonline.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; connect-src 'self' ws:;"> + <meta http-equiv="Content-Security-Policy" + content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.aceattorneyonline.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; connect-src 'self' ws:;"> + <meta http-equiv="X-Content-Security-Policy" + content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.aceattorneyonline.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; connect-src 'self' ws:;"> + <meta http-equiv="X-WebKit-CSP" + content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.aceattorneyonline.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; connect-src 'self' ws:;"> <meta name="viewport" content="width=700, initial-scale=1"> @@ -58,8 +61,9 @@ <div id="serverlist_container"> <h2>Server List</h2> <ul class="serverlist" id="masterlist"> - <li id="server-1" class="unavailable" onmouseover="setServ(-1)"><p>Localhost</p> - <a class="button" href="client.html?mode=watch&ip=127.0.0.1:50001">Watch</a> + <li id="server-1" class="unavailable" onmouseover="setServ(-1)"> + <p>Localhost</p> + <a class="button" href="client.html?mode=watch&ip=127.0.0.1:50001">Watch</a> <a class="button" href="client.html?mode=join&ip=127.0.0.1:50001">Join</a> </li> </ul> @@ -76,4 +80,4 @@ </div> </body> -</html> +</html>
\ No newline at end of file diff --git a/webAO/master.js b/webAO/master.js index 72ce833..1607fa5 100644 --- a/webAO/master.js +++ b/webAO/master.js @@ -6,7 +6,7 @@ import Fingerprint2 from 'fingerprintjs2'; let masterserver; let hdid; -const options = {fonts: {extendedJsFonts: true, userDefinedFonts: ["Ace Attorney", "8bitoperator", "DINEngschrift"]}, excludes: {userAgent: true, enumerateDevices: true}}; +const options = { fonts: { extendedJsFonts: true, userDefinedFonts: ["Ace Attorney", "8bitoperator", "DINEngschrift"] }, excludes: { userAgent: true, enumerateDevices: true } }; let oldLoading = false; @@ -27,9 +27,9 @@ function unescapeChat(estring) { } if (window.requestIdleCallback) { - requestIdleCallback(function () { - Fingerprint2.get(options, function (components) { - hdid = Fingerprint2.x64hash128(components.reduce((a, b) => `${a.value || a}, ${b.value}`),31); + requestIdleCallback(function () { + Fingerprint2.get(options, function (components) { + hdid = Fingerprint2.x64hash128(components.reduce((a, b) => `${a.value || a}, ${b.value}`), 31); masterserver = new WebSocket("ws://" + MASTERSERVER_IP); masterserver.onopen = (evt) => onOpen(evt); @@ -38,12 +38,12 @@ if (window.requestIdleCallback) { if (/webOS|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|PlayStation|Opera Mini/i.test(navigator.userAgent)) { oldLoading = true; } - }); - }); + }); + }); } else { - setTimeout(function () { - Fingerprint2.get(options, function (components) { - hdid = Fingerprint2.x64hash128(components.reduce((a, b) => `${a.value || a}, ${b.value}`),31); + setTimeout(function () { + Fingerprint2.get(options, function (components) { + hdid = Fingerprint2.x64hash128(components.reduce((a, b) => `${a.value || a}, ${b.value}`), 31); masterserver = new WebSocket("ws://" + MASTERSERVER_IP); masterserver.onopen = (evt) => onOpen(evt); @@ -52,8 +52,8 @@ if (window.requestIdleCallback) { if (/webOS|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|PlayStation|Opera Mini/i.test(navigator.userAgent)) { oldLoading = true; } - }); - }, 500); + }); + }, 500); } export function setServ(ID) { @@ -119,20 +119,20 @@ function checkOnline(serverID, coIP) { onCOMessage(evt); }; - oserv.onerror = function(evt) { + oserv.onerror = function (evt) { onCOError(evt); }; } function onMessage(e) { - const msg = e.data; + const msg = e.data; const header = msg.split("#", 2)[0]; console.log(header); - + if (header === "ALL") { const servers = msg.split("#").slice(1); - for (let i = 0; i < servers.length-1; i++) { + for (let i = 0; i < servers.length - 1; i++) { const serverEntry = servers[i]; const args = serverEntry.split("&"); const asset = args[4] ? `&asset=${args[4]}` : ""; diff --git a/webAO/styles/master.css b/webAO/styles/master.css index 48b14c0..4f6d0ad 100644 --- a/webAO/styles/master.css +++ b/webAO/styles/master.css @@ -6,14 +6,14 @@ background: repeating-linear-gradient(#792c01, #792c01 3px, #9a491c 3px, #9a491c 4px); border: 1px solid #553e30; border-radius: 5px; - box-shadow: 0 0 0 1px #FFFFFF; + box-shadow: 0 0 0 1px #FFFFFF; color: white; text-align: center; - text-shadow: - 0px -1px 0 #612000, - 1px 0px 0 #612000, - -1px 0px 0 #612000, - 0px 1px 0 #612000; + text-shadow: + 0px -1px 0 #612000, + 1px 0px 0 #612000, + -1px 0px 0 #612000, + 0px 1px 0 #612000; padding: 11px; font-family: Times New Roman, sans; font-weight: normal; @@ -28,7 +28,7 @@ height: 200px; width: 200px; border-color: #bdb521; - border-width:11px; + border-width: 11px; padding: 1px; } @@ -97,6 +97,7 @@ text-align: center; cursor: default; } + .serverlist li:hover { background-color: #FFFF6B; border-color: #EFAD21; @@ -125,7 +126,7 @@ padding-top: 10px; border-radius: 0px 5px 5px 0px; width: 50px; - box-shadow: 0 0 0 2px #BBB; + box-shadow: 0 0 0 2px #BBB; } .serverlist .available { @@ -136,28 +137,26 @@ .serverlist .unavailable { background-color: #ff6b6B; border-color: #ad2121; - display: none; + display: none; } .serverlist .button:hover { - box-shadow: 0 0 0 1px #EFAD21; + box-shadow: 0 0 0 1px #EFAD21; } -#content { - -} +#content {} ul.navbar-nav.ml-auto { - display: inline-flex; - list-style-type: none; + display: inline-flex; + list-style-type: none; } -nav.navbar.fixed-top.navbar-expand-lg.navbar-dark.bg-dark.fixed-top{ - background: black; +nav.navbar.fixed-top.navbar-expand-lg.navbar-dark.bg-dark.fixed-top { + background: black; } -body{ - margin: 0px; +body { + margin: 0px; } /*! @@ -167,209 +166,217 @@ body{ */ .carousel-item { - height: 65vh; - min-height: 300px; - background: no-repeat center center scroll; - -webkit-background-size: cover; - -moz-background-size: cover; - -o-background-size: cover; - background-size: cover; + height: 65vh; + min-height: 300px; + background: no-repeat center center scroll; + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; } .portfolio-item { - margin-bottom: 30px; + margin-bottom: 30px; } .navbar { - font-family: 'Poiret One', cursive; - text-transform: uppercase; - font-size:22px; + font-family: 'Poiret One', cursive; + text-transform: uppercase; + font-size: 22px; } .navbar-dark .navbar-nav .nav-link { - margin-right: 25px; - color: white !important; + margin-right: 25px; + color: white !important; } -.navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover { - color: rgba(255, 229, 145, .75)!important; - opacity: 100 !important; +.navbar-dark .navbar-nav .nav-link:focus, +.navbar-dark .navbar-nav .nav-link:hover { + color: rgba(255, 229, 145, .75) !important; + opacity: 100 !important; } body { - background: #2c3d51; - color: white; - font-family: 'Roboto Condensed', sans-serif; + background: #2c3d51; + color: white; + font-family: 'Roboto Condensed', sans-serif; } -.page-heading{ - font-family: 'Oswald', sans-serif; - text-transform: uppercase; - margin-top: 5px; - text-align: center; +.page-heading { + font-family: 'Oswald', sans-serif; + text-transform: uppercase; + margin-top: 5px; + text-align: center; } hr.gold { -border-top: 10px solid #f3b137; -width: 250px; + border-top: 10px solid #f3b137; + width: 250px; } .about { - text-align: center; + text-align: center; } .card-body { -background-color: #473322; -font-family: 'Roboto Condensed', sans-serif; + background-color: #473322; + font-family: 'Roboto Condensed', sans-serif; } .card-header { -background-color: #2f2216; -border-bottom: 1px solid #ffe591; -font-family: 'Roboto Condensed', sans-serif; -border-radius: 0px !important; + background-color: #2f2216; + border-bottom: 1px solid #ffe591; + font-family: 'Roboto Condensed', sans-serif; + border-radius: 0px !important; } .card-header a { - color: #ffe591 !important; + color: #ffe591 !important; } .card { - border: 1px solid #ffe591; - border-radius: 0px !important; + border: 1px solid #ffe591; + border-radius: 0px !important; } @media (max-width:411px) { - .top-bois { - display: none !important; - } + .top-bois { + display: none !important; + } } .top-bois { - display: inline-table; - width: 100%; + display: inline-table; + width: 100%; } .carousel-item { - height: 90vh; - background-size: contain; + height: 90vh; + background-size: contain; } .carousel-inner { - background-color: #2c3d51; + background-color: #2c3d51; } -@media (max-width:980px){ - .carousel-item { - background-size: cover; -} +@media (max-width:980px) { + .carousel-item { + background-size: cover; + } } h1 { - font-family: 'Poiret One', cursive; - text-transform: uppercase; + font-family: 'Poiret One', cursive; + text-transform: uppercase; } a { - color: #ffe591!important; + color: #ffe591 !important; } -@media (max-width:576px){ -.borderbox{ - padding: 0px 20px 0px 20px; -} +@media (max-width:576px) { + .borderbox { + padding: 0px 20px 0px 20px; + } } .inside-carousel { - position:relative; + position: relative; } -.button-carousel, .tagline-carousel { - right: 0; - bottom: 0; - left: 0; - position: absolute; - margin: auto; - text-align: center; +.button-carousel, +.tagline-carousel { + right: 0; + bottom: 0; + left: 0; + position: absolute; + margin: auto; + text-align: center; } .button-carousel { - background-color: #2f2216; - max-width: 200px; - padding: 30px; - border: 2px solid #ffe591; - color: white !important; - border-radius: 15px; + background-color: #2f2216; + max-width: 200px; + padding: 30px; + border: 2px solid #ffe591; + color: white !important; + border-radius: 15px; } -.button-carousel p{ - margin-top: -17px; - font-family: 'Poiret One', cursive; - text-transform: uppercase; - font-size: 24px; +.button-carousel p { + margin-top: -17px; + font-family: 'Poiret One', cursive; + text-transform: uppercase; + font-size: 24px; } .download-button h4 { - font-family: 'Poiret One', cursive; - text-transform: uppercase; - margin-bottom:0px; + font-family: 'Poiret One', cursive; + text-transform: uppercase; + margin-bottom: 0px; } -.button-carousel a, .download-button a { - color: white !important; +.button-carousel a, +.download-button a { + color: white !important; } -.download-button{ - background-color: #2f2216; - max-width: 400px; - padding: 10px; - text-align: center; - border: 2px solid #ffe591; - color: white !important; - border-radius: 15px; - margin: 0 auto; +.download-button { + background-color: #2f2216; + max-width: 400px; + padding: 10px; + text-align: center; + border: 2px solid #ffe591; + color: white !important; + border-radius: 15px; + margin: 0 auto; } .card { - background-color: #2c3d51;; + background-color: #2c3d51; + ; } .download-box strong { - color:#ffe591; + color: #ffe591; } -.download-box a, .download-button a, .links a, .card a { - text-decoration: underline; + +.download-box a, +.download-button a, +.links a, +.card a { + text-decoration: underline; } .acc { - text-decoration: none !important; + text-decoration: none !important; } -a:hover{ - opacity: 0.8; +a:hover { + opacity: 0.8; } .navbar .container { - text-align: center; + text-align: center; } a.nav-link { - text-decoration: none !important; + text-decoration: none !important; } ul.serverlist p { - color: black; + color: black; } a.nav-link { - padding: 8px; + padding: 8px; } -ul.navbar-nav.ml-auto{ - margin-top: 19px; - padding: 0; +ul.navbar-nav.ml-auto { + margin-top: 19px; + padding: 0; } -nav.navbar.fixed-top.navbar-expand-lg.navbar-dark.bg-dark.fixed-top{ - height: 65px; -} +nav.navbar.fixed-top.navbar-expand-lg.navbar-dark.bg-dark.fixed-top { + height: 65px; +}
\ No newline at end of file |
