1
0

another try

This commit is contained in:
dtb
2022-02-20 13:19:10 -05:00
parent 62d244ce6b
commit 178f2c4958
2 changed files with 11 additions and 6 deletions

View File

@@ -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(){