forked from MarseyWorld/MarseyWorld
master
parent
cf4ba361d2
commit
276a8333b7
|
@ -21,6 +21,8 @@ app = Flask(__name__, template_folder='./templates')
|
||||||
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3)
|
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3)
|
||||||
app.url_map.strict_slashes = False
|
app.url_map.strict_slashes = False
|
||||||
app.jinja_env.cache = {}
|
app.jinja_env.cache = {}
|
||||||
|
import faulthandler
|
||||||
|
faulthandler.enable()
|
||||||
|
|
||||||
app.config["SITE_NAME"]=environ.get("SITE_NAME").strip()
|
app.config["SITE_NAME"]=environ.get("SITE_NAME").strip()
|
||||||
app.config["COINS_NAME"]=environ.get("COINS_NAME").strip()
|
app.config["COINS_NAME"]=environ.get("COINS_NAME").strip()
|
||||||
|
|
|
@ -206,38 +206,20 @@
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="/assets/js/sparkle.min.js" type="text/javascript"></script>
|
|
||||||
|
|
||||||
{% if p.award_count("stars") %}
|
{% if p.award_count("stars") %}
|
||||||
{% set sparkles = 10*p.award_count("stars") if p.award_count("stars") <= 5 else 50 %}
|
<script src="/assets/js/sparkle-min.js" type="text/javascript"></script>
|
||||||
<style>
|
{% set minbugs = 10*p.award_count("shit") if p.award_count("shit") <= 5 else 50 %}
|
||||||
#post-content {
|
{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") <= 5 else 100 %}
|
||||||
z-index: 50;
|
<script type="text/javascript">
|
||||||
}
|
new BugController({
|
||||||
</style>
|
imageSprite: "/assets/images/sparkle-sprite.webp",
|
||||||
<script>
|
canDie: false,
|
||||||
document.querySelector("#post-content").sparkle({
|
minBugs: {{minbugs}},
|
||||||
count: {{ sparkles }},
|
maxBugs: {{maxbugs}},
|
||||||
minAge: 500,
|
mouseOver: "multiply"
|
||||||
maxAge: 1000,
|
});
|
||||||
position: "afterend",
|
</script>
|
||||||
starsource: `
|
|
||||||
<svg
|
|
||||||
width="100%"
|
|
||||||
height="100%"
|
|
||||||
viewBox="0 0 15 15"
|
|
||||||
version="1.1"
|
|
||||||
xmlns="http://www.w3.org/2000/svg" x
|
|
||||||
mlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
xml:space="preserve"
|
|
||||||
xmlns:serif="http://www.serif.com/"
|
|
||||||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
|
||||||
<path d="M1.125,4.95l4.462,0l1.913,-3.825l0.637,3.825l5.738,0l-4.463,3.188l0.638,5.737l-3.187,-3.825l-4.463,3.825l1.913,-5.737l-3.188,-3.188Z"
|
|
||||||
style="fill:#aaad00;">
|
|
||||||
</path>
|
|
||||||
</svg>`,
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
|
|
Loading…
Reference in New Issue