mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Added settings page
Added logging to a .log file Fixed Images loosing colour and rotation on thumbnail generation Added more info to README
This commit is contained in:
parent
a9b13f1e39
commit
828167f762
36 changed files with 819 additions and 131 deletions
|
@ -8,6 +8,17 @@ document.onscroll = function() {
|
|||
console.log('No background decoration found');
|
||||
}
|
||||
|
||||
try {
|
||||
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 20) {
|
||||
document.querySelector('.banner').classList = 'banner banner-scrolled';
|
||||
} else {
|
||||
document.querySelector('.banner').classList = 'banner';
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
console.log('No banner found');
|
||||
}
|
||||
|
||||
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 20) {
|
||||
document.querySelector('.jumpUp').classList = 'jumpUp jumpUp--show';
|
||||
} else {
|
||||
|
@ -21,7 +32,7 @@ document.querySelector('.jumpUp').onclick = function() {
|
|||
}
|
||||
|
||||
function imgFade(obj) {
|
||||
$(obj).animate({opacity: 1}, 500);
|
||||
$(obj).animate({opacity: 1}, 250);
|
||||
}
|
||||
|
||||
var times = document.getElementsByClassName('time');
|
||||
|
@ -140,5 +151,10 @@ function popUpShow(title, body, actions, content) {
|
|||
|
||||
function popupDissmiss() {
|
||||
var popup = document.querySelector('.pop-up');
|
||||
popup.classList.remove('pop-up__active');
|
||||
|
||||
popup.classList.add('pop-up__hide');
|
||||
|
||||
setTimeout(function() {
|
||||
popup.classList = 'pop-up';
|
||||
}, 200);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue