Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Latest commit

 

History

History
20 lines (17 loc) · 576 Bytes

File metadata and controls

20 lines (17 loc) · 576 Bytes

randQuoteMachine

This is a small random famous quote generator. It uses the Andruxnet random famous quote API from Mashape.

Instructions

To make the thing work put your key in js/script.js as shown below:

...
// This function fetches a new random quote from the specified api and
// updates the page
function updateQuote() {
  $.ajax({
    headers: {
      'X-Mashape-Key': 'yourKEY',
      Accept: 'application/json',
      'Content-Type': 'application/x-www-form-urlencoded',
    },
...