Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
remote_buzzer: Implements rotary button for stand-alone gallery, fixe…
Browse files Browse the repository at this point in the history
…s crash
  • Loading branch information
jacques42 authored and andi34 committed Jun 18, 2021
1 parent c4ddc23 commit 94ba870
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="vendor/PhotoSwipe/dist/photoswipe.min.js"></script>
<script type="text/javascript" src="vendor/PhotoSwipe/dist/photoswipe-ui-default.min.js"></script>
<script type="text/javascript" src="resources/js/remotebuzzer_client.js"></script>
<script type="text/javascript" src="resources/js/photoinit.js"></script>
<script type="text/javascript" src="resources/js/theme.js"></script>
<script type="text/javascript" src="resources/js/core.js"></script>
Expand All @@ -105,5 +106,7 @@
<?php endif; ?>
<script src="node_modules/@andreasremdt/simple-translator/dist/umd/translator.min.js"></script>
<script type="text/javascript" src="resources/js/i18n.js"></script>

<?php require_once('lib/services_start.php'); ?>
</body>
</html>
2 changes: 1 addition & 1 deletion src/js/gallery.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* globals photoBooth */
$(function () {
const reloadElement = $('<a class="gallery__reload">');
const reloadElement = $('<a class="gallery__reload rotaryfocus">');
reloadElement.append('<i class="fa fa-refresh"></i>');
reloadElement.attr('href', '#');
reloadElement.on('click', () => photoBooth.reloadPage());
Expand Down
3 changes: 2 additions & 1 deletion src/sass/classic_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ hr.small {
.gallery__img:active > img,
.gallery__img:focus > img,
.gallery__img:hover > img,
.gallery__img.focused > img {
.gallery__img.focused > img,
.rotaryfocus.focused {
opacity: 0.6;
}

Expand Down

0 comments on commit 94ba870

Please sign in to comment.