From 59456fc8954aa490a04d2cdae8925daa0fee3d9c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 16 Jun 2022 02:31:14 +0200 Subject: [PATCH] Revert "fuck you, use a real browser" This reverts commit 6ecca709248fb15d13feb4c896ff2c22ff1df76d. --- files/__main__.py | 1 + files/templates/submission.html | 323 +++++++++++++++++++++++--------- 2 files changed, 239 insertions(+), 85 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 7b89a490e..da7c2681f 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -100,6 +100,7 @@ def before_request(): g.db = db_session() g.webview = '; wv) ' in ua + g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua @app.teardown_appcontext def teardown_request(error): diff --git a/files/templates/submission.html b/files/templates/submission.html index bfd804887..af0d16940 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -113,115 +113,268 @@ {% endif %} {% endif %} -{% if p.award_count("wholesome") %} - -
- - - :#marseywholesome: - - -
- {% if p.award_count("wholesome") > 1 %} - - + @keyframes moveY { + from { top: 0; } to { top: 98%; } + } + + .seal1 { + animation: moveX 4s linear 0s infinite alternate, moveY 6.8s linear 0s infinite alternate !important; + animation-delay:0s; + } + +
+ :#marseywholesome: +
+ + {% if p.award_count("wholesome") > 1 %} + +
:#marseywholesome: -
-
+ + {% endif %} + + {% if p.award_count("wholesome") > 2 %} + +
+ :#marseywholesome: +
+ {% endif %} + + {% if p.award_count("wholesome") > 3 %} + +
+ :#marseywholesome: +
+ {% endif %} {% endif %} - {% if p.award_count("wholesome") > 2 %} - - - :#marseywholesome: - - - {% endif %} - - {% if p.award_count("wholesome") > 3 %} - - - :#marseywholesome: - - - {% endif %} -{% endif %} - -{% if SITE_NAME == 'PCM' and p.award_count("toe") %} - -
- - + @media (max-width: 992px) { + .toeimg { + width: 30px !important; + height: auto !important; + } + } + + .toe { + position:fixed; + z-index:9999; + pointer-events: none; + width: 100% !important; + height: 100% !important; + } + + @keyframes moveX { + from { left: 0; } to { left: 98%; } + } + + @keyframes moveY { + from { top: 0; } to { top: 98%; } + } + + .toe1 { + animation: moveX 4s linear 0s infinite alternate, moveY 6.8s linear 0s infinite alternate !important; + animation-delay:0s; + } + +
+ Blade's toe +
+ + {% if p.award_count("toe") > 1 %} + +
Blade's toe +
+ {% endif %} + + {% if p.award_count("toe") > 2 %} + +
+ Blade's toe +
+ {% endif %} + + {% if p.award_count("toe") > 3 %} + +
+ Blade's toe +
+ {% endif %} + {% endif %} +{% else %} + {% if p.award_count("wholesome") %} + +
+ + + :#marseywholesome: + -
- + - {% if p.award_count("toe") > 1 %} - - - Blade's toe + {% if p.award_count("wholesome") > 1 %} + + + :#marseywholesome: + - + {% endif %} + + {% if p.award_count("wholesome") > 2 %} + + + :#marseywholesome: + + + {% endif %} + + {% if p.award_count("wholesome") > 3 %} + + + :#marseywholesome: + + + {% endif %} {% endif %} - {% if p.award_count("toe") > 2 %} - - - Blade's toe + {% if SITE_NAME == 'PCM' and p.award_count("toe") %} + +
+ + + Blade's toe + -
- {% endif %} + - {% if p.award_count("toe") > 3 %} - - - Blade's toe + {% if p.award_count("toe") > 1 %} + + + Blade's toe + - + {% endif %} + + {% if p.award_count("toe") > 2 %} + + + Blade's toe + + + {% endif %} + + {% if p.award_count("toe") > 3 %} + + + Blade's toe + + + {% endif %} {% endif %} {% endif %} + {% if p.award_count("train") or p.award_count("scooter") %}