Sha256: 394e14b90aaf2017875d491caec88890e3b514b97b76bbd716e6bbf07fcbc9ce
Contents?: true
Size: 877 Bytes
Versions: 9
Compression:
Stored size: 877 Bytes
Contents
$(function() { var $d = $(document); // // Default CodeMirror Theme // $.extend(true, $.deck.defaults, { // codemirror : { // theme : this.CODE_HIGHLIGHT_THEME || "night" // }, // selectors: { // codemirroritem: 'pre.highlight > code' // } // }); // Extract Notes $d.bind('deck.init', function() { $.each($.deck('getSlides'), function() { var notes = $(this).find('.notes').map(function() { return $(this).text(); }); $(this).data('notes', notes); }); }); // Show Slide Title $d.bind('deck.change', function(e, from, to) { var slide = $.deck('getSlide', to) var title = slide.data('title') || 'Eggplant'; $('head title').text(title); }); // Incremetal bullets lists $('.slide.incremental').find('li, article').addClass('slide'); // Render slides $.deck('.slide'); });
Version data entries
9 entries across 3 versions & 1 rubygems