Sha256: a12302dd0793a926b4d8bfc7c41391dbdd7b184229a3fc49c982709f9fb36772
Contents?: true
Size: 711 Bytes
Versions: 25
Compression:
Stored size: 711 Bytes
Contents
/* // Custom JS | written by https://github.com/wdzajicek // © 2020 Kankakee Community College // =================================================== */ import start from './campusAlertsSheetsAPI.js'; import getCachedResponse from './getCachedResponse.js'; import checkForPrefersReducedMotion from './checkForPrefersReducedMotion.js'; document.addEventListener('DOMContentLoaded', () => { checkForPrefersReducedMotion(); ! window.sessionStorage.getItem('Alert-Content') ? // Checks if our cached alert is already in sessionStorage gapi.load('client', start) // If not, build the alert from a new Google API response : getCachedResponse(); // Otherwise, build the alert from our cached response });
Version data entries
25 entries across 25 versions & 1 rubygems