Skip to content

Commit c5a59c2

Browse files
more noscript
1 parent d632129 commit c5a59c2

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/documentation/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ HTML = HTML
230230
.replace('<div class="search"></div>', `<div class="${cssclass.search}"></div>`)
231231
.replace(' id="searchbar" disabled>', ` id="${cssid.searchbar}" disabled>`)
232232
.replace('<filter id="glass"', `<filter id="${cssid.glass}"`)
233-
.replace('<span id="search">', `<span id="${cssid.search}">`);
233+
.replace('<span id="search">', `<span id="${cssid.search}">`)
234+
.replace('var(--cb)', `var(--${cssvar.cb})`)
235+
.replace('var(--ct)', `var(--${cssvar.ct})`);
234236
const jstrimmedstrvarbasestr = _just.number.convertbasedigits.replace(/[0-9\/+]/g, '');
235237
const jstrimmedstrvar = _just.number.convertbase(Math.floor(Math.random()*1000).toString(10), 10, jstrimmedstrvarbasestr.length, jstrimmedstrvarbasestr+'0123456789+/')
236238
JS = JS.replaceAll('trimmedStr', jstrimmedstrvar)

src/documentation/templates/page.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,26 @@
9494
<button id="a" title="Switch to Dynamic Theme" type="button">A</button>
9595
</div>
9696
<span>REPLACE_FOOTER</span>
97+
<noscript>
98+
<style>
99+
noscript {
100+
position: fixed;
101+
}
102+
noscript:before {
103+
content: 'Please enable JavaScript in your browser settings.';
104+
position: fixed;
105+
left: 0px;
106+
translate: 0px 62px;
107+
font-weight: bolder;
108+
font-size: 2em;
109+
width: 100%;
110+
text-align: center;
111+
height: 100%;
112+
background-color: var(--cb);
113+
outline: 20px solid var(--ct);
114+
}
115+
</style>
116+
</noscript>
97117
</footer>
98118
</main>
99119
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" style="position:absolute;overflow:hidden;">

0 commit comments

Comments
 (0)