31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
<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">×</a></p>
|
|
</div>
|
|
<script src="${theme_base!}/source/lib/outdatedbrowser/outdatedbrowser.min.js"></script>
|
|
<script>
|
|
//event listener form DOM ready
|
|
function addLoadEvent(func) {
|
|
var oldonload = window.onload;
|
|
if (typeof window.onload != 'function') {
|
|
window.onload = func;
|
|
} else {
|
|
window.onload = function() {
|
|
if (oldonload) {
|
|
oldonload();
|
|
}
|
|
func();
|
|
}
|
|
}
|
|
}
|
|
//call function after DOM ready
|
|
addLoadEvent(function(){
|
|
outdatedBrowser({
|
|
bgColor: '#f25648',
|
|
color: '#ffffff',
|
|
lowerThan: 'borderImage',
|
|
languagePath: '../../source/lib/outdatedbrowser/lang/en.html'
|
|
})
|
|
});
|
|
</script> |