mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
- Added support for default gulp/build commands
- Moved some folders around to align with gulp copy functions
This commit is contained in:
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
/* eslint-disable no-var */
|
||||
(function uswdsInit() {
|
||||
"use strict";
|
||||
|
||||
var loadingClass = "usa-js-loading";
|
||||
var fallback;
|
||||
|
||||
document.documentElement.classList.add(loadingClass);
|
||||
function revertClass() {
|
||||
document.documentElement.classList.remove(loadingClass);
|
||||
}
|
||||
|
||||
fallback = setTimeout(revertClass, 8000);
|
||||
|
||||
function verifyLoaded() {
|
||||
if (window.uswdsPresent) {
|
||||
clearTimeout(fallback);
|
||||
revertClass();
|
||||
window.removeEventListener("load", verifyLoaded, true);
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener("load", verifyLoaded, true);
|
||||
})();
|
||||
Reference in New Issue
Block a user