Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

div for actions

Christian Feie226d5f05d5c
diff --git a/client/main.js b/client/main.js
index 0a211fd..c3a0d88 100644
--- a/client/main.js
+++ b/client/main.js
@@ -38,8 +38,10 @@ class VideoElement extends HTMLElement {
</p>
</video>`
: `<img src="${this.video.thumbnail}"/>`}
- <span>${new Date(this.video.publishedAt).toISOString().substring(0, 16)}</span> | <span>${this.video.viewCount}</span> | <span>${this.video.duration || 'N/A'}</span><br/>
- ${this.video.title}
+ <div>
+ <span>${new Date(this.video.publishedAt).toISOString().substring(0, 16)}</span> | <span>${this.video.viewCount}</span> | <span>${this.video.duration || 'N/A'}</span><br/>
+ </div>
+ <h4>${this.video.title}</h4>
<div class="actions">
${this.video.downloaded
? ''