This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="es"> | |
<head> | |
<meta httpEquiv="X-UA-Compatible" content="ie=edge" /> | |
<meta charset="utf-8" /> | |
<meta name="title" content="Álbum digital de figuritas" /> | |
<meta name="keywords" content="figuritas, stickers, coleccionables, mundial, qatar 2022, historias, relatos" /> | |
<meta property="og:type" content="website" /> | |
<link rel="icon" href="https://historias.com.ar/favicon.ico" /> | |
<meta | |
name="viewport" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const RETRY_INTERVALS = [0, 4, 8, 16, 32, 64] // seconds to wait for retry the request | |
const DEFAULT_TIMEOUT_MS = 15000 | |
const fetchAPI = ({ | |
// DOCS https://gist.github.com/marianopaulin02/5d988a04aa1a54023bd1bc68bd95dd7c | |
endpoint = '/', // Your URL | |
uri = '', // Your URI, or Can be included in endpoint | |
maxIntents = 1, // How many retry intents | |
timeout = DEFAULT_TIMEOUT_MS, // Max waiting time for a request before abort | |
rawResponse = false, // Return raw fetch response, else process as json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Minified: ~1Kb | |
Author: Mariano Paulin - marianopaulin.com | |
Description: IndexedDB(idb) javascript promise-based handler to perform simple CRUD operations with key-value data | |
Tested: Most recent versions of popular browsers, compatible with service workers | |
Reference: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB | |
Test, examples and docs: (at the bottom) | |
*/ |