dg-npm-templates
Version:
Npx generator for react app dependency creation by digite
36 lines (32 loc) • 1.32 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<title>#GIT-REPO-NAME#</title>
<script>
function onBodyLoad() {
var w_userAgent = navigator.userAgent;
/* MSIE used to detect old browsers and Trident used to newer ones*/
var w_isIE = w_userAgent.indexOf("MSIE ") > -1 || w_userAgent.indexOf("Trident/") > -1;
if ( w_isIE ) {
document.getElementById('root').style.display = "none";
var w_errorDiv = document.createElement('div');
w_errorDiv.innerHTML = "App does not support IE browser, please use Chrome/Mozilla/Edge";
w_errorDiv.style.position = "absolute";
w_errorDiv.style.top = "50%";
w_errorDiv.style.left = "50%";
w_errorDiv.style.transform = "translate(-50%,-50%)";
w_errorDiv.style.fontSize = "18px";
w_errorDiv.style.color = "#a3a3a3";
document.body.appendChild(w_errorDiv);
}
}
</script>
</head>
<body onload="onBodyLoad()">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" class="pos_abs"></div>
</body>
</html>