2021-10-21 13:30:05 +00:00
|
|
|
{% extends "default.html" %}
|
2022-06-08 03:25:39 +00:00
|
|
|
{%- set SHOP_FLAVOR = {
|
|
|
|
'rDrama': 'Stir drama.',
|
|
|
|
'PCM': 'Watch IP2.',
|
|
|
|
'WPD': 'Watch people die.',
|
|
|
|
}[SITE_NAME]
|
|
|
|
-%}
|
2021-10-21 13:30:05 +00:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>Shop</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
{% block pagetype %}message{% endblock %}
|
|
|
|
|
|
|
|
{% block Banner %}
|
2022-09-08 16:02:53 +00:00
|
|
|
<style>
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
#shop-banner {
|
|
|
|
width: 80%;
|
|
|
|
}
|
|
|
|
}
|
2022-09-18 17:12:28 +00:00
|
|
|
|
|
|
|
.shop-tab {
|
|
|
|
display: inline-flex;
|
|
|
|
max-width: 46.6%;
|
|
|
|
letter-spacing: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shop-tab.active {
|
|
|
|
background-color: var(--primary) !important;
|
|
|
|
pointer-events: none !important;
|
|
|
|
cursor: default !important;
|
|
|
|
}
|
2022-09-08 16:02:53 +00:00
|
|
|
</style>
|
|
|
|
|
2022-09-18 17:12:28 +00:00
|
|
|
<div class="container-fluid bg-white sticky" style="padding-top: 30px; padding-bottom: 0 !important;">
|
|
|
|
<div class="row box-shadow-bottom">
|
|
|
|
<div class="col">
|
|
|
|
<div class="container" style="padding-bottom: 0;">
|
2022-09-18 18:52:53 +00:00
|
|
|
<div class="row box-shadow-bottom bg-white pt-3" style="justify-content: center;">
|
2022-09-18 17:12:28 +00:00
|
|
|
<a class="btn btn-primary btn-block m-0 mr-3 shop-tab active" href="/shop">
|
|
|
|
<span class="mr-auto ml-auto"><i class="fas fa-gift mr-2"></i>AWARDS</span>
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-primary btn-block m-0 shop-tab" href="/hats">
|
|
|
|
<span class="mr-auto ml-auto"><i class="fas fa-hat-cowboy mr-2"></i>HATS</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<header class="container pb-1 text-center">
|
2022-09-08 16:02:53 +00:00
|
|
|
<img id="shop-banner" alt="shop banner" src="/i/shop.webp">
|
2022-06-08 03:25:39 +00:00
|
|
|
<h3 class="mt-4">{{SHOP_FLAVOR}} Earn coins.</h5>
|
2022-09-10 06:43:38 +00:00
|
|
|
<h5 class="mt-4">Total sales: {{"{:,}".format(sales)}} coins</h5>
|
|
|
|
<h5 class="mt-4">Coins spent by you: {{"{:,}".format(v.coins_spent)}} coins</h5>
|
2022-02-18 20:15:52 +00:00
|
|
|
<h5 class="mt-4">Lootboxes bought by you: {{v.lootboxes_bought}} lootbox{{'es' if v.lootboxes_bought != 1}}</h5>
|
2022-09-10 06:43:38 +00:00
|
|
|
<h5 class="mt-4">Your current coins: {{"{:,}".format(v.coins)}}</h5>
|
2022-07-18 05:10:01 +00:00
|
|
|
{% if FEATURES['PROCOINS'] %}
|
2022-09-10 06:43:38 +00:00
|
|
|
<h5 class="mt-4">Your current marseybux: {{"{:,}".format(v.procoins)}}</h3>
|
2022-05-09 12:13:38 +00:00
|
|
|
{% endif %}
|
2021-12-14 22:48:37 +00:00
|
|
|
</header>
|
2021-11-25 21:31:38 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2021-10-21 13:30:05 +00:00
|
|
|
{% block content %}
|
2021-12-14 22:48:37 +00:00
|
|
|
<pre>
|
|
|
|
</pre>
|
2021-10-22 23:50:00 +00:00
|
|
|
|
2021-12-31 16:51:53 +00:00
|
|
|
<div class="overflow-x-auto"><table class="table table-striped shop">
|
2021-12-14 22:48:37 +00:00
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th scope="col">Icon</th>
|
|
|
|
<th scope="col">Title</th>
|
|
|
|
<th scope="col">Price</th>
|
2022-09-03 03:04:51 +00:00
|
|
|
<th scope="col" onclick="sort_table(3)">Owned</th>
|
2021-12-14 22:48:37 +00:00
|
|
|
<th scope="col">Buy</th>
|
2022-03-19 14:10:04 +00:00
|
|
|
<th scope="col">Description</th>
|
2021-12-14 22:48:37 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for a in awards %}
|
2022-03-19 14:10:04 +00:00
|
|
|
<tr>
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-icon"><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
|
|
|
<td class="shop-table-title">{{a['title']}}</td>
|
2022-02-01 22:59:57 +00:00
|
|
|
{% if a['baseprice'] != a['price'] %}
|
2022-08-30 04:57:57 +00:00
|
|
|
<td class="shop-table-price">
|
|
|
|
<strike>{{a['baseprice']}}</strike> <em class="text-success">{{a['price']}}</em>
|
|
|
|
</td>
|
2022-05-18 02:07:07 +00:00
|
|
|
{% else %}
|
2022-08-30 04:57:57 +00:00
|
|
|
<td class="shop-table-price">{{a['price']}}</td>
|
2022-02-01 22:59:57 +00:00
|
|
|
{% endif %}
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-owned">{{a['owned']}}</td>
|
2021-12-14 22:48:37 +00:00
|
|
|
{% set kind = a['kind'] %}
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-actions">
|
2022-08-10 21:28:45 +00:00
|
|
|
{% if kind != "benefactor" %}
|
|
|
|
<a id="buy1-{{loop.index}}" class="btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" role="button" onclick="this.classList.add('d-none');document.getElementById('buy1-go-{{loop.index}}').classList.remove('d-none')"><span class="m-auto">Buy</span></a>
|
|
|
|
<a id="buy1-go-{{loop.index}}" class="d-none btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}')"><span class="m-auto">Are you sure?</span></a>
|
2022-08-06 02:03:10 +00:00
|
|
|
{% endif %}
|
2022-07-18 07:32:26 +00:00
|
|
|
{% if FEATURES['PROCOINS'] %}
|
2022-08-10 21:28:45 +00:00
|
|
|
{% if kind != "grass" %}
|
|
|
|
<a id="buy2-{{loop.index}}" class="marseybux btn btn-success {% if v.procoins < a['price'] %}disabled{% endif %}" role="button" onclick="this.classList.add('d-none');document.getElementById('buy2-go-{{loop.index}}').classList.remove('d-none')"><span class="m-auto">Buy with MBux</span></a>
|
|
|
|
<a id="buy2-go-{{loop.index}}" class="d-none marseybux btn btn-success {% if v.procoins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}?mb=true')"><span class="m-auto">Are you sure?</span></a>
|
2022-08-06 02:03:10 +00:00
|
|
|
{% endif %}
|
2022-05-09 12:13:38 +00:00
|
|
|
{% endif %}
|
2022-03-19 14:10:04 +00:00
|
|
|
</td>
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-description">{{a['description']}}</td>
|
2021-12-14 22:48:37 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
<pre>
|
2021-12-04 17:04:39 +00:00
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
2022-09-08 17:12:46 +00:00
|
|
|
<script defer src="{{asset('js/sort_table.js')}}"></script>
|
2021-10-21 13:30:05 +00:00
|
|
|
{% endblock %}
|