Browse Source

Outdated browser warning

pull/1/head
Sebastian 9 years ago
parent
commit
5c6d87196d
  1. 34
      src/Squidex/wwwroot/index.html

34
src/Squidex/wwwroot/index.html

@ -15,6 +15,28 @@
} }
</style> </style>
</noscript> </noscript>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/outdated-browser/1.1.3/outdatedbrowser.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/outdated-browser/1.1.3/outdatedbrowser.min.js"></script>
<script>
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
outdatedBrowser({ lowerThan: 'borderImage', languagePath: '' });
});
</script>
</head> </head>
<body> <body>
<sqx-app> <sqx-app>
@ -24,5 +46,17 @@
<div>Loading Squidex</div> <div>Loading Squidex</div>
</div> </div>
</sqx-app> </sqx-app>
<div id="outdated">
<h6>Your browser is out-of-date!</h6>
<p>
Update your browser to view this website correctly. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Update my browser now </a>
</p>
<p class="last">
<a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a>
</p>
</div>
</body> </body>
</html> </html>
Loading…
Cancel
Save