Skip to content

Commit

Permalink
Add a hidden shortcut for admin settings
Browse files Browse the repository at this point in the history
When running app in Kiosk mode it can be difficult to get
to the Admin/settings page.

Issue/Feature request:
#68 (comment)
  • Loading branch information
vdubuk authored and andi34 committed Sep 19, 2019
1 parent 5b8e123 commit ab6cc50
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@
<div id="print_mesg_text"><span data-l10n="printing"></span></div>
</div>

<div id="adminsettings" >
<div style="position:absolute; bottom:0; right:0;"><img src="/resources/img/spacer.png" alt="adminsettings" ondblclick="adminsettings()"></div>
</div>

<script type="text/javascript" src="/resources/js/adminshortcut.js"></script>
<script type="text/javascript" src="/resources/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="/resources/js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="/resources/js/TweenLite.min.js"></script>
Expand Down
Binary file added resources/img/spacer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions resources/js/adminshortcut.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var admincount = 0;

function countreset() {
admincount = 0;
}

function adminsettings() {
if (admincount == 3) {
window.location.href="admin/index.php";
}
console.log(admincount);
admincount++;
setTimeout(countreset, 10000);
}

0 comments on commit ab6cc50

Please sign in to comment.