Sha256: 7abe9240244d738dc82c1f21f94624ee8855ca01c29a876546f4bc89d5e74ecd
Contents?: true
Size: 846 Bytes
Versions: 21
Compression:
Stored size: 846 Bytes
Contents
/*! Deck JS - deck.blank - v1.0 Copyright (c) 2012 Mike Kellenberger */ /* This module adds the necessary methods and key bindings to blank/unblank the screen by pressing 'b'. */ (function($, deck, undefined) { var $d = $(document); $[deck]('extend', 'activateBlankScreen', function() { $[deck]('getSlide').hide(); }); $[deck]('extend', 'deactivateBlankScreen', function() { $[deck]('getSlide').show(); }); $[deck]('extend', 'blankScreen', function() { $[deck]('getSlide').is(":visible") ? $[deck]('activateBlankScreen') : $[deck]('deactivateBlankScreen'); }); $d.bind('deck.init', function() { // Bind key events $d.unbind('keydown.blank').bind('keydown.blank', function(e) { if (e.which==66) { $[deck]('blankScreen'); e.preventDefault(); } }); }); })(jQuery, 'deck');
Version data entries
21 entries across 21 versions & 1 rubygems