Contains all events related functions for loading and controlling the events page.
Loads and displays the next set of events items.
Contains the current list of article DOM
Designates the minimum number of pixels that the user can scroll (calculated from the bottom) before another load event is triggered.
Contains the current list of pages DOM data-role="page" items that still need to be added to the DOM (much faster to add all at once after load is done downloading). This helps prevent the app from seeming to hang or become unresponsive.
The latest divider month & day combo is kept track of as an easy way to know when a datebar needs to be added!
Number of pages to load from the events website after a trigger event occurs.
Called on create of an article page. Mainly this function just attempts to download the article and show it.
Triggered when the events page is first created based on jQuery Mobile pagecreate event. This is called after the page itself is created but before any jQuery Mobile styling is applied.
Triggered when the events page is first initialized based on jQuery Mobile pageinit event.
Triggered when regular scroll event happens in events scroller window. It is used to check if the user is near the bottom of the page, so more content can be loaded (simulate infinite scrolling).