Skip to content

Instantly share code, notes, and snippets.

Avatar

Omar Quazi blacksector

View GitHub Profile
@blacksector
blacksector / random-quote.js
Last active Apr 20, 2022
Pulls quotes from an API and displays it on a simple background
View random-quote.js
const QUOTES_API = 'https://quotes-api.netlify.app/.netlify/functions/get-quote';
const BG_COLOR = "#000000";
const BG_IMAGE = true;
let randomQuote = await loadQuote()
let img = null;
// no-background.js is needed from here if BG_IMAGE is set to true
// https://github.com/supermamon/scriptable-no-background