Skip to content

Commit

Permalink
Load outdatedbrowser from local scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Jul 15, 2021
1 parent ab6ab88 commit 5d44b57
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<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>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 8 additions & 14 deletions frontend/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
</style>
</noscript>

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/outdated-browser/1.1.3/outdatedbrowser.min.css">
<link rel="stylesheet" type="text/css" href="./scripts/outdatedbrowser/outdatedbrowser.min.css">

<script src="https://cdnjs.cloudflare.com/ajax/libs/outdated-browser/1.1.3/outdatedbrowser.min.js"></script>
<script src="./scripts/outdatedbrowser/outdatedbrowser.min.js"></script>
<script>
function addLoadEvent(callback) {
var oldOnload = window.onload;

if (typeof window.onload != 'function') {
window.onload = callback;
} else {
Expand All @@ -39,7 +40,10 @@
}

addLoadEvent(function () {
outdatedBrowser({ lowerThan: 'borderImage', languagePath: '' });
outdatedBrowser({
lowerThan: 'object-fit',
languagePath: './scripts/outdatedbrowser/lang/en.html'
});
});
</script>
</head>
Expand All @@ -52,16 +56,6 @@
</div>
</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>
<div id="outdated"></div>
</body>
</html>

0 comments on commit 5d44b57

Please sign in to comment.