mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
bbox: tap to show/hide buttons
This commit is contained in:
parent
a772b8c3f2
commit
d6ac224c8f
|
@ -534,6 +534,10 @@ window.baguetteBox = (function () {
|
|||
preloadPrev(currentIndex);
|
||||
});
|
||||
|
||||
clmod(ebi('bbox-btns'), 'off');
|
||||
clmod(btnPrev, 'off');
|
||||
clmod(btnNext, 'off');
|
||||
|
||||
updateOffset();
|
||||
overlay.style.display = 'block';
|
||||
// Fade in overlay
|
||||
|
@ -878,6 +882,12 @@ window.baguetteBox = (function () {
|
|||
else
|
||||
timer.rm(rotn);
|
||||
|
||||
el.onclick = function () {
|
||||
clmod(ebi('bbox-btns'), 'off', 't');
|
||||
clmod(btnPrev, 'off', 't');
|
||||
clmod(btnNext, 'off', 't');
|
||||
};
|
||||
|
||||
var prev = QS('.full-image.vis');
|
||||
if (prev)
|
||||
clmod(prev, 'vis');
|
||||
|
|
|
@ -1928,6 +1928,15 @@ html.y #bbox-overlay figcaption a {
|
|||
.bbox-btn {
|
||||
position: fixed;
|
||||
}
|
||||
.bbox-btn,
|
||||
#bbox-btns {
|
||||
opacity: 1;
|
||||
animation: opacity .2s infinite ease-in-out;
|
||||
}
|
||||
.bbox-btn.off,
|
||||
#bbox-btns.off {
|
||||
opacity: 0;
|
||||
}
|
||||
#bbox-overlay button {
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
|
|
Loading…
Reference in a new issue