This commit is contained in:
Mike Nolan 2022-01-03 17:06:18 -06:00
parent 17f010c5e5
commit ed37305c6a
2 changed files with 15 additions and 34 deletions

View File

@ -13,32 +13,19 @@
<nav class="navbar navbar-expand-lg bg-danger navbar-dark"> <nav class="navbar navbar-expand-lg bg-danger navbar-dark">
<div class="container"> <div class="container">
<a href="#" data-target="home" class="navbar-brand spalnk">Tesses YouTube Downloader</a> <a href="#" data-target="home" class="navbar-brand spalnk">Tesses YouTube Downloader</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navmenu"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navmenu">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div class="collapse navbar-collapse" id="navmenu">
<ul class="navbar-nav ms-auto"> <li class="nav-item"> <div class="collapse navbar-collapse" id="navmenu">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDarkDropdown" aria-controls="navbarNavDarkDropdown" aria-expanded="false" aria-label="Toggle navigation"> <ul class="navbar-nav ms-auto">
<span class="navbar-toggler-icon"></span> <li class="nav-item">
</button> <a href="#" data-target="videos" class="nav-link spalnk">Videos</a>
<div class="collapse navbar-collapse" id="navbarNavDarkDropdown">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDarkDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Media
</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">
<li><a class="dropdown-item spalink" href="#" data-target="videos">Videos</a></li>
<li><a class="dropdown-item" href="my_videos.html">My Videos <span class="badge badge-secondary">42</span></a></li>
<li><a class="dropdown-item spalink" href="#" data-target="playlists">YouTube Playlists</a></li>
<li><a class="dropdown-item spalink" href="#" data-target="personalplaylists">Personal Playlists</a></li>
</ul>
</li> </li>
</ul> <li class="nav-item">
</div> <a href="#" data-target="playlists" class="nav-link spalnk">Playlists</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#" data-target="queue" class="nav-link spalnk">Queue</a> <a href="#" data-target="queue" class="nav-link spalnk">Queue</a>
@ -56,7 +43,9 @@
<li class="nav-item"> <li class="nav-item">
<a href="extensions.html" class="nav-link">Extensions</a> <a href="extensions.html" class="nav-link">Extensions</a>
</li> </li>
<li class="nav-item">
<a href="my_videos.html" class="nav-link">My Videos</a>
</li>
</ul> </ul>
</div> </div>
</div> </div>
@ -188,12 +177,7 @@
<span class="video_author"></span> <span class="video_author"></span>
</div> </div>
<div class="col-1">
<h4>
<a class="video_link_alt" style="text-decoration: none" class="text-dark">&vellip;
</a></h4>
</div>
</div> </div>
<br> <br>
</card> </card>

View File

@ -326,11 +326,8 @@ function add_video(vid_list,item)
var video_link=video_element.querySelector(".video_link"); var video_link=video_element.querySelector(".video_link");
video_link.innerText = title; video_link.innerText = title;
video_link.href="javascript:void"; video_link.href="videoPlayer.html#NotConverted=" + id;
video_link.addEventListener('click',(e)=>{
e.preventDefault();
video_dialog_show(myVid,myTitle);
});
var video_thumbnail=video_element.querySelector(".image"); var video_thumbnail=video_element.querySelector(".image");
if(settings.showThumbnails){ if(settings.showThumbnails){
video_thumbnail.setAttribute("src","api/Storage/File/Thumbnails/168x94/" + id + ".jpg"); video_thumbnail.setAttribute("src","api/Storage/File/Thumbnails/168x94/" + id + ".jpg");