This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
Simple popup jQuery widget | |
### | |
$.fn.popup = do -> | |
popups = [] | |
# One time binding to document of the handler that listens for clicks | |
# on [data-popup-trigger] elements and outside popup elements | |
do ( -> | |
# Close popups on outside click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createSlideNumbering = function (skipFirstN) { | |
var num = 0, | |
slides = $('.slides article'), | |
slidesNum = slides.length; | |
slides.each(function () { | |
var $this = $(this); | |
num += 1; | |
if (num <= skipFirstN) | |
return; | |
if ( $this.hasClass('nonumber') ) { |