Have all calendar listing info finalized and readily accessible in a text file (e.g. Word document) or spreadsheet, before using this form to display the same info online. Tip: If you copy-paste your data from a program like Word or Excel, you won't have to worry about (re)encoding special characters (e.g. á, è, ñ, etc.) for elements such as the headline and description.
Enter the minimum, required info for quarterly Music events (date, time, headline, description, prices, & adv. ticket options). Thumbnail images and links are optional. After entering info for a particular calendar listing, click the Preview Listing button to "proofread" your data in HTML mode. Then return to the form to make any needed editions.
Click the Add Listing button to validate your data. The form alerts you of any errors, instructing you to make the necessary corrections. When you've fixed all your errors, you will be asked to confirm one more time the integrity of the info. If you click yes, the info is formatted as a database entry and dumped into the Code Box below. The form is then cleared, to enable entry for the next listing.
As you enter calendar entries, they accumulate in the Code Box. When you're finished entering listings, copy-paste the resultant code in the Code Box at the bottom of this page into the designated area of the database file, db-calendar.js, located in the JS folder. These databased listing entries will later be parsed, ordered, and formatted (by a run-time script) as the calendar of events that appear on the <http://music.stanford.edu/Events/calendar.html> page and as the Upcoming Events column that flanks the right side of every Department of Music webpage.