This commit is contained in:
j 2021-11-24 10:03:30 +01:00
commit cad01accc1
4 changed files with 45 additions and 2 deletions

View file

@ -145,16 +145,29 @@ function timeupdate(event) {
function formatInfo(config, player) {
var info = document.createElement('div')
info.classList.add('info')
var folder = document.createElement('a')
folder.href = '..'
folder.innerText = config.folder
var h1 = document.createElement('h1')
h1.appendChild(folder)
var title = document.createElement('span')
title.innerHTML = ': ' + config.title
title.innerHTML = ' - ' + config.title
h1.appendChild(title)
info.appendChild(h1)
var folder = document.createElement('a')
folder.href = '..'
folder.innerText = config.folder
var h1 = document.createElement('h1')
h1.appendChild(folder)
var title = document.createElement('span')
title.innerHTML = ' - ' + config.title
h1.appendChild(title)
var t = document.querySelector('.topnav .item-title')
t.appendChild(h1)
player.appendChild(info)
return info
}