From 178f2c4958e553d2ae9882f5b6834ddbd6a270fe Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Sun, 20 Feb 2022 13:19:10 -0500 Subject: [PATCH] another try --- homepage/index.html | 11 +++++++---- homepage/js/quotes.js | 6 ++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/homepage/index.html b/homepage/index.html index a3fc1db..0dc058e 100644 --- a/homepage/index.html +++ b/homepage/index.html @@ -11,18 +11,21 @@ - trinity dot moe - - + + +

Hi, I'm Deven Trinity Blake. I'm just your normal everyday nerd.

diff --git a/homepage/js/quotes.js b/homepage/js/quotes.js index 08758df..05b85f7 100644 --- a/homepage/js/quotes.js +++ b/homepage/js/quotes.js @@ -7,14 +7,16 @@ * - use window.quote_new() to get a new quote. */ /* firefox doesn't support import assertions yet (2022-02-20; fx 97.0) */ -import quotes from "./quotes.json"; -window.quotes = quotes; +window.quotes = [ ["Couldn't get quotes array.", "quotes.js"] ]; window.QUOTES_L_QUOTE_MARK = '"'; window.QUOTES_R_QUOTE_MARK = '"'; window.QUOTES_QUOTE_AUTHOR_ID = "quote_author"; window.QUOTES_QUOTE_AUTHOR_PREFIX = "~ "; window.QUOTES_QUOTE_VALUE_ID = "quote_value"; +window.quotes_initialize = function(){ + fetch("./quotes.json").then(response => {return response.json();}).then(data => console.log(data)); +}; /* Will not give you the same quote twice in a row! */ window.quote_new = function(){