Sha256: b2454ca177d40e9f221243bd030fe4393fae967dc492bbca1459a10137f9c182
Contents?: true
Size: 865 Bytes
Versions: 19
Compression:
Stored size: 865 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'; import checkForAccordionOrTab from './checkForAccordionOrTab.js'; document.addEventListener('DOMContentLoaded', () => { checkForPrefersReducedMotion(); if (!document.getElementById('emergencyAlerts')) return checkForAccordionOrTab() ! 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
19 entries across 19 versions & 1 rubygems