/** * @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 * @public {function} update() - updates the offline app */ SL.Calendar = (function() { /** * about function creates a DOM object with the "About" text for SUBLUNAR ALMANAC */ function about() { $('
').loadTemplate($("#tpl-modal"), { title : '

SUBLUNAR ALMANAC

', right : $("#about-modal").html() }) .appendTo('#modals') .attr('id', 'aboutSLC') .attr('tabindex', '-1') .attr('role', 'dialog') .addClass('modal fade autoModal') .find('.col-sm-4').closest('.row') .find('.col-sm-8').attr('class', 'col-sm-12').closest('.row') .find('.col-sm-4').remove(); if ( $("body").attr("use") == "offline" ) { $('