Under construction
All checks were successful
Deploy new version of the application / Deploy Application (push) Successful in 2s
All checks were successful
Deploy new version of the application / Deploy Application (push) Successful in 2s
This commit is contained in:
13
script.js
13
script.js
@@ -20,4 +20,17 @@ function init() {
|
||||
|
||||
}
|
||||
|
||||
function addInProgress() {
|
||||
if (window.location.href.indexOf('127.0.0.1') === -1) {
|
||||
const warning = document.createElement('div');
|
||||
warning.id = 'under-construction';
|
||||
warning.innerHTML = "This website is currently under development. Nothing will work as expected. Click anywhere to dismiss this message.";
|
||||
warning.onclick = function() {
|
||||
this.style.display = 'none';
|
||||
};
|
||||
document.body.appendChild(warning);
|
||||
}
|
||||
}
|
||||
|
||||
addInProgress();
|
||||
init();
|
||||
Reference in New Issue
Block a user