forked from rDrama/rDrama
vcxxvc
parent
60a34d9943
commit
5c4d310071
|
@ -94,9 +94,15 @@ def before_request():
|
||||||
|
|
||||||
g.timestamp = int(time.time())
|
g.timestamp = int(time.time())
|
||||||
|
|
||||||
if '; wv) ' in request.headers.get("User-Agent",""): g.webview = True
|
ua = request.headers.get("User-Agent","").lower()
|
||||||
|
|
||||||
|
if '; wv) ' in ua: g.webview = True
|
||||||
else: g.webview = False
|
else: g.webview = False
|
||||||
|
|
||||||
|
if 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/': g.seal = True
|
||||||
|
else: g.seal = False
|
||||||
|
|
||||||
|
|
||||||
@app.teardown_appcontext
|
@app.teardown_appcontext
|
||||||
def teardown_request(error):
|
def teardown_request(error):
|
||||||
if hasattr(g, 'db') and g.db:
|
if hasattr(g, 'db') and g.db:
|
||||||
|
|
|
@ -21,57 +21,136 @@
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.award_count("wholesome") %}
|
|
||||||
<style>
|
|
||||||
.seal {
|
{% if g.seal %}
|
||||||
position:fixed;
|
{% if p.award_count("wholesome") %}
|
||||||
z-index:9999;
|
<style>
|
||||||
pointer-events: none;
|
|
||||||
width: 100% !important;
|
|
||||||
height: 100% !important;
|
|
||||||
}
|
|
||||||
.sealimg {
|
|
||||||
width: 100px;
|
|
||||||
height: 89.5px;
|
|
||||||
}
|
|
||||||
@media (max-width: 992px) {
|
|
||||||
.sealimg {
|
.sealimg {
|
||||||
width: 30px;
|
width: 100px;
|
||||||
height: 27px;
|
height: 89.5px;
|
||||||
}
|
}
|
||||||
}
|
@media (max-width: 992px) {
|
||||||
</style>
|
.sealimg {
|
||||||
<div class="seal" height="100%" width="100%">
|
width: 30px;
|
||||||
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%" width="100%">
|
height: 27px;
|
||||||
<marquee direction="right" scrollamount=10 behavior="alternate" height="100%" width="100%">
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.seal {
|
||||||
|
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%; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.seal1 {
|
||||||
|
animation: moveX 4s linear 0s infinite alternate, moveY 6.8s linear 0s infinite alternate !important;
|
||||||
|
animation-delay:0s;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="seal seal1" height="100%" width="100%">
|
||||||
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if p.award_count("wholesome") > 1 %}
|
||||||
|
<style>
|
||||||
|
.seal2 {
|
||||||
|
animation: moveX 5s linear 0s infinite alternate, moveY 8s linear 0s infinite alternate !important;
|
||||||
|
animation-delay:1s;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="seal seal2" height="100%" width="100%">
|
||||||
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if p.award_count("wholesome") > 2 %}
|
||||||
|
<style>
|
||||||
|
.seal3 {
|
||||||
|
animation: moveX 4s linear 0s infinite alternate, moveY 5s linear 0s infinite alternate !important;
|
||||||
|
animation-delay:2s;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="seal seal3" height="100%" width="100%">
|
||||||
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if p.award_count("wholesome") > 3 %}
|
||||||
|
<style>
|
||||||
|
.seal4 {
|
||||||
|
animation: moveX 5s linear 0s infinite alternate, moveY 6.8s linear 0s infinite alternate !important;
|
||||||
|
animation-delay:3s;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="seal seal4" height="100%" width="100%">
|
||||||
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{% if p.award_count("wholesome") %}
|
||||||
|
<style>
|
||||||
|
.seal {
|
||||||
|
position:fixed;
|
||||||
|
z-index:9999;
|
||||||
|
pointer-events: none;
|
||||||
|
width: 100% !important;
|
||||||
|
height: 100% !important;
|
||||||
|
}
|
||||||
|
.sealimg {
|
||||||
|
width: 100px;
|
||||||
|
height: 89.5px;
|
||||||
|
}
|
||||||
|
@media (max-width: 992px) {
|
||||||
|
.sealimg {
|
||||||
|
width: 30px;
|
||||||
|
height: 27px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="seal" height="100%" width="100%">
|
||||||
|
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%" width="100%">
|
||||||
|
<marquee direction="right" scrollamount=10 behavior="alternate" height="100%" width="100%">
|
||||||
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
|
</marquee>
|
||||||
|
</marquee>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if p.award_count("wholesome") > 1 %}
|
||||||
|
<marquee class="seal" scrollamount=10 behavior="alternate" direction="down" height="100%">
|
||||||
|
<marquee direction="right" scrollamount=10 behavior="alternate" width="100%">
|
||||||
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
</marquee>
|
</marquee>
|
||||||
</marquee>
|
</marquee>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if p.award_count("wholesome") > 1 %}
|
{% if p.award_count("wholesome") > 2 %}
|
||||||
<marquee class="seal" scrollamount=10 behavior="alternate" direction="down" height="100%">
|
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%">
|
||||||
<marquee direction="right" scrollamount=10 behavior="alternate" width="100%">
|
<marquee direction="left" scrollamount=10 behavior="alternate" width="100%">
|
||||||
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
|
</marquee>
|
||||||
</marquee>
|
</marquee>
|
||||||
</marquee>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if p.award_count("wholesome") > 2 %}
|
{% if p.award_count("wholesome") > 3 %}
|
||||||
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%">
|
<marquee class="seal" scrollamount=10 behavior="alternate" direction="down" height="100%">
|
||||||
<marquee direction="left" scrollamount=10 behavior="alternate" width="100%">
|
<marquee direction="left" scrollamount=10 behavior="alternate" width="100%">
|
||||||
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
||||||
|
</marquee>
|
||||||
</marquee>
|
</marquee>
|
||||||
</marquee>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if p.award_count("wholesome") > 3 %}
|
|
||||||
<marquee class="seal" scrollamount=10 behavior="alternate" direction="down" height="100%">
|
|
||||||
<marquee direction="left" scrollamount=10 behavior="alternate" width="100%">
|
|
||||||
<img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
|
|
||||||
</marquee>
|
|
||||||
</marquee>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.award_count("train") %}
|
{% if p.award_count("train") %}
|
||||||
|
|
Loading…
Reference in New Issue