Skip to content

Commit

Permalink
Add timeout to tool info tooltips in kiosk and status dashboard. (#251)
Browse files Browse the repository at this point in the history
* Add timeout to tool info tooltips in kiosk and status dashboard.
Fixes #246.
  • Loading branch information
r-xyz authored Sep 6, 2024
1 parent 12dc43d commit 4a84b25
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NEMO/apps/kiosk/templates/kiosk/kiosk.html
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,13 @@ <h1 style="color:lightgrey" id="badge_number"></h1>
$(item).data('keyboard').close(false);
})
}

{# Auto hide tooltips on kiosk page after 30 seconds #}
$(document).on('shown.bs.tooltip', function () {
var tooltip = $('.tooltip');
setTimeout(function () {
tooltip.hide();
}, 30000);
});
</script>
</body>
</html>

0 comments on commit 4a84b25

Please sign in to comment.