tab > space
This commit is contained in:
parent
d2e45ccbc9
commit
fea9e04e8b
1 changed files with 34 additions and 34 deletions
|
|
@ -669,44 +669,44 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
$element.append(
|
$element.append(
|
||||||
` <a href="/${item.id}/info">${type}</a>`
|
` <a href="/${item.id}/info">${type}</a>`
|
||||||
)
|
)
|
||||||
if (type == 'source') {
|
if (type == 'source') {
|
||||||
source = item.id
|
source = item.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$element.append(`[<a href="/grid/title/title=${pandora.escapeQueryValue(title)}">all</a>]`)
|
$element.append(`[<a href="/grid/title/title=${pandora.escapeQueryValue(title)}">all</a>]`)
|
||||||
pandora.createLinks($element)
|
pandora.createLinks($element)
|
||||||
if (data.type?.join('').includes('ai:') && source) {
|
if (data.type?.join('').includes('ai:') && source) {
|
||||||
const preview = $text[0].querySelector('.ai-preview')
|
const preview = $text[0].querySelector('.ai-preview')
|
||||||
const src_ai = '480p.mp4'
|
const src_ai = '480p.mp4'
|
||||||
const src = `/${source}/480p.mp4`
|
const src = `/${source}/480p.mp4`
|
||||||
preview.innerHTML = `
|
preview.innerHTML = `
|
||||||
<video src="${src}" controls loop></video>
|
<video src="${src}" controls loop></video>
|
||||||
<video src="${src_ai}" loop></video>
|
<video src="${src_ai}" loop></video>
|
||||||
<style>
|
<style>
|
||||||
.ai-preview video {
|
.ai-preview video {
|
||||||
width: 33%;
|
width: 33%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
`
|
`
|
||||||
preview.querySelectorAll('video').forEach(video => {
|
preview.querySelectorAll('video').forEach(video => {
|
||||||
video.addEventListener('play', event => {
|
video.addEventListener('play', event => {
|
||||||
preview.querySelectorAll('video').forEach(v => {
|
preview.querySelectorAll('video').forEach(v => {
|
||||||
if (v != video) {
|
if (v != video) {
|
||||||
v.currentTime = video.currentTime
|
v.currentTime = video.currentTime
|
||||||
v.play()
|
v.play()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
video.addEventListener('pause', event => {
|
video.addEventListener('pause', event => {
|
||||||
preview.querySelectorAll('video').forEach(v => {
|
preview.querySelectorAll('video').forEach(v => {
|
||||||
if (v != video) {
|
if (v != video) {
|
||||||
v.pause()
|
v.pause()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue