/** * @preserve Copyright © 2018 T. F. Raaion, www.sublunar.space * (MIT): http://www.opensource.org/licenses/MIT * * SUBLUNAR ALMANAC */ var SL = SL || {}; //Defines Calendar Objects and Methods /** * Methods and objects to generate the calendar * @public {function} modules() - loads all plugin modules defined in an Array in index.html and adds their filters to the navbar * @public {function} make() - creates the grid of planetary hours for given coordinates and time in Settings * @public {Array} moments - holds all the JSON Ephemeris objects to calculate the calendar data * @public {function} hourInfo() - creates a temporary DOM object to be displayed as hour info upon clicking a planetary hour object * @public {function} comboFilter() - is a filter function for Isotope to include all selected tags and operations within a filter but exclude between each other * @public {function} getGeoCode() - set latitude, longitude, and UTC-Offset form fields for a given place entered in Settings * @public {function} about() - creates a DOM object with the "About" text for SUBLUNAR ALMANAC. * @public {function} reset() - simulates a resizing of the browser window. Needed hack for a display glitch in the modals. * @public {function} resetFileInput() - resets the file selection button in Settings * @public {function} download() - download a JSON object as a file */ SL.Calendar = (function() { /** * about function creates a DOM object with the "About" text for SUBLUNAR ALMANAC */ function about() { $('
').loadTemplate($("#tpl-modal"), { title : 'If you like this tool, please Buy Me a Coffee.
For updates, feedback and discussions, please visit our Facebook Group.
If you are interested in contributing, please check out our GitHub Repo
MIT License © 2018 T. F. Raaion / sublunar space
contact: info@sublunar.space
Astronomical calculations are based on
Swiss Ephemeris API, © 1997-2016 Astrodienst AG, (GPLv2.0+)
and the Table of New Moon Dates by Steve Moshier.
The front-end relies on the following Javascript Libraries:
jQuery 3.2.1, © JS Foundation, (MIT)
Bootstrap 3.3.7, © Twitter, Inc., (MIT)
jQuery.loadTemplate, © 2013 Paul Burgess and other contributors, (MIT)
MomentJS 2.18.1, © Tim Wood, Iskren Chernev, Moment.js contributors, (MIT)
Isotope 3.0.4, © 2017 Metafizzy, (GPLv3)
DefiantJS 1.4.1, © 2013-2017, Hakan Bilgin, (MIT)
NProgress, © 2013, 2014 Rico Sta. Cruz, (MIT)
OsmNamesAutocomplete, © 2016 Klokan Technologies GmbH, (GPLv3)
tzlookup, by The Dark Sky, LLC, (CC0 1.0 Universal)
ics.js, © 2018 Travis Krause, (MIT)
The design is based on
bootswatch v3.3.7, © 2012-2017 Thomas Park, (MIT).