Smelly smelly styling

This commit is contained in:
Michał Gdula 2023-03-23 22:22:52 +00:00
parent 4e7301b9de
commit ef27955414
9 changed files with 32 additions and 63 deletions

View file

@ -94,8 +94,10 @@ window.onload = function () {
infoButton.classList.add('show');
}
infoButton.onclick = function () {
popUpShow('OnlyLegs Gallery', 'Made by Fluffy with ❤️ <br>' +
'<a href="https://github.com/Fluffy-Bean/onlylegs">Version: 23.03.23</a>');
popUpShow('OnlyLegs Gallery',
'Using <a href="https://phosphoricons.com/">Phosphoricons</a> and <a href="https://www.gent.media/manrope">Manrope</a> <br>' +
'Made by Fluffy and others with ❤️ <br>' +
'<a href="https://github.com/Fluffy-Bean/onlylegs">V23.03.23</a>');
}
};
window.onscroll = function () {
@ -108,10 +110,6 @@ window.onscroll = function () {
} else {
topOfPage.classList.remove('show');
}
topOfPage.onclick = function () {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
// Info button
let infoButton = document.querySelector('.info-button');
@ -120,10 +118,6 @@ window.onscroll = function () {
} else {
infoButton.classList.add('show');
}
infoButton.onclick = function () {
popUpShow('OnlyLegs Gallery', 'Made by Fluffy with ❤️ <br>' +
'<a href="https://github.com/Fluffy-Bean/onlylegs">Version: 23.03.23</a>');
}
};
window.onresize = function () {
loadOnView();