mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added image to manual, mkv video handling, image onerror change to alt
This commit is contained in:
@@ -112,6 +112,7 @@ function appGetFileType (app, wildcard, contentType, pageToRender) {
|
|||||||
|
|
||||||
const fileTypes = [
|
const fileTypes = [
|
||||||
['/*.mp4', 'video/mp4', 'stuff/video'],
|
['/*.mp4', 'video/mp4', 'stuff/video'],
|
||||||
|
['/*.mkv', 'audio/x-matroska', 'stuff/video'],
|
||||||
['/*.mp3', 'audio/mpeg', 'stuff/audio'],
|
['/*.mp3', 'audio/mpeg', 'stuff/audio'],
|
||||||
['/*.pdf', 'application/pdf'],
|
['/*.pdf', 'application/pdf'],
|
||||||
['/*.zip', 'application/zip']
|
['/*.zip', 'application/zip']
|
||||||
|
Submodule public/moodle-test-userscript updated: fe74436ab1...13de491da0
Submodule utils/question-classes updated: 0cfd9cfda3...100ca7750d
@@ -189,7 +189,11 @@
|
|||||||
<b>4. Mi ez a ... ?</b>
|
<b>4. Mi ez a ... ?</b>
|
||||||
</br>
|
</br>
|
||||||
<img height=40% src="img/imgq.jpg" alt="img"/>
|
<img height=40% src="img/imgq.jpg" alt="img"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<b>5.</b>
|
||||||
|
</br>
|
||||||
|
<img src="img/6.png" alt="img"/>
|
||||||
</li>
|
</li>
|
||||||
</p>
|
</p>
|
||||||
<li>
|
<li>
|
||||||
|
@@ -21,11 +21,11 @@
|
|||||||
<h2>
|
<h2>
|
||||||
<%= fname %>
|
<%= fname %>
|
||||||
</h2>
|
</h2>
|
||||||
<image
|
<img
|
||||||
id="coverArt"
|
id="coverArt"
|
||||||
style="width:auto; max-height: 100%;"
|
style="width:auto; max-height: 100%;"
|
||||||
onerror="this.style.display='none'"
|
|
||||||
src="<%= url + albumArt %>"
|
src="<%= url + albumArt %>"
|
||||||
|
alt=' '
|
||||||
/>
|
/>
|
||||||
<audio id="audioPlayer" controls style="width:100%">
|
<audio id="audioPlayer" controls style="width:100%">
|
||||||
<source src="<%= url %><%= path %>?stream=true" type=<%= contentType %>>
|
<source src="<%= url %><%= path %>?stream=true" type=<%= contentType %>>
|
||||||
|
Reference in New Issue
Block a user