diff options
author | pdp8 <pdp8@pdp8.info> | 2022-08-26 13:54:38 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2022-08-26 13:54:38 +0200 |
commit | 85c6172481beb92b17c89e7c1dfbac4c5b8b3310 (patch) | |
tree | 7355fb9b3fbc60110304d466d758091ff3460a63 /html.rb | |
parent | d684a873fce8ed3e19d514839afbf831162c2ed8 (diff) |
ForkAwesome reintroduced to fix compatibility of media buttons
Diffstat (limited to 'html.rb')
-rwxr-xr-x | html.rb | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -50,13 +50,13 @@ def music_html Dir[File.join(dir, "*mp3")].each do |mp3| mp3 = "/" + mp3.sub(ROOT, '') html += "<tr>" - html += "<td>#{File.basename(mp3, '.mp3')}</td>" html += "<td> <audio controls> <source src='#{mp3}' type='audio/mpeg'> </audio> - </td> - </tr>" + </td>" + html += "<td>#{File.basename(mp3, '.mp3')[3..-1]}</td>" + html += "</tr>" end html += "</table>" bc = "https://pdp8.bandcamp.com/#{title.gsub(' ', '-')}" @@ -96,7 +96,7 @@ def video_html html += "</div>" html += "<hr>" end - html += '<p>© pdp8 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>' + html += '<p> © pdp8 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>' html += File.read(File.join(SNIPPETS, "tail.html")) print_html "videos", html end |