Skip to content

Commit

Permalink
new Timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamjan committed Aug 27, 2023
1 parent 9dfc6f9 commit f083ffe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>NSND timeline</title>
</head>
<body>
<div id="app"></div>
<div id="timeline-embed" style="width: 100%; height: 600px"></div>
<script type="module" src="/main.js"></script>
</body>
</html>
9 changes: 6 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { Timeline } from '@knight-lab/timelinejs';
import '@knight-lab/timelinejs/dist/css/timeline.css';
import { Timeline } from "@knight-lab/timelinejs";
import "@knight-lab/timelinejs/dist/css/timeline.css";

document.querySelector('#app').textContent = `TODO!`;
const gsheetId = "2PACX-1vSVkQ1Cpo4gcIwWGFlWg1oYkNizkVuECcO7q9BaKuhA_eLyH6Z_oHkVKet6udyddf6OQg3X_tiLUGj2";
const url = `https://docs.google.com/spreadsheets/d/e/${gsheetId}/pubhtml`;

const _timeline = new Timeline("timeline-embed", url);

0 comments on commit f083ffe

Please sign in to comment.