Skip to content

Instantly share code, notes, and snippets.

@klanjabrik
Created October 20, 2016 07:46
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 klanjabrik/377e5f94f722be34adc4b54d873d6f27 to your computer and use it in GitHub Desktop.
Save klanjabrik/377e5f94f722be34adc4b54d873d6f27 to your computer and use it in GitHub Desktop.
Standalone Pikaday.js
(function (root, factory)
{
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if ( typeof exports === 'object' ) {
// Node/CommonJS
module.exports = factory();
} else {
// Browser globals
root.Pikaday = factory();
}
}(this, function ()
{
...
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment