Moving javascript disabled warning to top.

This commit is contained in:
Dessalines 2020-09-14 10:26:24 -05:00
parent 9e466ca75b
commit c10d2f4a76
3 changed files with 6 additions and 7 deletions

View File

@ -99,9 +99,9 @@ server.get('/*', async (req, res) => {
<body ${helmet.bodyAttributes.toString()}>
<noscript>
<nav class="navbar fixed-bottom navbar-light bg-light">
Javascript is disabled. Actions will not work.
</nav>
<div class="alert alert-danger rounded-0" role="alert">
Javascript is disabled. Actions will not work.
</div>
</noscript>
<div id='root'>${root}</div>

View File

@ -1,7 +1,6 @@
// import Cookies from 'js-cookie';
import IsomorphicCookie from 'isomorphic-cookie';
import { User, LoginResponse } from 'lemmy-js-client';
import { setTheme } from '../utils';
import jwt_decode from 'jwt-decode';
import { Subject, BehaviorSubject } from 'rxjs';

View File

@ -1054,9 +1054,9 @@ function hsl(num: number) {
return `hsla(${num}, 35%, 50%, 1)`;
}
function randomHsl() {
return `hsla(${Math.random() * 360}, 100%, 50%, 1)`;
}
// function randomHsl() {
// return `hsla(${Math.random() * 360}, 100%, 50%, 1)`;
// }
export function previewLines(
text: string,