mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Cleaned up readme, un-removed e2e test services, updated e2e test to cleanup better
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
if (window.uswds && typeof window.uswds.init === 'function') {
|
||||
console.log("Calling USWDS init");
|
||||
window.uswds.init();
|
||||
} else {
|
||||
console.error("USWDS not found or init is not a function");
|
||||
}
|
||||
});
|
||||
@@ -1,24 +0,0 @@
|
||||
/* 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);
|
||||
})();
|
||||
2
app/assets/js/uswds-init.min.js
vendored
2
app/assets/js/uswds-init.min.js
vendored
@@ -1,2 +0,0 @@
|
||||
!function(){"use strict";var n,e="usa-js-loading";function t(){document.documentElement.classList.remove(e)}document.documentElement.classList.add(e),n=setTimeout(t,8e3),window.addEventListener("load",function e(){window.uswdsPresent&&(clearTimeout(n),t(),window.removeEventListener("load",e,!0))},!0)}();
|
||||
//# sourceMappingURL=uswds-init.min.js.map
|
||||
Reference in New Issue
Block a user