8
9 Comments

IndieHackers quotes

Where to read all these quotes that come up while the website is loading?

on October 6, 2019
  1. 6

    I was bored so I built a website where you can view/share them all 😎

    https://indiehackerquotes.atymic.dev/

    1. 1

      @atymic cool! How did you grab them from the website?

  2. 2

    The source code that load the quotes is in the HTML for each page, here's the code:

    const numQuotes = 140;
    const randomIndex = Math.floor(Math.random() * numQuotes);
    const quotesUrl = `https://indie-hackers.firebaseio.com/loadingQuotes/${randomIndex}.json`;
    fetch(quotesUrl).then(response => {
        response.json().then(quoteObj => {
            document.querySelector('.loading-quote__quote').innerHTML = `"${quoteObj.quote}"`;
            document.querySelector('.loading-quote__byline').innerHTML = `—${quoteObj.byline}`;
        });
    });
    
  3. 1

    Those quotes that appear while a website is loading can come from various sources. Sometimes they're sourced from famous books, speeches, or even generated by the website's developers. If you're interested in finding similar quotes, you can explore websites or apps dedicated to quotes and literature. Goodreads, BrainyQuote, and ThinkExist are some websites that curate collections of quotes from a wide range of sources. Additionally, searching for specific themes or authors on search engines can lead you to quote repositories or databases tailored to your interests.

  4. 1

    I posted one of the quotes here https://apagraph.com/quote/9364 Looks great!

    1. 1

      Great to see. BTW Thanks

  5. 1

    Also interested if this is avaliable

    1. 1

      This comment was deleted 7 years ago