Convert CofeeScript to JavaScript

Compiled using `coffee -c` with CoffeeScript 1.12.6.
This commit is contained in:
Javi Martín
2019-07-03 00:11:16 +02:00
parent 2ff2100ebb
commit d93a029ce5
121 changed files with 2428 additions and 1924 deletions

View File

@@ -0,0 +1,31 @@
// Generated by CoffeeScript 1.12.6
(function() {
"use strict";
App.FoundationExtras = {
clearSticky: function() {
if ($("[data-sticky]").length) {
return $("[data-sticky]").foundation("destroy");
}
},
mobile_ui_init: function() {
return $(window).trigger("load.zf.sticky");
},
desktop_ui_init: function() {
return $(window).trigger("init.zf.sticky");
},
initialize: function() {
$(document).foundation();
$(window).trigger("resize");
$(document).on("page:before-unload", this.clearSticky);
window.addEventListener("popstate", this.clearSticky, false);
return $(function() {
if ($(window).width() < 620) {
return App.FoundationExtras.mobile_ui_init();
} else {
return App.FoundationExtras.desktop_ui_init();
}
});
}
};
}).call(this);