diff --git a/gallery/routes/routing.py b/gallery/routes/routing.py index 9d38a72..cfcc915 100644 --- a/gallery/routes/routing.py +++ b/gallery/routes/routing.py @@ -23,7 +23,7 @@ def index(): db.Posts.image_colours, db.Posts.created_at, db.Posts.id).order_by(db.Posts.id.desc()).all() - + if request.args.get('coffee') == 'please': abort(418) diff --git a/gallery/static/js/main.js b/gallery/static/js/main.js index ae1e91f..6853dfb 100644 --- a/gallery/static/js/main.js +++ b/gallery/static/js/main.js @@ -94,8 +94,10 @@ window.onload = function () { infoButton.classList.add('show'); } infoButton.onclick = function () { - popUpShow('OnlyLegs Gallery', 'Made by Fluffy with ❤️
' + - 'Version: 23.03.23'); + popUpShow('OnlyLegs Gallery', + 'Using Phosphoricons and Manrope
' + + 'Made by Fluffy and others with ❤️
' + + 'V23.03.23'); } }; 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 ❤️
' + - 'Version: 23.03.23'); - } }; window.onresize = function () { loadOnView(); diff --git a/gallery/static/js/popup.js b/gallery/static/js/popup.js index 46bd0ce..e58e047 100644 --- a/gallery/static/js/popup.js +++ b/gallery/static/js/popup.js @@ -1,4 +1,4 @@ -function popUpShow(title, body, actions = '', content = '') { +function popUpShow(title, body, actions='', content='') { // Stop scrolling document.querySelector("html").style.overflow = "hidden"; diff --git a/gallery/templates/groups/group.html b/gallery/templates/groups/group.html index c34ed53..5cc2542 100644 --- a/gallery/templates/groups/group.html +++ b/gallery/templates/groups/group.html @@ -1,7 +1,5 @@ {% extends 'layout.html' %} - {% block nav_groups %}navigation-item__selected{% endblock %} - {% block content %}