Skip to content

Commit

Permalink
chore: revert changes to paths
Browse files Browse the repository at this point in the history
  • Loading branch information
marianafcosta committed Mar 31, 2023
1 parent 066e15d commit 2ed8b96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./index.css" />
<link rel="stylesheet" href="/news-story-viz/index.css" />
<title id="page-title">News Viz</title>
</head>

Expand All @@ -18,7 +18,7 @@
<script src="https://cdn.jsdelivr.net/npm/svg-to-pdfkit@0.1.8/source.js"></script>
<script src="https://printjs-4de6.kxcdn.com/print.min.js"></script>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script type="module" src="./index.js"></script>
<script type="module" src="/news-story-viz/index.js"></script>
<div id="about-container">
<div id="about">
<button id="about-close">Close</button>
Expand Down
16 changes: 9 additions & 7 deletions src/aux/fileHandler.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import udpatePageTitle from "./updatePageTitle.js";
import udpatePageTitle from './updatePageTitle.js';

let _currFile;

const FileHandler = () => {
const fnames = [
"carnationRevolution.json",
"formattedOgExample.json",
"littleRedRidingHood.json",
"t2s.json",
"capitolRiot.json",
'carnationRevolution.json',
'formattedOgExample.json',
'littleRedRidingHood.json',
't2s.json',
'capitolRiot.json',
];

async function file(filename) {
udpatePageTitle(filename);
const response = await fetch(`../assets/narratives/${filename}`);
const response = await fetch(
`/news-story-viz/assets/narratives/${filename}`
);
_currFile = filename;
const data = await response.json();
data.filename = filename;
Expand Down

0 comments on commit 2ed8b96

Please sign in to comment.