mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-21 19:41:33 +00:00
* add scroll-to-top and scroll class toggle with vanilla JS * add language detection * add i18n * Fix bug: there was no class hidden in CSS. Notice was hidden by hide(). Now HTML hidden attribute is used to hide notice using CSS. This improves A11y. * fix flashing of i18n notice and improve a11y * add menu highlighting on scroll * ♻️ remove jquery * defer app.js Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com> * remove DOMContentLoaded and fix root margin to 25% --------- Co-authored-by: bjohansebas <103585995+bjohansebas@users.noreply.github.com>
30 lines
534 B
HTML
30 lines
534 B
HTML
<!DOCTYPE html>
|
|
<html class="light-mode" lang="{{ page.lang }}">
|
|
|
|
{% include head.html %}
|
|
|
|
{% if page.lang == 'en' %}
|
|
<body class="en-doc">
|
|
{% else %}
|
|
<body class="non-en-doc">
|
|
{% endif %}
|
|
|
|
{% include header.html %}
|
|
|
|
<div id="overlay"></div>
|
|
|
|
{% if page.lang != 'en' %}
|
|
<div id="i18n-notice-box" class="doc-notice" hidden>
|
|
{% include i18n-notice.html %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<main class="home">
|
|
{{ content }}
|
|
</main>
|
|
|
|
{% include footer.html %}
|
|
</body>
|
|
|
|
</html>
|