another try
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user