web/dashboards/garage/js/garage.js
// Update the cards to display based on the given story URLs
Update the cards to display based on the given story URLs
Update the cards to display based on the given story URLs
function updateCards(storyUrls) {
  while(cards.firstChild) {
    cards.removeChild(cards.firstChild);
  }
  storyUrls.forEach(function(storyUrl) {
    cormorant.retrieveStory(storyUrl, function(story) {
      let div = document.createElement('div');
      div.setAttribute('class', 'card bg-light');
      cards.appendChild(div);
      cuttlefish.render(story, div);
    });
  });
}
function updateCards ( storyUrls ) { while ( cards . firstChild ) { cards . removeChild ( cards . firstChild ) ; } storyUrls . forEach ( function ( storyUrl ) { cormorant . retrieveStory ( storyUrl , function ( story ) { let div = document . createElement ( 'div' ) ; div . setAttribute ( 'class' , 'card bg-light' ) ; cards . appendChild ( div ) ; cuttlefish . render ( story , div ) ; } ) ; } ) ; }
Update the cards to display based on the given story URLs
Update the cards to display based on the given story URLs