Skip to content

Commit

Permalink
Add noscript messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ashermorgan committed Apr 27, 2024
1 parent 68422e4 commit 7561505
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions songs2slides/static/slides.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ header .icon:active {
:fullscreen header {
display: none;
}

#noscript-message {
max-width: 500px;
margin: auto;
padding: 1rem;
text-align: center;
}
1 change: 1 addition & 0 deletions songs2slides/templates/create-step-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ <h1>Step 3: Create Slideshow</h1>
<label>
<input type="radio" name="output-type" value="html" checked/>
Web View
<noscript>(requires JavaScript)</noscript>
</label>
<label>
<input type="radio" name="output-type" value="pptx"/>
Expand Down
8 changes: 8 additions & 0 deletions songs2slides/templates/slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
</button>
</header>

<noscript>
<p id="noscript-message">
Songs2Slides requires JavaScript to display slideshows in Web View.
Please enable it to continue or go back and download your slideshow as a
PowerPoint instead.
</p>
</noscript>

<div class="reveal">
<div class="slides">
{% for slide in slides %}
Expand Down

0 comments on commit 7561505

Please sign in to comment.