diff --git a/.github/workflows/build-pages.yml b/.github/workflows/build-pages.yml index 80a9d52..b13c386 100644 --- a/.github/workflows/build-pages.yml +++ b/.github/workflows/build-pages.yml @@ -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 diff --git a/iiif.vtt b/iiif.vtt deleted file mode 100644 index 4f68fca..0000000 --- a/iiif.vtt +++ /dev/null @@ -1,163 +0,0 @@ -WEBVTT - -00:00:09.150 --> 00:00:10.110 -Struttin' down the street - -00:00:10.110 --> 00:00:10.770 -That's where we'll. - -00:00:10.770 --> 00:00:11.190 -Meet. - -00:00:11.190 --> 00:00:12.190 -(oo-yeah!) - -00:00:12.360 --> 00:00:13.360 - - (oo-yeah!) - - -00:00:13.590 --> 00:00:14.040 -Checkin' out the scene - -00:00:14.040 --> 00:00:15.990 -with that IIIF beat - -00:00:17.880 --> 00:00:21.390 -Four corners of the globe all coming into view. - -00:00:22.320 --> 00:00:26.010 -One image, one time, showing me and you. - -00:00:27.040 --> 00:00:29.260 -Library lovers, get down with the click. - -00:00:31.660 --> 00:00:32.840 -(uh-huh!) Images so fresh - -00:00:32.950 --> 00:00:33.950 -They'll make you wanna trip - -00:00:36.360 --> 00:00:38.350 -Metadata magic it's cookin' up a storm. - -00:00:40.940 --> 00:00:42.760 -Standardized delight, no need to reform. - -00:00:44.980 --> 00:00:46.590 -IIIF - -00:00:46.810 --> 00:00:48.639 -Bringin' life to the vibe - -00:00:48.700 --> 00:00:49.550 -Come on! - -00:00:49.550 --> 00:00:51.380 -Universal language - -00:00:51.500 --> 00:00:53.029 -Let’s ride the tribe - -00:00:53.970 --> 00:00:58.909 -Zoomin' in and out, We ain't just readin’ text - -00:00:58.910 --> 00:01:01.920 -Visuals so potent. It'll leave you perplexed. - -00:01:03.920 --> 00:01:05.219 -Digitize the moment. It's a visual buffet. - -00:01:06.180 --> 00:01:07.180 -Oh, yeah. - -00:01:07.540 --> 00:01:08.610 -Art and history. - -00:01:08.610 --> 00:01:09.630 -Comin' out to play. - -00:01:11.730 --> 00:01:12.870 -Interoperability - -00:01:12.870 --> 00:01:13.959 -What a joyful ring - -00:01:16.390 --> 00:01:17.370 -Double-tap that image - -00:01:17.370 --> 00:01:19.049 -Got the whole world on a string. - -00:01:21.870 --> 00:01:24.930 -Access for all, No need to stall, Get that high-res flavor - -00:01:25.650 --> 00:01:27.060 -Standing ten feet tall. - -00:01:29.710 --> 00:01:32.140 -Archival dreams They're all in the stream - -00:01:32.980 --> 00:01:36.000 -With IIIF Reality’s a meme - -00:01:39.530 --> 00:01:42.409 -I kept bringing light to survive. - -00:01:42.500 --> 00:01:43.939 -Come on, you children. - -00:01:44.210 --> 00:01:45.210 -So, language. - -00:01:45.350 --> 00:01:46.849 -Let's rock to try. - -00:01:47.800 --> 00:01:49.389 -So read it now. - -00:01:49.740 --> 00:01:55.839 -We just read the text is, you know, so potent it'll leave you perplexed. - -00:02:06.000 --> 00:02:07.949 -Step on the meat stall. - -00:02:08.820 --> 00:02:11.939 -Give that a rest for the steady ten feet tall. - -00:02:14.010 --> 00:02:15.420 -Walk out of the trees. - -00:02:15.600 --> 00:02:17.009 -They're all in the street. - -00:02:17.850 --> 00:02:20.849 -Which I have realities of me. - -00:02:23.740 --> 00:02:27.279 -So far, it's bringing life to the bar. - -00:02:27.430 --> 00:02:28.210 -Come on. - -00:02:28.210 --> 00:02:30.039 -You are the sole language. - -00:02:30.220 --> 00:02:30.540 -Let's. - -00:02:30.540 --> 00:02:31.290 -Right. - -00:02:31.290 --> 00:02:32.290 -Try. - -00:02:32.610 --> 00:02:37.850 -So maybe now we just read sex fiction. - -00:02:38.040 --> 00:02:40.679 -Supposedly you published. - -00:02:49.260 --> 00:02:50.260 -Come on, come on. - -00:03:03.270 --> 00:03:04.270 -Come on. diff --git a/index.html b/index.html index 693e2ea..a9ad31f 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@
- +
diff --git a/src/lyrics.js b/src/lyrics.js index a8a2b6a..18b8201 100644 --- a/src/lyrics.js +++ b/src/lyrics.js @@ -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( diff --git a/src/main.js b/src/main.js index 20fabd5..c77894d 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,4 @@ import "../styles.css"; - import { loadVTT } from "./lyrics"; import { addImage } from "./images"; import { initFunkyIIIF } from './audio'; @@ -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"); diff --git a/vite.config.js b/vite.config.js deleted file mode 100644 index 654cc8b..0000000 --- a/vite.config.js +++ /dev/null @@ -1,12 +0,0 @@ -import { defineConfig } from "vite"; - -export default defineConfig(({ mode }) => { - const config = {}; - - // Conditional configuration for GitHub Pages - if (mode === "github") { - config.base = "/funk-with-iiif/"; - } - - return config; -});