diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-11-20 17:46:20 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-11-20 17:46:20 +0000 |
| commit | f4a3e9bf53c657c3e6b9330eb6ad644094f75e61 (patch) | |
| tree | 4cde00e1c6116281a79a2f5b0f3746a9bfc367a5 /app/static | |
Initial commit
Diffstat (limited to 'app/static')
| -rw-r--r-- | app/static/css/globalstyles.css | 76 | ||||
| -rw-r--r-- | app/static/scripts/purge.js | 15 |
2 files changed, 91 insertions, 0 deletions
diff --git a/app/static/css/globalstyles.css b/app/static/css/globalstyles.css new file mode 100644 index 0000000..3d030ab --- /dev/null +++ b/app/static/css/globalstyles.css @@ -0,0 +1,76 @@ +@import url('https://fonts.googleapis.com/css2?family=Cousine:ital,wght@0,400;0,700;1,400;1,700&display=swap'); + +html, body { + border: 0; + margin: 0; + background-color: #000; + color: #eee; + font-family: 'Cousine', monospace, sans-serif; + line-height: 1.3; +} + +#navbar { + background-color: #222; + width: 100%; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: stretch; + gap: 10px; +} + +.navbar-element { + background-color: #222; + display: flex; + height: 30px; + text-align: center; + line-height: 30px; + padding: 5px; +} + +.navbar-element:hover { + background-color: #888; + transition: 0.2s; + cursor: pointer; +} + +.navbar-element > a { + color: #fff; + text-decoration: none; +} + +.navbar-element > .highlight { + color: #ffff87; +} + +#main-container { + max-width: 1100px; + margin: 0 auto; +} + +#content { + max-width: calc(1100px - 10px); + margin: 0 auto; +} + +a { + color: #ffff87; + text-decoration: underline; +} + +.highlight { + color: #ffff87; +} + +.footer { + font-size: 10px; +} + +.redlink { + color: #ff4136; +} + +.box { + border: solid 1px #fff; + padding: 10px; +}
\ No newline at end of file diff --git a/app/static/scripts/purge.js b/app/static/scripts/purge.js new file mode 100644 index 0000000..5ee34f0 --- /dev/null +++ b/app/static/scripts/purge.js @@ -0,0 +1,15 @@ +$(() => { + $('#confirm').click(() => { + let page = $('#confirm').data('page'); + $.ajax({ + type: 'GET', + url: `/special/purge/${page}/confirm`, + success: () => { + $('#response').html('<div class=\'box\'>Successfully purged page.</div>'); + }, + error: () => { + $('#response').html('<div class=\'box\'>Could not purge page. Try again later.</div>'); + } + }); + }); +}); |
