mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Smelly smelly styling
This commit is contained in:
parent
4e7301b9de
commit
ef27955414
9 changed files with 32 additions and 63 deletions
|
@ -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();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function popUpShow(title, body, actions = '<button class="btn-block" onclick="popupDissmiss()">Close</button>', content = '') {
|
||||
function popUpShow(title, body, actions='<button class="btn-block" onclick="popupDissmiss()">Close</button>', content='') {
|
||||
// Stop scrolling
|
||||
document.querySelector("html").style.overflow = "hidden";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue