All cybrespace changes through 5/28

This commit is contained in:
Chronister
2017-05-29 00:09:12 +00:00
committed by beatrix-bitrot
parent 382572c213
commit 65528fc54e
27 changed files with 132 additions and 82 deletions

View File

@@ -8,8 +8,8 @@
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #282c37;
color: #9baec8;
background: #181818 url("/background-cybre.png");
color: #1ea21e;
text-align: center;
margin: 0;
padding: 20px;
@@ -33,7 +33,7 @@
<body>
<div class="dialog">
<img src="/oops.png" alt="Mastodon" />
<img src="/logo-cybre-glitch.gif" alt="Cybrespace" />
<div>
<h1>We're sorry, but something went wrong.</h1>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 37 KiB

BIN
public/background-cybre.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

View File

@@ -3,7 +3,7 @@
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#2b5797</TileColor>
<TileColor>#1ea21e</TileColor>
</tile>
</msapplication>
</browserconfig>

22
public/clock.js Normal file
View File

@@ -0,0 +1,22 @@
document.addEventListener("DOMContentLoaded", function(event) {
updateClock();
setInterval(updateClock, 1000);
});
function updateClock() {
var clock = document.querySelector(".closed-registrations-message .clock");
var now = new Date();
var open = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate());
var ts = open.setUTCHours(19);
if (open - now < 0) {
open = new Date(ts + 24*60*60*1000);
}
var until = open - now;
var ms = until % 1000;
var s = Math.floor((until / 1000)) % 60;
var m = Math.floor((until / 1000 / 60)) % 60;
var h = Math.floor((until / 1000 / 60 / 60));
if (m < 10) m = "0" + m;
if (s < 10) s = "0" + s;
clock.innerHTML = h + ":" + m + ":" + s;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 818 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 27 KiB