Created
December 20, 2013 10:19
-
-
Save mrfyda/8052915 to your computer and use it in GitHub Desktop.
Integrate Fancybox(http://fancyapps.com/fancybox/) with PACE(http://github.hubspot.com/pace/docs/welcome/)
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
(function(window, document, $) { | |
var FANCYBOX_OVERLAY = ".fancybox-overlay"; | |
$(document).ready(function () { | |
var paceLoading = { | |
hideLoading: function() { | |
Pace.stop(); | |
$(FANCYBOX_OVERLAY).show(); | |
}, | |
showLoading: function() { | |
Pace.start(); | |
$(FANCYBOX_OVERLAY).hide(); | |
} | |
}; | |
$.extend($.fancybox, paceLoading); | |
}); | |
})(window, document, jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment