mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Disable notification bar event handling when printing.
This commit is contained in:
parent
547f1b827d
commit
5650d25b30
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user