Disable notification bar event handling when printing.

This commit is contained in:
David Russell 2017-11-16 10:23:55 +07:00
parent 547f1b827d
commit 5650d25b30
2 changed files with 11 additions and 2 deletions

View File

@ -55,7 +55,7 @@
<script src="@deps.jquery(offline)/jquery.min.js"></script> <script src="@deps.jquery(offline)/jquery.min.js"></script>
@SlideshowReveal(ssm, deps, offline, serverPrinting, webPrinting) @SlideshowReveal(ssm, deps, offline, serverPrinting, webPrinting)
@SlideshowNotifications(ssm) @SlideshowNotifications(ssm, serverPrinting, webPrinting)
</body> </body>
</html> </html>

View File

@ -1,4 +1,5 @@
@(ssm: com.gitpitch.models.SlideshowModel) @(ssm: com.gitpitch.models.SlideshowModel, serverPrinting: Boolean, webPrinting: Boolean)
@if(!(serverPrinting || webPrinting)) {
<script> <script>
function pushNotification(msg, fade) { function pushNotification(msg, fade) {
var footer = document.getElementById('title-footer') var footer = document.getElementById('title-footer')
@ -36,3 +37,11 @@
pushNotification("Code Presenting - Step " + step + " / " + frags, true); pushNotification("Code Presenting - Step " + step + " / " + frags, true);
} }
</script> </script>
} else {
<script>
function pushNotification(msg, fade) {};
function pushHelpNotification() {}
function pushFootnoteNotification() {}
function pushCodePresentingStepNotification(step, frags) {}
</script>
}