Fixed some issues created by floating link
This commit is contained in:
Wruczek
2016-12-11 03:35:46 +01:00
parent a5a9b7d4fb
commit 0f4b12db4e
4 changed files with 5 additions and 10 deletions

View File

@ -20,12 +20,12 @@ if (new Date().getMonth() === 11) {
document.getElementById('background-artist').innerHTML = '<a href="http://www.publicdomainpictures.net/view-image.php?image=28562&picture=christmas-bulbs-red-background">Debi Geroux - Public Domain</a>';
if(getCookie('snoweffect') === 'false') {
document.getElementsByTagName('body')[0].innerHTML += '<a class="disableSnowLink" href="#" onclick="enableSnowEffect()">Enable snow effect</a>';
document.getElementById('website-copyright').innerHTML += ' &mdash; <a class="disableSnowLink" href="#" onclick="enableSnowEffect()">Enable snow effect</a>';
return;
}
// Add a link to disable the effect
document.getElementsByTagName('body')[0].innerHTML += '<a class="disableSnowLink" href="#" onclick="disableSnowEffect()">Disable snow effect</a>';
document.getElementById('website-copyright').innerHTML += ' &mdash; <a class="disableSnowLink" href="#" onclick="disableSnowEffect()">Disable snow effect</a>';
// Add the snow effect
snowFall.snow(document.body, {