This was recompiled with babelify so that a require call will add the libs to the window object in the same way that just including the script in a script tag will:
require('vanilla-js-calendar')
var elem = document.getElementById("myCalendar");
var calendar = new JSCalendar(elem, { /* options */ }).init().render();
The compile command used was: npx browserify dev/js-calendar.js -o dist/js-calendar.js -t [ babelify --presets [ "es2015" ] ]
Thanks for this library.
This was recompiled with babelify so that a
require
call will add the libs to the window object in the same way that just including the script in ascript
tag will:The compile command used was:
npx browserify dev/js-calendar.js -o dist/js-calendar.js -t [ babelify --presets [ "es2015" ] ]
Thanks again for this!