Interactive interface for browsing global, full-resolution satellite imagery
Fetch JSON for stories
ZachTRice794a1c9126b6
diff --git a/web/js/components/tour/start.js b/web/js/components/tour/start.jsindex f67d8e2b4..e72fc744b 100644--- a/web/js/components/tour/start.js+++ b/web/js/components/tour/start.js@@ -3,6 +3,16 @@ import { Modal, ModalHeader, ModalBody } from 'reactstrap';class ModalStart extends React.Component {render() {+ fetch('../stories/stories.json', {+ method: 'get'+ }).then(function(response) {+ return response.json();+ }).then(function(myJson) {+ var obj = JSON.stringify(myJson);+ console.log(JSON.parse(obj));+ }).catch(function(err) {+ console.log(err);+ });return (<div><Modal isOpen={this.props.modalStart} toggle={this.props.toggleModalStart} wrapClassName='tour tour-start' className={this.props.className} backdrop={true}>diff --git a/web/stories/stories.json b/web/stories/stories.jsonindex cdb29aae8..ccd1e50b5 100644--- a/web/stories/stories.json+++ b/web/stories/stories.json@@ -1,8 +1,7 @@{"id": "larsen_c_ice_shelf_iceberg_a68a_july_2017","title": "Larsen C Ice Shelf / Iceberg A68A - July 2017",- "description": "Explore the Larsen C Ice Shelf using different map projections, zoom- levels and layers. Use the event tab to quickly acess other events.",+ "description": "Explore the Larsen C Ice Shelf using different map projections, zoom levels and layers. Use the event tab to quickly acess other events.","read-more-link": "https://earthdata.nasa.gov/larsen-c-ice-shelf-calving","steps": [{