Skip to content

Commit

Permalink
Fix the thing
Browse files Browse the repository at this point in the history
  • Loading branch information
neilh-cogapp committed Jun 3, 2024
1 parent bafb91a commit e357773
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 181 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: npm ci

- name: Build the project
run: npm run build
run: npm run build -- --base=/funk-with-iiif/

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
163 changes: 0 additions & 163 deletions iiif.vtt

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<button id="play-button" type="button">Play</button>
<div class="container">
<div class="audio-container">
<audio class="audio-player" controls src="/iiif.mp3"></audio>
<audio class="audio-player" controls src="./iiif.mp3"></audio>
</div>
<div class="visualizer"></div>
<div class="lyrics honk-wonk"></div>
Expand Down
2 changes: 0 additions & 2 deletions src/lyrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export async function loadVTT(url) {
// now get parts of speech
jsonLyrics.forEach((cue) => {
// get relevant words and add to JSON
// const words = new Lexer().lex(cue.text);
// const taggedWords = new POSTagger().tag(words);
const taggedWords = wink.tagSentence(cue.text);
cue.words = cue.words || [];
cue.words.push(
Expand Down
3 changes: 1 addition & 2 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "../styles.css";

import { loadVTT } from "./lyrics";
import { addImage } from "./images";
import { initFunkyIIIF } from './audio';
Expand All @@ -17,7 +16,7 @@ function parseTimecode(timecode) {
// Init the audio player.
document.addEventListener("DOMContentLoaded", async (event) => {
// lyrics data.
const lyricsData = await loadVTT("iiif.vtt");
const lyricsData = await loadVTT("/iiif.vtt");

const audioElement = document.querySelector(".audio-player");
const lyricsContainer = document.querySelector(".lyrics");
Expand Down
12 changes: 0 additions & 12 deletions vite.config.js

This file was deleted.

0 comments on commit e357773

Please sign in to comment.