diff options
author | pdp8 <pdp8@pdp8.info> | 2022-08-24 15:59:27 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2022-08-24 15:59:27 +0200 |
commit | 75fcb829a96307b7123b5e4cc1a15cc7097f5001 (patch) | |
tree | 180802254ac904b5a4955fef9687d2998a496ee0 /html.rb | |
parent | bfb3d38aba8649e4ad4e3ec3d23aa8152621d088 (diff) |
license, css and javascript fixes
Diffstat (limited to 'html.rb')
-rwxr-xr-x | html.rb | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,12 +5,11 @@ SNIPPETS = File.join(File.dirname(__FILE__), "snippets") def nav cat html = "<nav>" - html += "<a href='/about.html'><img src='/pdp8.png' id='logo' alt='pdp8'></a>" + html += "<a id='logo' href='/about.html'><img src='/pdp8.png' alt='pdp8'></a>" ["music", "pictures", "videos", "code", "contact"].each do |c| c == cat ? cl = 'item current' : cl = 'item' html += "<a class='#{cl}' href='/#{c}.html'>#{c}</a>" end - # html += '<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png" /></a>' html += "<a id='menu' href='#' onclick='show_vertical_menu()'>" html += "<div class='fa fa-bars' aria-hidden='true'></div>" html += "</a>" @@ -67,6 +66,7 @@ def music_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 += File.read(File.join(SNIPPETS, "tail.html")) print_html "music", html end @@ -96,6 +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 += File.read(File.join(SNIPPETS, "tail.html")) print_html "videos", html end |