mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
Improve
This commit is contained in:
parent
e5417f0aa2
commit
1517778ed7
@ -559,7 +559,14 @@ page.displayThumbnail = function (id) {
|
||||
|
||||
if (isimage) {
|
||||
thumb.src = file.original
|
||||
thumb.onload = function () { button.style.display = 'none' }
|
||||
thumb.onload = function () {
|
||||
button.style.display = 'none'
|
||||
document.body.querySelector('.swal-overlay .swal-modal:not(.is-expanded)').classList.add('is-expanded')
|
||||
}
|
||||
thumb.onerror = function () {
|
||||
button.className = 'button is-danger'
|
||||
button.innerHTML = 'Unable to load original'
|
||||
}
|
||||
} else {
|
||||
thumb.style.display = 'none'
|
||||
const video = document.createElement('video')
|
||||
@ -567,11 +574,10 @@ page.displayThumbnail = function (id) {
|
||||
video.controls = true
|
||||
video.src = file.original
|
||||
thumb.insertAdjacentElement('afterend', video)
|
||||
button.style.display = 'none'
|
||||
}
|
||||
|
||||
// Resize modal
|
||||
document.body.querySelector('.swal-overlay .swal-modal:not(.is-expanded)').classList.add('is-expanded')
|
||||
button.style.display = 'none'
|
||||
document.body.querySelector('.swal-overlay .swal-modal:not(.is-expanded)').classList.add('is-expanded')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
v2: Images and config files (manifest.json, browserconfig.xml, etc).
|
||||
v3: CSS and JS files (libs such as bulma, lazyload, etc).
|
||||
#}
|
||||
{% set v1 = "pOlCxn3xNn" %}
|
||||
{% set v1 = "ys4BsdBoB8" %}
|
||||
{% set v2 = "Ii3JYKIhb0" %}
|
||||
{% set v3 = "6MfcbDZldp" %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user