2022-11-21 08:52:22 +00:00
|
|
|
{% extends "default.html" %}
|
2023-01-01 11:36:20 +00:00
|
|
|
{% block pagetitle %}{{game.capitalize()}}{% endblock %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block content %}
|
2022-12-29 14:20:27 +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
|
|
|
|
2022-12-29 14:20:27 +00:00
|
|
|
{% block script %}{% endblock %}
|
2022-09-10 21:01:34 +00:00
|
|
|
|
|
|
|
<div id="casino-game-wrapper" data-game="{{game}}" class="container-fluid" style="max-width: 500px">
|
2022-10-28 23:39:31 +00:00
|
|
|
<div class="row row-cols-1">
|
|
|
|
<div class="col game_screen-title">
|
|
|
|
<h3>{{game}}</h3>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<div class="col">{% block screen %} {% endblock %}</div>
|
|
|
|
<div class="col">
|
2023-01-20 07:14:59 +00:00
|
|
|
<div id="casinoGameResult" class="alert">
|
2022-12-11 23:44:34 +00:00
|
|
|
{% block result %}{% endblock %}
|
2022-10-28 23:39:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-22 15:11:01 +00:00
|
|
|
<div class="col">
|
|
|
|
{% set stats_alert_class = 'success' if v_stats[0] >= v_stats[2] else 'danger' %}
|
2023-01-20 07:14:59 +00:00
|
|
|
<div id="casinoGameStats" class="alert alert-{{stats_alert_class}}">
|
2022-11-22 15:11:01 +00:00
|
|
|
{{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>
|
2022-10-28 23:39:31 +00:00
|
|
|
<div class="col">
|
|
|
|
<div class="row row-cols-2">
|
2023-03-01 20:03:33 +00:00
|
|
|
<div class="col game_screen-col">
|
|
|
|
<div class="game_screen-title">
|
2022-10-28 23:39:31 +00:00
|
|
|
<h5>Wager</h5>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<input id="wagerAmount" type="number" min="5" step="1" value="5" class="form-control">
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<div class="game_screen-title">
|
|
|
|
<h5>Currency</h5>
|
|
|
|
<hr>
|
|
|
|
</div>
|
2023-01-20 07:14:59 +00:00
|
|
|
<div class="btn-group">
|
2023-03-24 17:13:50 +00:00
|
|
|
<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">
|
2023-06-29 20:14:30 +00:00
|
|
|
<img id="wagerCoinsImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?x=6" alt="coin" data-bs-toggle="tooltip"
|
2023-03-24 17:13:50 +00:00
|
|
|
data-bs-placement="bottom" title="Coin">
|
|
|
|
</label>
|
|
|
|
<span id="user-coins-amount-casino">{{v.coins}}</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<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">
|
2023-06-29 20:14:30 +00:00
|
|
|
<img id="wagerMarseybuxImg" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?x=6" alt="marseybux" data-bs-toggle="tooltip"
|
2023-03-24 17:13:50 +00:00
|
|
|
data-bs-placement="bottom" title="Marseybux">
|
|
|
|
</label>
|
|
|
|
<span id="user-bux-amount-casino">{{v.marseybux}}</span>
|
|
|
|
</span>
|
2022-10-28 23:39:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<div class="game_screen-title">
|
|
|
|
<h5>{% block actiontext %}Actions{% endblock %}</h5>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
{% block actions %} {% endblock %}
|
|
|
|
</div>
|
|
|
|
<div id="casinoGameFeed" data-feed="{{feed}}" class="col">
|
|
|
|
<div class="game_screen-title">
|
|
|
|
<h5>Feed</h5>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<ul id="casinoGameFeedList"></ul>
|
2022-12-30 12:14:18 +00:00
|
|
|
<button type="button" class="btn btn-secondary" style="width: 100%" data-nonce="{{g.nonce}}" data-onclick="reloadFeed()">
|
2022-10-28 23:39:31 +00:00
|
|
|
Reload Feed
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<div class="game_screen-title">
|
|
|
|
<h5>Leaders</h5>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<div id="gameLeaderboard" data-leaderboard="{{leaderboard}}">
|
2022-11-22 15:11:01 +00:00
|
|
|
{%- macro leaderboard(text, css_class, marsey, color) -%}
|
2022-10-28 23:39:31 +00:00
|
|
|
<div class="casino-game-leaderboard">
|
|
|
|
<div class="leaderboard-marsey-trophy">
|
2023-07-22 16:24:16 +00:00
|
|
|
<img loading="lazy" class="leaderboard-marsey-trophy__marsey" src="{{SITE_FULL_IMAGES}}/e/{{marsey}}.webp">
|
2023-09-15 11:01:04 +00:00
|
|
|
<i class="fas fa-trophy leaderboard-marsey-trophy__trophy" style="color: {{color}}"></i>
|
2022-10-28 23:39:31 +00:00
|
|
|
</div>
|
|
|
|
<div class="casino-game-leaderboard-info">
|
2022-11-22 15:11:01 +00:00
|
|
|
<small>{{text}}</small>
|
|
|
|
<h3 id="{{css_class}}">-</h3>
|
2022-10-28 23:39:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-22 15:11:01 +00:00
|
|
|
{%- endmacro -%}
|
|
|
|
{{leaderboard('Biggest Winner (All Time)', 'biggestWinnerAllTime', 'marseyhappytears', 'gold')}}
|
|
|
|
{{leaderboard('Biggest Winner (Last 24h)', 'biggestWinner24h', 'marseyexcited', 'gold')}}
|
|
|
|
{{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>
|
2022-09-10 21:01:34 +00:00
|
|
|
</div>
|
2022-10-10 05:40:33 +00:00
|
|
|
{% endblock %}
|