Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

noscript #155

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/_includes/partials/noscript.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<noscript>
<div class="popup popup--forced">
<span>We're sorry but MeOS doesn't work properly without JavaScript enabled. Please enable it to continue.</span>
</div>
<style>
.popup {
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 80vw;
transform: translate(-50%, -50%);
border: 1px solid gray;
border-radius: 16px;
color: black;
background-color: lightgray;
padding: 1rem;
}

.popup span {
font-size: 2rem;
font-weight: bold;
}

iframe {
display: none;
}
</style>
</noscript>
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
<script src="/js/state/taskbar.js" type="module" defer></script>
</head>
<body>
{% include "partials/noscript.njk" %}

<!-- MENUBAR -->
<div class="menubar menubar--floating">
<div class="menubar__left"></div>
Expand Down
Loading