Skip to content

Commit

Permalink
valid html
Browse files Browse the repository at this point in the history
  • Loading branch information
grunenwald authored Jan 13, 2024
1 parent 230d7f1 commit db884c1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions js/generator-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ function theme_none_tree_folder(name, folderTitle, folderContent, titleLevel)

function theme_none_tree_file(name, title, webkitRelativePath, audioFileID)
{
const encUri=encodeURI(webkitRelativePath);
return `
<li class="audio-file" href="${webkitRelativePath}">
<a href="${webkitRelativePath}" class="audio-src" data-id="${audioFileID}" data-title="${title}">${name}</a>
<li class="audio-file">
<a href="${encUri}" class="audio-src" data-id="${audioFileID}" data-title="${title}">${title}</a>
<a href="#" class="cache-audio">Cache</a>
<a href="#" class="download-audio">Download</a>
</li>
Expand Down Expand Up @@ -180,9 +181,10 @@ function theme_materialize_light_tree_folder(name, folderTitle, folderContent, t

function theme_materialize_light_tree_file(name, title, webkitRelativePath, audioFileID)
{
const encUri=encodeURI(webkitRelativePath);
return `
<li class="audio-file" href="${webkitRelativePath}">
<a href="${webkitRelativePath}" class="audio-src" data-id="${audioFileID}" data-title="${title}">${name}</a>
<li class="audio-file">
<a href="${encUri}" class="audio-src" data-id="${audioFileID}" data-title="${title}">${title}</a>
<a href="#" class="cache-audio"><i class="material-icons">cached</i></a>
<a href="#" class="download-audio"><i class="material-icons">file_download</i></a>
</li>
Expand Down Expand Up @@ -294,9 +296,10 @@ function theme_materialize_dark_tree_folder(name, folderTitle, folderContent, ti

function theme_materialize_dark_tree_file(name, title, webkitRelativePath, audioFileID)
{
const encUri=encodeURI(webkitRelativePath);
return `
<li class="audio-file" href="${webkitRelativePath}">
<a href="${webkitRelativePath}" class="audio-src" data-id="${audioFileID}" data-title="${title}">${name}</a>
<li class="audio-file">
<a href="${encUri}" class="audio-src" data-id="${audioFileID}" data-title="${title}">${title}</a>
<a href="#" class="cache-audio"><i class="material-icons">cached</i></a>
<a href="#" class="download-audio"><i class="material-icons">file_download</i></a>
</li>
Expand Down

0 comments on commit db884c1

Please sign in to comment.