generator-zf5
Version:
Yeoman generator for Zurb Foundation 5
25 lines (22 loc) • 606 B
JavaScript
var app = (function(document, $) {
var docElem = document.documentElement,
_userAgentInit = function() {
docElem.setAttribute('data-useragent', navigator.userAgent);
},
_init = function() {
$(document).foundation();
// needed to use joyride
// doc: http://foundation.zurb.com/docs/components/joyride.html
$(document).on('click', '#start-jr', function () {
$(document).foundation('joyride', 'start');
});
_userAgentInit();
};
return {
init: _init
};
})(document, jQuery);
(function() {
app.init();
})();
;