margin-right: 1em;
}
+ #itemList div {
+ background-color: #A7BDC7;
+ padding: 1em;
+ margin: 0.5em;
+ }
+
+ #queueList div {
+ background-color: #A7BDC7;
+ padding: 1em;
+ margin: 0.5em;
+ text-align: left;
+ }
</style>
</head>
<td class="item" id="nextVid">Some Other File</td>
</tr>
</tbody></table>
+ <div style="width: 100%; text-align: center"><h2>Queued Videos</h2></div>
+
</section>
<section class="grow">
- <div style="width: 100%; text-align: center"><h2>Queued Videos</h2></div>
<div id="queueList" style="width: 100%; text-align: center;">The queue is currently empty</div>
</section>
refreshItems();
};
-
-
const refreshQueue = ()=>{
if (queue.length > 0) {
queueList.innerHTML = "";
itemList.innerText = "";
for (const item in dir) {
const el = document.createElement("div");
- const link = document.createElement("a");
- link.innerText = item;
- link.href = '#';
+ el.innerText = item;
if ('path' in dir[item]) {
- link.onclick = ()=>{ self.enqueue(dir[item].path); };
+ el.onclick = ()=>{ self.enqueue(dir[item].path); };
} else {
- link.onclick = ()=>{ linkDown(item); };
+ el.onclick = ()=>{ linkDown(item); };
}
- el.appendChild(link);
itemList.appendChild(el);
+
+
+
+// const link = document.createElement("a");
+// link.innerText = item;
+// link.href = '#';
+// if ('path' in dir[item]) {
+// link.onclick = ()=>{ self.enqueue(dir[item].path); };
+// } else {
+// link.onclick = ()=>{ linkDown(item); };
+// }
+// el.appendChild(link);
+// itemList.appendChild(el);
}
};