show filter by default, minor ' in song name fix
This commit is contained in:
1
build.ts
1
build.ts
@@ -174,6 +174,7 @@ builder.serve_template(renderer, "/player", "player", {
|
||||
{
|
||||
name: song.slice(`${l.name}/`.length),
|
||||
//I don't think " can be in file names... but just in case
|
||||
//might need to do " for the html and \" for the js?
|
||||
sanitized_name: song.slice(`${l.name}/`.length).replaceAll("\"", "\\\""),
|
||||
favourite: l.favourites.chapters.includes(song.slice(`${l.name}/`.length)),
|
||||
subbed: subbed_songs.includes(song),
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<input type="checkbox" id="show-title"/>
|
||||
<label for="show-title">Show Current Track in Page Title</label>
|
||||
<br>
|
||||
<input type="checkbox" id="show-filters"/>
|
||||
<input type="checkbox" id="show-filters" checked/>
|
||||
<label for="show-filters">Show Filters</label>
|
||||
<div id="filters-container" style="display: none;">
|
||||
<input type="button" value="Select All" onclick="filter_select_all()"/>
|
||||
@@ -106,7 +106,7 @@
|
||||
<div id="[[ artist.sanitized_name ]]-song-filter" class="artist-song-filter">
|
||||
[[ for:artist.songs:song ]]
|
||||
<input type="checkbox" id="[[ artist.sanitized_name ]]-[[ song.sanitized_name ]]-checkbox" onchange="update_playable_songs()"/>
|
||||
<label for="[[ artist.sanitized_name ]]-[[ song.sanitized_name ]]-checkbox">[[ if:song.favourite ]]★[[ endif ]][[ song.name ]][[ if:song.subbed ]] (subbed)[[ endif ]] <button class="add-to-queue-btns" onclick="add_to_queue('[[ artist.sanitized_name ]]/[[ song.sanitized_name ]]')">Add to Queue</button></label>
|
||||
<label for="[[ artist.sanitized_name ]]-[[ song.sanitized_name ]]-checkbox">[[ if:song.favourite ]]★[[ endif ]][[ song.name ]][[ if:song.subbed ]] (subbed)[[ endif ]] <button class="add-to-queue-btns" onclick="add_to_queue("[[ artist.sanitized_name ]]/[[ song.sanitized_name ]]")">Add to Queue</button></label>
|
||||
[[ endfor ]]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user