"use strict"; // This is the global list of the stories, an instance of StoryList let storyList; /** Get and show stories when site first loads. */ async function getAndShowStoriesOnStart() { storyList = await StoryList.getStories(); $storiesLoadingMsg.remove(); putStoriesOnPage(); } /** * A render method to render HTML for an individual Story instance * - story: an instance of Story * * Returns the markup for the story. */ function generateStoryMarkup(story) { // console.debug("generateStoryMarkup", story); const hostName = story.getHostName(); return $(`