Skip to content

Instantly share code, notes, and snippets.

@mikejakobsen
Created June 12, 2017 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejakobsen/5fcfca0dc7c60f7ac1303fc8b7df0381 to your computer and use it in GitHub Desktop.
Save mikejakobsen/5fcfca0dc7c60f7ac1303fc8b7df0381 to your computer and use it in GitHub Desktop.
// Generated by CoffeeScript 1.12.6
window.cl = function() {
if (window.console && console.log) {
return console.log(arguments);
}
};
window.params = function() {
if (window._params) {
return window._params;
}
return window._params = _.inject(window.location.search.replace(/^\?/, '').split('&'), function(obj, param) {
param = param.split('=');
obj[param[0]] = param[1];
return obj;
}, {});
};
$(function() {
return $(document).foundation();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment