custom changes
This commit is contained in:
@ -26,6 +26,6 @@ set $legacy "
|
||||
}
|
||||
</style>
|
||||
<div id='legacywarnoverlay'>
|
||||
<p>Du besuchst diese Seite mit einem <strong>veralteten</strong> IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte Frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.<br>
|
||||
<p>Du besuchst diese Seite mit einem <strong>veralteten</strong> IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.<br>
|
||||
You are visiting this site with an <strong>outdated</strong> IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.<br>
|
||||
<a href='https://margau.net/ipv6' target='_blank'>Weitere Infos | More Information</a><br>Klicke zum schließen | Click to close</p></div></body>";
|
||||
|
@ -6,13 +6,12 @@ function legacywarnon() {
|
||||
|
||||
function legacywarnoff() {
|
||||
document.getElementById('legacywarnoverlay').style.display = 'none';
|
||||
document.cookie = 'legacywarn=true; max-age=86400 ; path=/';
|
||||
document.cookie = 'legacywarn=true; max-age=604800; path=/';
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', function(){
|
||||
document.getElementById('legacywarnoverlay').onclick = legacywarnoff;
|
||||
if (document.cookie.indexOf('legacywarn=') > -1) {
|
||||
document.getElementById('legacywarnoverlay').style.display = 'none';
|
||||
console.log('Hide Legacy IP warn');
|
||||
} else {
|
||||
legacywarnon();
|
||||
}
|
||||
|
Reference in New Issue
Block a user