rDrama/files/templates/casino/game_screen.html

106 lines
4.0 KiB
HTML
Raw Normal View History

[DO NOT MERGE] titlesssssssssss (#468) * titles * testing * self * Revert "self" This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5. * Revert "testing" This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0. * testing on devrama * rewrite the html head * reference error or smth idk * tempalte debug * template debug redux * default2 * rename default2 -> root, page title * fix settings2 * include the set_variables block * root scope variables 2 * test 3 * remove unnecessary set * add pagetitles to all settings2 pages * add pagetitle to casino * remove bloat * remove duplicate site name thingy * page titles 2 * page titles 3 * remove duplicate imports and add page titles everywhere iirc * ok but actually this time * remove unnecessary newlines * fix title lol * > * fsdfsfsfsfsfs * fsfs * template configurations * fix 500 * reduce login template bloat * move files and add status codes where needful * move authfroms to login * remove 2fa bloat * verification code * sign up fixes * readability * fssfsfsfs * move forgot password to login/ * readability * don't emit comments * add page titles where needful * gsgsgs * modals: move to respective pages * testing on devrama * get home garbage out of title * remove insane amount of icon duplication * sign up text * add votes pagetitle * fix blank lines * Revert "fix blank lines" This reverts commit b2c54339970725d00b6fc82bb458c1757909952c. * Fix blank lines on sign_up.html. * title: votes.html more meaningful identifier. * titles: Lottery, Directory, Notifications * head final in submission.html * fix missing comma * > * test * title: /comments * fsfsfsfsf * titles: user_cards * head: only load video and audio meta attributes if they actually exist * titlessssss: /admin/lottery/participants * titlessssssss: extra quote in search.html * titlessssss: userpage voters. * titties: /h/<sub>/{followers,blockers,exilees[sic]} * test banner * Revert "test banner" This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826. * make submit.html inherit from default.html Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 08:52:22 +00:00
{% extends "default.html" %}
2023-01-01 11:36:20 +00:00
{% block pagetitle %}{{game.capitalize()}}{% endblock %}
[DO NOT MERGE] titlesssssssssss (#468) * titles * testing * self * Revert "self" This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5. * Revert "testing" This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0. * testing on devrama * rewrite the html head * reference error or smth idk * tempalte debug * template debug redux * default2 * rename default2 -> root, page title * fix settings2 * include the set_variables block * root scope variables 2 * test 3 * remove unnecessary set * add pagetitles to all settings2 pages * add pagetitle to casino * remove bloat * remove duplicate site name thingy * page titles 2 * page titles 3 * remove duplicate imports and add page titles everywhere iirc * ok but actually this time * remove unnecessary newlines * fix title lol * > * fsdfsfsfsfsfs * fsfs * template configurations * fix 500 * reduce login template bloat * move files and add status codes where needful * move authfroms to login * remove 2fa bloat * verification code * sign up fixes * readability * fssfsfsfs * move forgot password to login/ * readability * don't emit comments * add page titles where needful * gsgsgs * modals: move to respective pages * testing on devrama * get home garbage out of title * remove insane amount of icon duplication * sign up text * add votes pagetitle * fix blank lines * Revert "fix blank lines" This reverts commit b2c54339970725d00b6fc82bb458c1757909952c. * Fix blank lines on sign_up.html. * title: votes.html more meaningful identifier. * titles: Lottery, Directory, Notifications * head final in submission.html * fix missing comma * > * test * title: /comments * fsfsfsfsf * titles: user_cards * head: only load video and audio meta attributes if they actually exist * titlessssss: /admin/lottery/participants * titlessssssss: extra quote in search.html * titlessssss: userpage voters. * titties: /h/<sub>/{followers,blockers,exilees[sic]} * test banner * Revert "test banner" This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826. * make submit.html inherit from default.html Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 08:52:22 +00:00
{% block content %}
2023-10-29 12:51:00 +00:00
<link rel="stylesheet" href="{{('css/casino/game_screen.css') | asset}}">
<script defer src="{{'js/casino/game_screen.js' | asset}}"></script>
2022-10-28 23:39:31 +00:00
2023-10-29 12:51:00 +00:00
{% block script %}{% endblock %}
2023-10-29 12:51:00 +00:00
<div id="casino-game-wrapper" data-game="{{game}}" class="container-fluid" style="max-width: 500px">
<div class="row row-cols-1">
2023-12-24 23:05:02 +00:00
<div class="col hr-title">
2023-10-29 12:51:00 +00:00
<h3>{{game}}</h3>
<hr>
</div>
2023-10-29 12:51:00 +00:00
<div class="col">
{% set stats_alert_class = 'success' if v_stats[0] >= v_stats[2] else 'danger' %}
<div id="casinoGameStats" class="alert alert-{{stats_alert_class}}">
{{v_stats[0]}} win{{macros.plural(v_stats[0])}}{% if v_stats[1] %} - {{v_stats[1]}} tie{{macros.plural(v_stats[1])}}{% endif %} - {{v_stats[2]}} loss{{macros.plural(v_stats[2], 'es')}}
</div>
</div>
2023-10-29 12:51:00 +00:00
<div class="col">
<div id="casinoGameResult" class="alert">
{%- block result -%}{%- endblock -%}
2022-10-28 23:39:31 +00:00
</div>
2023-10-29 12:51:00 +00:00
</div>
<div class="col">{% block screen %} {% endblock %}</div>
<div class="col">
<div class="row row-cols-2">
<div class="col game_screen-col">
2023-12-24 23:05:02 +00:00
<div class="hr-title">
2023-10-29 12:51:00 +00:00
<h5>Wager</h5>
<hr>
</div>
<input id="wagerAmount" type="number" min="5" step="1" value="5" class="form-control">
2022-10-28 23:39:31 +00:00
</div>
2023-10-29 12:51:00 +00:00
<div class="col">
2023-12-24 23:05:02 +00:00
<div class="hr-title">
2023-10-29 12:51:00 +00:00
<h5>Currency</h5>
<hr>
</div>
<div class="btn-group">
<span class="unbreakable mr-3">
<input type="radio" class="btn-check" name="wagerCurrency" autocomplete="off" id="wagerCoins"
value="coin" checked>
<label for="wagerCoins" class="btn btn-primary border-0 px-0">
2024-03-05 18:40:55 +00:00
<img id="wagerCoinsImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/coins.webp?x=8" alt="coin" data-bs-toggle="tooltip"
2023-10-29 12:51:00 +00:00
data-bs-placement="bottom" title="Coin">
</label>
<span id="user-coins-amount-casino">{{v.coins}}</span>
</span>
2023-03-24 17:13:50 +00:00
2023-10-29 12:51:00 +00:00
<span class="unbreakable">
<input type="radio" class="btn-check" name="wagerCurrency" autocomplete="off" id="wagerMarseybux"
value="marseybux">
<label for="wagerMarseybux" class="btn btn-primary border-0 px-0">
2024-03-05 18:40:55 +00:00
<img id="wagerMarseybuxImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?x=8" alt="marseybux" data-bs-toggle="tooltip"
2023-10-29 12:51:00 +00:00
data-bs-placement="bottom" title="Marseybux">
</label>
<span id="user-bux-amount-casino">{{v.marseybux}}</span>
</span>
</div>
2022-10-28 23:39:31 +00:00
</div>
</div>
</div>
2023-10-29 12:51:00 +00:00
<div class="col">
2023-12-24 23:05:02 +00:00
<div class="hr-title">
2023-10-29 12:51:00 +00:00
<h5>{% block actiontext %}Actions{% endblock %}</h5>
<hr>
</div>
{% block actions %} {% endblock %}
2022-10-28 23:39:31 +00:00
</div>
2023-10-29 12:51:00 +00:00
<div id="casinoGameFeed" data-feed="{{feed}}" class="col">
2023-12-24 23:05:02 +00:00
<div class="hr-title">
2023-10-29 12:51:00 +00:00
<h5>Feed</h5>
<hr>
</div>
<ul id="casinoGameFeedList"></ul>
2022-10-28 23:39:31 +00:00
</div>
2023-10-29 12:51:00 +00:00
<div class="col">
2023-12-24 23:05:02 +00:00
<div class="hr-title">
2023-10-29 12:51:00 +00:00
<h5>Leaders</h5>
<hr>
</div>
<div id="gameLeaderboard" data-leaderboard="{{leaderboard}}">
{%- macro leaderboard(text, css_class, marsey, color) -%}
<div class="casino-game-leaderboard">
<div class="leaderboard-marsey-trophy">
<img loading="lazy" class="leaderboard-marsey-trophy__marsey" src="{{SITE_FULL_IMAGES}}/e/{{marsey}}.webp">
<i class="fas fa-trophy leaderboard-marsey-trophy__trophy" style="color: {{color}}"></i>
</div>
<div class="casino-game-leaderboard-info">
<small>{{text}}</small>
<h3 id="{{css_class}}">-</h3>
</div>
2022-10-28 23:39:31 +00:00
</div>
2023-10-29 12:51:00 +00:00
{%- endmacro -%}
{{leaderboard('Biggest Winner (Last 24h)', 'biggestWinner24h', 'marseyexcited', 'gold')}}
2023-11-27 21:18:28 +00:00
{{leaderboard('Biggest Winner (All Time)', 'biggestWinnerAllTime', 'marseyhappytears', 'gold')}}
2023-10-29 12:51:00 +00:00
{{leaderboard('Biggest Loser (Last 24h)', 'biggestLoser24h', 'marseycry', 'darkred')}}
{{leaderboard('Biggest Loser (All Time)', 'biggestLoserAllTime', 'marseyrain', 'darkred')}}
2022-10-28 23:39:31 +00:00
</div>
</div>
</div>
</div>
{% endblock %}