|
|
@ -1,65 +1,43 @@ |
|
|
|
{% include 'header.html' %} |
|
|
|
{% include 'header.html' %} |
|
|
|
|
|
|
|
{% from 'style.html' import breadcrumb_line_svg, place_new_offer_svg, page_back_svg, page_forwards_svg, filter_clear_svg, filter_apply_svg, input_arrow_down_svg, arrow_right_svg %} |
|
|
|
|
|
|
|
|
|
|
|
<div class="container mx-auto"> |
|
|
|
<div class="container mx-auto"> |
|
|
|
<section class="p-5 mt-5"> |
|
|
|
<section class="p-5 mt-5"> |
|
|
|
<div class="flex flex-wrap items-center -m-2"> |
|
|
|
<div class="flex flex-wrap items-center -m-2"> |
|
|
|
<div class="w-full md:w-1/2 p-2"> |
|
|
|
<div class="w-full md:w-1/2 p-2"> |
|
|
|
<ul class="flex flex-wrap items-center gap-x-3 mb-2"> |
|
|
|
<ul class="flex flex-wrap items-center gap-x-3 mb-2"> |
|
|
|
<li> |
|
|
|
<li><a class="flex font-medium text-xs text-coolGray-500 dark:text-gray-300 hover:text-coolGray-700" href="/">Home</a></li> |
|
|
|
<a class="flex font-medium text-xs text-coolGray-500 dark:text-gray-300 hover:text-coolGray-700" href="/"> |
|
|
|
<li>{{ breadcrumb_line_svg | safe }}</li> |
|
|
|
<p>Home</p> |
|
|
|
<li><a class="flex font-medium text-xs text-coolGray-500 dark:text-gray-300 hover:text-coolGray-700" href="/wallets">{{ page_type }}</a></li> |
|
|
|
</a> |
|
|
|
<li>{{ breadcrumb_line_svg | safe }}</li> |
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<svg width="6" height="15" viewBox="0 0 6 15" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
|
|
|
|
<path d="M5.34 0.671999L2.076 14.1H0.732L3.984 0.671999H5.34Z" fill="#BBC3CF"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<a class="flex font-medium text-xs text-coolGray-500 dark:text-gray-300 hover:text-coolGray-700" href="#">{{ page_type }}</a> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<svg width="6" height="15" viewBox="0 0 6 15" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
|
|
|
|
<path d="M5.34 0.671999L2.076 14.1H0.732L3.984 0.671999H5.34Z" fill="#BBC3CF"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
|
|
<section class="py-4"> |
|
|
|
<section class="py-4"> |
|
|
|
<div class="container px-4 mx-auto"> |
|
|
|
<div class="container px-4 mx-auto"> |
|
|
|
<div class="relative py-11 px-16 bg-coolGray-900 dark:bg-blue-500 rounded-md overflow-hidden"> |
|
|
|
<div class="relative py-11 px-16 bg-coolGray-900 dark:bg-blue-500 rounded-md overflow-hidden"> |
|
|
|
<img class="absolute z-10 left-4 top-4" src="/static/images/elements/dots-red.svg" alt=""> |
|
|
|
<img class="absolute z-10 left-4 top-4 right-4 bottom-4" src="/static/images/elements/dots-red.svg" alt="dots-red"> |
|
|
|
<img class="absolute z-10 right-4 bottom-4" src="/static/images/elements/dots-red.svg" alt=""> |
|
|
|
<img class="absolute h-64 left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 object-cover" src="/static/images/elements/wave.svg" alt="wave"> |
|
|
|
<img class="absolute h-64 left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 object-cover" src="/static/images/elements/wave.svg" alt=""> |
|
|
|
|
|
|
|
<div class="relative z-20 flex flex-wrap items-center -m-3"> |
|
|
|
<div class="relative z-20 flex flex-wrap items-center -m-3"> |
|
|
|
<div class="w-full md:w-1/2 p-3"> |
|
|
|
<div class="w-full md:w-1/2 p-3"> |
|
|
|
<h2 class="mb-6 text-4xl font-bold text-white tracking-tighter">{{ page_type }}</h2> |
|
|
|
<h2 class="mb-6 text-4xl font-bold text-white tracking-tighter">{{ page_type }}</h2> |
|
|
|
<p class="font-normal text-coolGray-200 dark:text-white">{{ page_type_description }}</p> |
|
|
|
<p class="font-normal text-coolGray-200 dark:text-white">{{ page_type_description }}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="{{ page_button }} w-full md:w-1/2 p-3 p-6 container flex flex-wrap items-center justify-end items-center mx-auto"> |
|
|
|
<div class="rounded-full{{ page_button }} w-full md:w-1/2 p-3 p-6 container flex flex-wrap items-center justify-end items-center mx-auto"> |
|
|
|
<a id="refresh" href="/newoffer" class="flex flex-wrap justify-center px-5 py-4 bg-blue-500 hover:bg-blue-600 font-medium text-sm text-white border dark:bg-gray-500 dark:hover:bg-gray-700 border-blue-500 rounded-md shadow-button focus:ring-0 focus:outline-none"> |
|
|
|
<a id="refresh" href="/newoffer" class="rounded-full flex flex-wrap justify-center px-5 py-4 bg-blue-500 hover:bg-blue-600 font-medium text-sm text-white border dark:bg-gray-500 dark:hover:bg-gray-700 border-blue-500 rounded-md shadow-button focus:ring-0 focus:outline-none"> |
|
|
|
<svg class="text-gray-500 w-5 h-5 mr-2" xmlns="http://www.w3.org/2000/svg" height="18" width="18" viewBox="0 0 24 24"> |
|
|
|
{{ place_new_offer_svg | safe }} <span>Place new Offer</span> |
|
|
|
<g stroke-linecap="round" stroke-width="2" fill="none" stroke="#ffffff" stroke-linejoin="round"> |
|
|
|
|
|
|
|
<circle cx="5" cy="5" r="4"></circle> |
|
|
|
|
|
|
|
<circle cx="19" cy="19" r="4"></circle> |
|
|
|
|
|
|
|
<polyline data-cap="butt" points="13,5 21,5 21,11 " stroke="#ffffff"></polyline> |
|
|
|
|
|
|
|
<polyline data-cap="butt" points="11,19 3,19 3,13 " stroke="#ffffff"></polyline> |
|
|
|
|
|
|
|
<polyline points=" 16,2 13,5 16,8 " stroke="#ffffff"></polyline> |
|
|
|
|
|
|
|
<polyline points=" 8,16 11,19 8,22 " stroke="#ffffff"></polyline> |
|
|
|
|
|
|
|
</g> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<span>Place new Offer</span> |
|
|
|
|
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
{% include 'inc_messages.html' %} |
|
|
|
{% include 'inc_messages.html' %} |
|
|
|
|
|
|
|
|
|
|
|
{% if show_chart %} |
|
|
|
{% if show_chart %} |
|
|
|
<section class="relative"> |
|
|
|
<section class="relative"> |
|
|
|
<div class="pl-6 pr-6 pt-0 pb-0 mt-5 h-full overflow-hidden"> |
|
|
|
<div class="pl-6 pr-6 pt-0 pb-0 mt-5 h-full overflow-hidden"> |
|
|
|
<div class="pb-6 border-coolGray-100"> |
|
|
|
<div class="pb-6 border-coolGray-100"> |
|
|
|
<div class="flex flex-wrap items-center justify-between -m-2"> |
|
|
|
<div class="flex flex-wrap items-center justify-between -m-2"> |
|
|
@ -85,13 +63,14 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
|
|
<section class="py-4 overflow-hidden container-to-blur"> |
|
|
|
<section class="py-4 overflow-hidden container-to-blur"> |
|
|
|
<div class="container px-4 mx-auto"> |
|
|
|
<div class="container px-4 mx-auto"> |
|
|
|
<div class="flex flex-wrap -m-3"> |
|
|
|
<div class="flex flex-wrap -m-3"> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="btc-container"> |
|
|
|
|
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white" id="btc-active"> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="btc-container"> |
|
|
|
|
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white active-container" id="btc-active"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<img src="/static/images/coins/Bitcoin-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<img src="/static/images/coins/Bitcoin-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<p class="text-sm text-neutral-500 font-medium">Bitcoin (BTC)</p> |
|
|
|
<p class="text-sm text-neutral-500 font-medium">Bitcoin (BTC)</p> |
|
|
@ -111,16 +90,22 @@ |
|
|
|
</h3> |
|
|
|
</h3> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="text-xs text-neutral-400 font-medium"> |
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
Volume 24H:<div class="text-xs" id="btc-volume-24h"></div> |
|
|
|
Volume 24H: |
|
|
|
|
|
|
|
<div class="text-xs" id="btc-volume-24h"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium hidden"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="usd-price-btc"></div> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="xmr-container"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="xmr-container"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<img src="/static/images/coins/Monero-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<img src="/static/images/coins/Monero-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<p class="text-sm text-neutral-500 font-medium">Monero (XMR)</p> |
|
|
|
<p class="text-sm text-neutral-500 font-medium">Monero (BTC)</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex flex-wrap items-center mb-2 -m-1"> |
|
|
|
<div class="flex flex-wrap items-center mb-2 -m-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
@ -133,18 +118,22 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<h3 class="font-heading text-1xl font-semibold"> |
|
|
|
<h3 class="font-heading text-1xl font-semibold"> |
|
|
|
<div class="text-xs" id="xmr-price-btc"></div> |
|
|
|
<div id="xmr-price-usd"></div> |
|
|
|
</h3> |
|
|
|
</h3> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="text-xs text-neutral-400 font-medium"> |
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
Volume 24H:<div class="text-xs" id="xmr-volume-24h"></div> |
|
|
|
Volume 24H: |
|
|
|
|
|
|
|
<div class="text-xs" id="xmr-volume-24h"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="xmr-price-btc"></div> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="part-container"> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="part-container"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<img src="/static/images/coins/Particl-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<img src="/static/images/coins/Particl-20.png" height="20" width="20" class="mr-2"> |
|
|
@ -159,19 +148,19 @@ |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div id="part-price-change-container" class="w-auto p-1"></div> |
|
|
|
<div id="part-price-change-container" class="w-auto p-1"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
|
|
|
|
<h3 class="font-heading text-1xl font-semibold"> |
|
|
|
|
|
|
|
<div class="text-xs" id="part-price-btc"></div> |
|
|
|
|
|
|
|
</h3> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="text-xs text-neutral-400 font-medium"> |
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
Volume 24H:<div class="text-xs"id="part-volume-24h"></div> |
|
|
|
Volume 24H: |
|
|
|
|
|
|
|
<div class="text-xs" id="part-volume-24h"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="part-price-btc"></div> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="pivx-container"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="pivx-container"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<img src="/static/images/coins/PIVX-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<img src="/static/images/coins/PIVX-20.png" height="20" width="20" class="mr-2"> |
|
|
@ -186,19 +175,19 @@ |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div id="pivx-price-change-container" class="w-auto p-1"></div> |
|
|
|
<div id="pivx-price-change-container" class="w-auto p-1"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
|
|
|
|
<h3 class="text-xs font-semibold"> |
|
|
|
|
|
|
|
<div id="pivx-price-btc"></div> |
|
|
|
|
|
|
|
</h3> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
</div> |
|
|
|
Volume 24H: |
|
|
|
<p class="text-xs text-neutral-400 font-medium"> |
|
|
|
<div class="text-xs" id="pivx-volume-24h"></div> |
|
|
|
Volume 24H:<div class="text-xs" id="pivx-volume-24h"></div> |
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="pivx-price-btc"></div> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="firo-container"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="firo-container"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<img src="/static/images/coins/Firo-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<img src="/static/images/coins/Firo-20.png" height="20" width="20" class="mr-2"> |
|
|
@ -213,19 +202,19 @@ |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div id="firo-price-change-container" class="w-auto p-1"></div> |
|
|
|
<div id="firo-price-change-container" class="w-auto p-1"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
|
|
|
|
<h3 class="text-xs font-semibold"> |
|
|
|
|
|
|
|
<div id="firo-price-btc"></div> |
|
|
|
|
|
|
|
</h3> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="text-xs text-neutral-400 font-medium"> |
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
Volume 24H:<div class="text-xs" id="firo-volume-24h"></div> |
|
|
|
Volume 24H: |
|
|
|
|
|
|
|
<div class="text-xs" id="firo-volume-24h"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="firo-price-btc"></div> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="ltc-container"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="ltc-container"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<img src="/static/images/coins/Litecoin-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<img src="/static/images/coins/Litecoin-20.png" height="20" width="20" class="mr-2"> |
|
|
@ -240,18 +229,19 @@ |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div id="ltc-price-change-container" class="w-auto p-1"></div> |
|
|
|
<div id="ltc-price-change-container" class="w-auto p-1"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
|
|
|
|
<h3 class="text-xs font-semibold"> |
|
|
|
|
|
|
|
<div id="ltc-price-btc"></div> |
|
|
|
|
|
|
|
</h3> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="text-xs text-neutral-400 font-medium"> |
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
Volume 24H:<div class="text-xs" id="ltc-volume-24h"></div> |
|
|
|
Volume 24H: |
|
|
|
|
|
|
|
<div class="text-xs" id="ltc-volume-24h"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="ltc-price-btc"></div> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="dash-container"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="dash-container"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<img src="/static/images/coins/Dash-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<img src="/static/images/coins/Dash-20.png" height="20" width="20" class="mr-2"> |
|
|
@ -266,18 +256,19 @@ |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div id="dash-price-change-container" class="w-auto p-1"></div> |
|
|
|
<div id="dash-price-change-container" class="w-auto p-1"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
|
|
|
|
<h3 class="text-xs font-semibold"> |
|
|
|
|
|
|
|
<div id="dash-price-btc"></div> |
|
|
|
|
|
|
|
</h3> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
<p class="text-xs text-neutral-400 font-medium"> |
|
|
|
Volume 24H: |
|
|
|
Volume 24H:<div class="text-xs" id="dash-volume-24h"></div> |
|
|
|
<div class="text-xs" id="dash-volume-24h"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="dash-price-btc"></div> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="doge-container"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="doge-container"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
<img src="/static/images/coins/Doge-20.png" height="20" width="20" class="mr-2"> |
|
|
|
<img src="/static/images/coins/Doge-20.png" height="20" width="20" class="mr-2"> |
|
|
@ -292,22 +283,50 @@ |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div id="doge-price-change-container" class="w-auto p-1"></div> |
|
|
|
<div id="doge-price-change-container" class="w-auto p-1"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Volume 24H: |
|
|
|
|
|
|
|
<div class="text-xs" id="doge-volume-24h"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="doge-price-btc"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full sm:w-1/2 lg:w-1/5 p-3" id="eth-container"> |
|
|
|
|
|
|
|
<div class="px-5 py-3 h-full bg-coolGray-100 dark:bg-gray-500 rounded-lg dark:text-white"> |
|
|
|
|
|
|
|
<div class="flex items-center mb-2.5"> |
|
|
|
|
|
|
|
<img src="/static/images/coins/Ethereum-20.png" height="20" width="20" class="mr-2"> |
|
|
|
|
|
|
|
<p class="text-sm text-neutral-500 font-medium">Ethereum (ETH)</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="flex flex-wrap items-center mb-2 -m-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<div class="w-auto p-1"> |
|
|
|
<h3 class="text-xs font-semibold"> |
|
|
|
<h3 class="font-heading text-1xl font-semibold"> |
|
|
|
<div id="doge-price-btc"></div> |
|
|
|
<div id="eth-price-usd"></div> |
|
|
|
</h3> |
|
|
|
</h3> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="w-auto p-1"> |
|
|
|
|
|
|
|
<div id="eth-price-change-container" class="w-auto p-1"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="text-xs text-neutral-400 font-medium"> |
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
Volume 24H:<div class="text-xs" id="doge-volume-24h"></div> |
|
|
|
Volume 24H: |
|
|
|
|
|
|
|
<div class="text-xs" id="eth-volume-24h"></div> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="text-2xs text-neutral-400 font-medium"> |
|
|
|
|
|
|
|
Price in BTC: |
|
|
|
|
|
|
|
<div class="text-xs" id="eth-price-btc"></div> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
|
|
|
|
<script> |
|
|
|
</section> |
|
|
|
window.addEventListener('load', function() { |
|
|
|
<script> |
|
|
|
|
|
|
|
window.addEventListener('load', function() { |
|
|
|
const api_key = '{{chart_api_key}}'; |
|
|
|
const api_key = '{{chart_api_key}}'; |
|
|
|
const coins = ['BTC', 'PART', 'XMR', 'LTC', 'FIRO', 'DASH', 'PIVX', 'DOGE']; |
|
|
|
const coins = ['BTC', 'PART', 'XMR', 'LTC', 'FIRO', 'DASH', 'PIVX', 'DOGE', 'ETH']; |
|
|
|
coins.forEach(coin => { |
|
|
|
coins.forEach(coin => { |
|
|
|
fetch(`https://min-api.cryptocompare.com/data/pricemultifull?fsyms=${coin}&tsyms=USD,BTC&api_key=${api_key}`) |
|
|
|
fetch(`https://min-api.cryptocompare.com/data/pricemultifull?fsyms=${coin}&tsyms=USD,BTC&api_key=${api_key}`) |
|
|
|
.then(response => { |
|
|
|
.then(response => { |
|
|
@ -392,7 +411,7 @@ function negativePriceChangeHTML(value) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function setActiveContainer(containerId) { |
|
|
|
function setActiveContainer(containerId) { |
|
|
|
const containerIds = ['btc-container', 'xmr-container', 'part-container', 'pivx-container', 'firo-container', 'dash-container', 'ltc-container', 'doge-container']; |
|
|
|
const containerIds = ['btc-container', 'xmr-container', 'part-container', 'pivx-container', 'firo-container', 'dash-container', 'ltc-container', 'doge-container', 'eth-container']; |
|
|
|
const activeClass = 'active-container'; |
|
|
|
const activeClass = 'active-container'; |
|
|
|
containerIds.forEach(id => { |
|
|
|
containerIds.forEach(id => { |
|
|
|
const container = document.getElementById(id); |
|
|
|
const container = document.getElementById(id); |
|
|
@ -437,6 +456,10 @@ document.getElementById('doge-container').addEventListener('click', () => { |
|
|
|
setActiveContainer('doge-container'); |
|
|
|
setActiveContainer('doge-container'); |
|
|
|
updateChart('DOGE'); |
|
|
|
updateChart('DOGE'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById('eth-container').addEventListener('click', () => { |
|
|
|
|
|
|
|
setActiveContainer('eth-container'); |
|
|
|
|
|
|
|
updateChart('ETH'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
let coin; |
|
|
|
let coin; |
|
|
|
const coinOptions = { |
|
|
|
const coinOptions = { |
|
|
@ -580,7 +603,8 @@ const chart = new Chart(ctx, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
<section> |
|
|
|
<section> |
|
|
|
<div class="pl-6 pr-6 pt-0 pb-0 mt-5 h-full overflow-hidden"> |
|
|
|
<div class="pl-6 pr-6 pt-0 pb-0 mt-5 h-full overflow-hidden"> |
|
|
|
<div class="pb-6 border-coolGray-100"> |
|
|
|
<div class="pb-6 border-coolGray-100"> |
|
|
@ -592,10 +616,7 @@ const chart = new Chart(ctx, { |
|
|
|
<div class="w-full md:w-0/12"> |
|
|
|
<div class="w-full md:w-0/12"> |
|
|
|
<div class="flex flex-wrap justify-end -m-1.5"> |
|
|
|
<div class="flex flex-wrap justify-end -m-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="relative"> |
|
|
|
<div class="relative">{{ input_arrow_down_svg | safe }} |
|
|
|
<svg class="absolute right-4 top-1/2 transform -translate-y-1/2 " width="16 " height="16 " viewBox="0 0 16 16 " fill="none " xmlns="http://www.w3.org/2000/svg "> |
|
|
|
|
|
|
|
<path d="M11.3333 6.1133C11.2084 5.98913 11.0395 5.91943 10.8633 5.91943C10.6872 5.91943 10.5182 5.98913 10.3933 6.1133L8.00001 8.47329L5.64001 6.1133C5.5151 5.98913 5.34613 5.91943 5.17001 5.91943C4.99388 5.91943 4.82491 5.98913 4.70001 6.1133C4.63752 6.17527 4.58792 6.249 4.55408 6.33024C4.52023 6.41148 4.50281 6.49862 4.50281 6.58663C4.50281 6.67464 4.52023 6.76177 4.55408 6.84301C4.58792 6.92425 4.63752 6.99799 4.70001 7.05996L7.52667 9.88663C7.58865 9.94911 7.66238 9.99871 7.74362 10.0326C7.82486 10.0664 7.912 10.0838 8.00001 10.0838C8.08801 10.0838 8.17515 10.0664 8.25639 10.0326C8.33763 9.99871 8.41136 9.94911 8.47334 9.88663L11.3333 7.05996C11.3958 6.99799 11.4454 6.92425 11.4793 6.84301C11.5131 6.76177 11.5305 6.67464 11.5305 6.58663C11.5305 6.49862 11.5131 6.41148 11.4793 6.33024C11.4454 6.249 11.3958 6.17527 11.3333 6.1133Z " fill="#8896AB"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<select name="coin_from" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<select name="coin_from" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<option value="any" {% if filters.coin_from==-1 %} selected{% endif %}>Any</option> |
|
|
|
<option value="any" {% if filters.coin_from==-1 %} selected{% endif %}>Any</option> |
|
|
|
{% for c in coins_from %} |
|
|
|
{% for c in coins_from %} |
|
|
@ -606,18 +627,13 @@ const chart = new Chart(ctx, { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex items-center"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<p class="text-sm font-heading"> |
|
|
|
<p class="text-sm font-heading">{{ arrow_right_svg | safe }} |
|
|
|
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg "> |
|
|
|
|
|
|
|
<path fill-rule="evenodd " d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z " clip-rule="evenodd"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="relative"> |
|
|
|
<div class="relative">{{ input_arrow_down_svg | safe }} |
|
|
|
<svg class="absolute right-4 top-1/2 transform -translate-y-1/2" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
|
|
|
|
<path d="M11.3333 6.1133C11.2084 5.98913 11.0395 5.91943 10.8633 5.91943C10.6872 5.91943 10.5182 5.98913 10.3933 6.1133L8.00001 8.47329L5.64001 6.1133C5.5151 5.98913 5.34613 5.91943 5.17001 5.91943C4.99388 5.91943 4.82491 5.98913 4.70001 6.1133C4.63752 6.17527 4.58792 6.249 4.55408 6.33024C4.52023 6.41148 4.50281 6.49862 4.50281 6.58663C4.50281 6.67464 4.52023 6.76177 4.55408 6.84301C4.58792 6.92425 4.63752 6.99799 4.70001 7.05996L7.52667 9.88663C7.58865 9.94911 7.66238 9.99871 7.74362 10.0326C7.82486 10.0664 7.912 10.0838 8.00001 10.0838C8.08801 10.0838 8.17515 10.0664 8.25639 10.0326C8.33763 9.99871 8.41136 9.94911 8.47334 9.88663L11.3333 7.05996C11.3958 6.99799 11.4454 6.92425 11.4793 6.84301C11.5131 6.76177 11.5305 6.67464 11.5305 6.58663C11.5305 6.49862 11.5131 6.41148 11.4793 6.33024C11.4454 6.249 11.3958 6.17527 11.3333 6.1133Z" fill="#8896AB"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<!-- is="ms-dropdown" todo --> |
|
|
|
<!-- is="ms-dropdown" todo --> |
|
|
|
<select name="coin_to" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<select name="coin_to" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<option value="any" {% if filters.coin_to==-1 %} selected{% endif %}>Any</option> |
|
|
|
<option value="any" {% if filters.coin_to==-1 %} selected{% endif %}>Any</option> |
|
|
@ -633,10 +649,7 @@ const chart = new Chart(ctx, { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="relative"> |
|
|
|
<div class="relative">{{ input_arrow_down_svg | safe }} |
|
|
|
<svg class="absolute right-4 top-1/2 transform -translate-y-1/2" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
|
|
|
|
<path d="M11.3333 6.1133C11.2084 5.98913 11.0395 5.91943 10.8633 5.91943C10.6872 5.91943 10.5182 5.98913 10.3933 6.1133L8.00001 8.47329L5.64001 6.1133C5.5151 5.98913 5.34613 5.91943 5.17001 5.91943C4.99388 5.91943 4.82491 5.98913 4.70001 6.1133C4.63752 6.17527 4.58792 6.249 4.55408 6.33024C4.52023 6.41148 4.50281 6.49862 4.50281 6.58663C4.50281 6.67464 4.52023 6.76177 4.55408 6.84301C4.58792 6.92425 4.63752 6.99799 4.70001 7.05996L7.52667 9.88663C7.58865 9.94911 7.66238 9.99871 7.74362 10.0326C7.82486 10.0664 7.912 10.0838 8.00001 10.0838C8.08801 10.0838 8.17515 10.0664 8.25639 10.0326C8.33763 9.99871 8.41136 9.94911 8.47334 9.88663L11.3333 7.05996C11.3958 6.99799 11.4454 6.92425 11.4793 6.84301C11.5131 6.76177 11.5305 6.67464 11.5305 6.58663C11.5305 6.49862 11.5131 6.41148 11.4793 6.33024C11.4454 6.249 11.3958 6.17527 11.3333 6.1133Z" fill="#8896AB"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<select name="sort_by" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<select name="sort_by" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<option value="created_at" {% if filters.sort_by=='created_at' %} selected{% endif %}>Time Created</option> |
|
|
|
<option value="created_at" {% if filters.sort_by=='created_at' %} selected{% endif %}>Time Created</option> |
|
|
|
<option value="rate" {% if filters.sort_by=='rate' %} selected{% endif %}>Rate</option> |
|
|
|
<option value="rate" {% if filters.sort_by=='rate' %} selected{% endif %}>Rate</option> |
|
|
@ -644,10 +657,7 @@ const chart = new Chart(ctx, { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="relative"> |
|
|
|
<div class="relative">{{ input_arrow_down_svg | safe }} |
|
|
|
<svg class="absolute right-4 top-1/2 transform -translate-y-1/2" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
|
|
|
|
<path d="M11.3333 6.1133C11.2084 5.98913 11.0395 5.91943 10.8633 5.91943C10.6872 5.91943 10.5182 5.98913 10.3933 6.1133L8.00001 8.47329L5.64001 6.1133C5.5151 5.98913 5.34613 5.91943 5.17001 5.91943C4.99388 5.91943 4.82491 5.98913 4.70001 6.1133C4.63752 6.17527 4.58792 6.249 4.55408 6.33024C4.52023 6.41148 4.50281 6.49862 4.50281 6.58663C4.50281 6.67464 4.52023 6.76177 4.55408 6.84301C4.58792 6.92425 4.63752 6.99799 4.70001 7.05996L7.52667 9.88663C7.58865 9.94911 7.66238 9.99871 7.74362 10.0326C7.82486 10.0664 7.912 10.0838 8.00001 10.0838C8.08801 10.0838 8.17515 10.0664 8.25639 10.0326C8.33763 9.99871 8.41136 9.94911 8.47334 9.88663L11.3333 7.05996C11.3958 6.99799 11.4454 6.92425 11.4793 6.84301C11.5131 6.76177 11.5305 6.67464 11.5305 6.58663C11.5305 6.49862 11.5131 6.41148 11.4793 6.33024C11.4454 6.249 11.3958 6.17527 11.3333 6.1133Z" fill="#8896AB"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<select name="sort_dir" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<select name="sort_dir" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<option value="asc" {% if filters.sort_dir=='asc' %} selected{% endif %}>Ascending</option> |
|
|
|
<option value="asc" {% if filters.sort_dir=='asc' %} selected{% endif %}>Ascending</option> |
|
|
|
<option value="desc" {% if filters.sort_dir=='desc' %} selected{% endif %}>Descending</option> |
|
|
|
<option value="desc" {% if filters.sort_dir=='desc' %} selected{% endif %}>Descending</option> |
|
|
@ -660,10 +670,7 @@ const chart = new Chart(ctx, { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="relative"> |
|
|
|
<div class="relative">{{ input_arrow_down_svg | safe }} |
|
|
|
<svg class="absolute right-4 top-1/2 transform -translate-y-1/2" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
|
|
|
|
<path d="M11.3333 6.1133C11.2084 5.98913 11.0395 5.91943 10.8633 5.91943C10.6872 5.91943 10.5182 5.98913 10.3933 6.1133L8.00001 8.47329L5.64001 6.1133C5.5151 5.98913 5.34613 5.91943 5.17001 5.91943C4.99388 5.91943 4.82491 5.98913 4.70001 6.1133C4.63752 6.17527 4.58792 6.249 4.55408 6.33024C4.52023 6.41148 4.50281 6.49862 4.50281 6.58663C4.50281 6.67464 4.52023 6.76177 4.55408 6.84301C4.58792 6.92425 4.63752 6.99799 4.70001 7.05996L7.52667 9.88663C7.58865 9.94911 7.66238 9.99871 7.74362 10.0326C7.82486 10.0664 7.912 10.0838 8.00001 10.0838C8.08801 10.0838 8.17515 10.0664 8.25639 10.0326C8.33763 9.99871 8.41136 9.94911 8.47334 9.88663L11.3333 7.05996C11.3958 6.99799 11.4454 6.92425 11.4793 6.84301C11.5131 6.76177 11.5305 6.67464 11.5305 6.58663C11.5305 6.49862 11.5131 6.41148 11.4793 6.33024C11.4454 6.249 11.3958 6.17527 11.3333 6.1133Z" fill="#8896AB"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<select name="sent_from" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<select name="sent_from" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<option value="any" {% if filters.sent_from=='any' %} selected{% endif %}>Any</option> |
|
|
|
<option value="any" {% if filters.sent_from=='any' %} selected{% endif %}>Any</option> |
|
|
|
<option value="only" {% if filters.sent_from=='only' %} selected{% endif %}>Only</option> |
|
|
|
<option value="only" {% if filters.sent_from=='only' %} selected{% endif %}>Only</option> |
|
|
@ -677,10 +684,7 @@ const chart = new Chart(ctx, { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="relative"> |
|
|
|
<div class="relative">{{ input_arrow_down_svg | safe }} |
|
|
|
<svg class="absolute right-4 top-1/2 transform -translate-y-1/2" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
|
|
|
|
<path d="M11.3333 6.1133C11.2084 5.98913 11.0395 5.91943 10.8633 5.91943C10.6872 5.91943 10.5182 5.98913 10.3933 6.1133L8.00001 8.47329L5.64001 6.1133C5.5151 5.98913 5.34613 5.91943 5.17001 5.91943C4.99388 5.91943 4.82491 5.98913 4.70001 6.1133C4.63752 6.17527 4.58792 6.249 4.55408 6.33024C4.52023 6.41148 4.50281 6.49862 4.50281 6.58663C4.50281 6.67464 4.52023 6.76177 4.55408 6.84301C4.58792 6.92425 4.63752 6.99799 4.70001 7.05996L7.52667 9.88663C7.58865 9.94911 7.66238 9.99871 7.74362 10.0326C7.82486 10.0664 7.912 10.0838 8.00001 10.0838C8.08801 10.0838 8.17515 10.0664 8.25639 10.0326C8.33763 9.99871 8.41136 9.94911 8.47334 9.88663L11.3333 7.05996C11.3958 6.99799 11.4454 6.92425 11.4793 6.84301C11.5131 6.76177 11.5305 6.67464 11.5305 6.58663C11.5305 6.49862 11.5131 6.41148 11.4793 6.33024C11.4454 6.249 11.3958 6.17527 11.3333 6.1133Z" fill="#8896AB"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<select name="active" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<select name="active" class="hover:border-blue-500 bg-gray-50 text-gray-900 appearance-none pr-10 dark:bg-gray-500 dark:text-white border border-gray-300 dark:border-gray-400 dark:text-gray-50 dark:placeholder-gray-50 text-sm rounded-lg outline-none focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 focus:ring-0"> |
|
|
|
<option value="any" {% if filters.active=='any' %} selected{% endif %}>Any</option> |
|
|
|
<option value="any" {% if filters.active=='any' %} selected{% endif %}>Any</option> |
|
|
|
<option value="active" {% if filters.active=='active' %} selected{% endif %}>Active</option> |
|
|
|
<option value="active" {% if filters.active=='active' %} selected{% endif %}>Active</option> |
|
|
@ -692,34 +696,14 @@ const chart = new Chart(ctx, { |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="relative"> |
|
|
|
<div class="relative"> |
|
|
|
<button type="submit" name='clearfilters' value="Clear Filters" class="flex flex-wrap justify-center w-full px-4 py-2.5 font-medium text-sm text-white bg-blue-500 hover:bg-blue-600 rounded-lg transition duration-200 border border-blue-500 rounded-md shadow-button focus:ring-0 focus:outline-none"> |
|
|
|
<button type="submit" name='clearfilters' value="Clear Filters" class="flex flex-wrap justify-center w-full px-4 py-2.5 font-medium text-sm text-white bg-blue-500 hover:bg-blue-600 rounded-lg transition duration-200 border border-blue-500 rounded-md shadow-button focus:ring-0 focus:outline-none">{{ filter_clear_svg | safe }} |
|
|
|
<svg class="mr-2 w-5 h-5" xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24"> |
|
|
|
|
|
|
|
<g stroke-linecap="round" stroke-width="2" fill="none" stroke="#ffffff" stroke-linejoin="round"> |
|
|
|
|
|
|
|
<line x1="20" y1="2" x2="12.329" y2="11.506"></line> |
|
|
|
|
|
|
|
<path d="M11,11a2,2,0,0,1,2,2,3.659,3.659,0,0,1-.2.891A9.958,9.958,0,0,0,13.258,23H1C1,16.373,4.373,11,11,11Z"></path> |
|
|
|
|
|
|
|
<line x1="18" y1="15" x2="23" y2="15" stroke="#ffffff"></line> |
|
|
|
|
|
|
|
<line x1="17" y1="19" x2="23" y2="19" stroke="#ffffff"></line> |
|
|
|
|
|
|
|
<line x1="19" y1="23" x2="23" y2="23" stroke="#ffffff"></line> |
|
|
|
|
|
|
|
<path d="M8.059,11.415A3.9,3.9,0,0,0,12,16c.041,0,.079-.011.12-.012" data-cap="butt"></path> |
|
|
|
|
|
|
|
<path d="M5,23a13.279,13.279,0,0,1,.208-3.4" data-cap="butt"></path> |
|
|
|
|
|
|
|
<path d="M9.042,23c-.688-1.083-.313-3.4-.313-3.4" data-cap="butt"></path> |
|
|
|
|
|
|
|
</g> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<span>Clear</span> |
|
|
|
<span>Clear</span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="relative"> |
|
|
|
<div class="relative"> |
|
|
|
<button type="submit" name='applyfilters' value="Apply Filters" class="flex flex-wrap justify-center w-full px-4 py-2.5 font-medium text-sm text-white bg-blue-500 hover:bg-blue-600 rounded-lg transition duration-200 border border-blue-500 rounded-md shadow-button focus:ring-0 focus:outline-none"> |
|
|
|
<button type="submit" name='applyfilters' value="Apply Filters" class="flex flex-wrap justify-center w-full px-4 py-2.5 font-medium text-sm text-white bg-blue-500 hover:bg-blue-600 rounded-lg transition duration-200 border border-blue-500 rounded-md shadow-button focus:ring-0 focus:outline-none">{{ filter_apply_svg | safe }} |
|
|
|
<svg class="mr-2 w-5 h-5" xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24"> |
|
|
|
|
|
|
|
<g stroke-linecap="round" stroke-width="2" fill="none" stroke="#ffffff" stroke-linejoin="round"> |
|
|
|
|
|
|
|
<rect x="2" y="2" width="7" height="7"></rect> |
|
|
|
|
|
|
|
<rect x="15" y="15" width="7" height="7"></rect> |
|
|
|
|
|
|
|
<rect x="2" y="15" width="7" height="7"></rect> |
|
|
|
|
|
|
|
<polyline points="15 6 17 8 22 3" stroke="#ffffff"></polyline> |
|
|
|
|
|
|
|
</g> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<span>Apply Filters</span> |
|
|
|
<span>Apply Filters</span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -733,6 +717,7 @@ const chart = new Chart(ctx, { |
|
|
|
<div class="px-6"> |
|
|
|
<div class="px-6"> |
|
|
|
<div class="w-full mt-6 pb-6 overflow-x-auto"> |
|
|
|
<div class="w-full mt-6 pb-6 overflow-x-auto"> |
|
|
|
<table class="w-full min-w-max"> |
|
|
|
<table class="w-full min-w-max"> |
|
|
|
|
|
|
|
|
|
|
|
<thead class="uppercase"> |
|
|
|
<thead class="uppercase"> |
|
|
|
<tr class="text-left"> |
|
|
|
<tr class="text-left"> |
|
|
|
<th class="p-0"> |
|
|
|
<th class="p-0"> |
|
|
@ -756,21 +741,11 @@ const chart = new Chart(ctx, { |
|
|
|
<span class="text-xs text-gray-600 dark:text-gray-300 font-semibold">You get</span> |
|
|
|
<span class="text-xs text-gray-600 dark:text-gray-300 font-semibold">You get</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th class="p-0"> |
|
|
|
|
|
|
|
<div class="py-3 px-6 bg-coolGray-200 dark:bg-gray-600"> |
|
|
|
|
|
|
|
<span class="text-xs text-gray-600 dark:text-gray-300 font-semibold">Amount</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</th> |
|
|
|
|
|
|
|
<th class="p-0"> |
|
|
|
<th class="p-0"> |
|
|
|
<div class="py-3 px-6 bg-coolGray-200 dark:bg-gray-600"> |
|
|
|
<div class="py-3 px-6 bg-coolGray-200 dark:bg-gray-600"> |
|
|
|
<span class="text-xs text-gray-600 dark:text-gray-300 font-semibold">You Send</span> |
|
|
|
<span class="text-xs text-gray-600 dark:text-gray-300 font-semibold">You Send</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th class="p-0"> |
|
|
|
|
|
|
|
<div class="py-3 px-6 bg-coolGray-200 dark:bg-gray-600"> |
|
|
|
|
|
|
|
<span class="text-xs text-gray-600 dark:text-gray-300 font-semibold">Amount</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</th> |
|
|
|
|
|
|
|
<th class="p-0"> |
|
|
|
<th class="p-0"> |
|
|
|
<div class="py-3 px-6 bg-coolGray-200 dark:bg-gray-600"> |
|
|
|
<div class="py-3 px-6 bg-coolGray-200 dark:bg-gray-600"> |
|
|
|
<span class="text-xs text-gray-600 dark:text-gray-300 font-semibold">Rate</span> |
|
|
|
<span class="text-xs text-gray-600 dark:text-gray-300 font-semibold">Rate</span> |
|
|
@ -784,9 +759,12 @@ const chart = new Chart(ctx, { |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
|
|
|
|
|
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
{% for o in offers %} |
|
|
|
{% for o in offers %} |
|
|
|
<tr class="opacity-100 text-gray-500 dark:text-gray-100 hover:bg-coolGray-200 dark:hover:bg-gray-600"> |
|
|
|
<tr class="opacity-100 text-gray-500 dark:text-gray-100 hover:bg-coolGray-200 dark:hover:bg-gray-600"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- TIME + ACTIVE --> |
|
|
|
<td class="flex items-center py-7 px-46 dark:text-white text-gray-900 whitespace-nowrap" title="{% if o[12]==2 %}Revoked{% elif o[11]==true %}Expired{% else %}Active{% endif %}"> |
|
|
|
<td class="flex items-center py-7 px-46 dark:text-white text-gray-900 whitespace-nowrap" title="{% if o[12]==2 %}Revoked{% elif o[11]==true %}Expired{% else %}Active{% endif %}"> |
|
|
|
<svg alt="" class="w-5 h-5 rounded-full ml-5" xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 24 24"> |
|
|
|
<svg alt="" class="w-5 h-5 rounded-full ml-5" xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 24 24"> |
|
|
|
<g stroke-linecap="round" stroke-width="2" fill="none" stroke="{% if o[12]==2 %}#AC0000{% elif o[11]==true %}#6b7280{% else %}#3B82F6{% endif %}" stroke-linejoin="round"> |
|
|
|
<g stroke-linecap="round" stroke-width="2" fill="none" stroke="{% if o[12]==2 %}#AC0000{% elif o[11]==true %}#6b7280{% else %}#3B82F6{% endif %}" stroke-linejoin="round"> |
|
|
@ -798,60 +776,110 @@ const chart = new Chart(ctx, { |
|
|
|
<div class="{% if o[11]==true or o[12]==2 %} dark:text-white {% else %} font-semibold {% endif %} text-xs">{{ o[0] }}</div> |
|
|
|
<div class="{% if o[11]==true or o[12]==2 %} dark:text-white {% else %} font-semibold {% endif %} text-xs">{{ o[0] }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
<!-- TIME + ACTIVE --> |
|
|
|
|
|
|
|
|
|
|
|
<!--<td class="py-4 px-6 text-xs"><a class="monospace text-xs" href=/offer/{{ o[1] }}>{{ o[1]|truncate(6, True) }}</a></td>--> |
|
|
|
<!--<td class="py-4 px-6 text-xs"><a class="monospace text-xs" href=/offer/{{ o[1] }}>{{ o[1]|truncate(6, True) }}</a></td>--> |
|
|
|
<!--<td class="py-4 px-6 text-xs monospace">{{ o[8] }}{% if o[9]==true %} <b>Sent</b>{% endif %}</td>--> |
|
|
|
<!--<td class="py-4 px-6 text-xs monospace">{{ o[8] }}{% if o[9]==true %} <b>Sent</b>{% endif %}</td>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- DETAIS --> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<div class="network"><span class="bold">Network:</span> {{ o[7] }}</div> |
|
|
|
<div class="network"><span class="bold">Network:</span> {{ o[7] }}</div> |
|
|
|
<div class="partial pt-1"><span class="bold">Amount Variable:</span> {{ o[14] }}<div> |
|
|
|
<div class="partial pt-1"><span class="bold">Amount Variable:</span>{{ o[14] }}</div> |
|
|
|
<div class="swaptype pt-1"><span class="bold">Swap Type:</span> {{ o[13] }}</div> |
|
|
|
<div class="swaptype pt-1"><span class="bold">Swap Type:</span> {{ o[13] }}</div> |
|
|
|
<!-- {% if o[12]==2 %}(Revoked){% elif o[11]==true %}(Not Active){% else %}(Active){% endif %} --> |
|
|
|
<!-- {% if o[12]==2 %}(Revoked){% elif o[11]==true %}(Not Active){% else %}(Active){% endif %} --> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
<!-- DETAILS --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- RECIPIENT --> |
|
|
|
<td class="py-3 px-6 text-xs monospace"> |
|
|
|
<td class="py-3 px-6 text-xs monospace"> |
|
|
|
<a href="/identity/{{ o[8] }}{% if o[9]==true %}{% endif %}">{{ o[8] }}</a> |
|
|
|
<a href="/identity/{{ o[8] }}{% if o[9]==true %}{% endif %}">{{ o[8] }}</a> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
<!-- RECIPIENT --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- YOU GET ICON --> |
|
|
|
|
|
|
|
{% if o[9] == true %} |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<span class="inline-flex align-middle items-center justify-center w-9 h-10 rounded"> |
|
|
|
<div class="flex items-center"> |
|
|
|
{% if o[9]==true %} <img class="h-7" src="/static/images/coins/{{ o[3]|replace(" ", "-") }}.png" alt=""> |
|
|
|
<span class="inline-flex align-middle items-center justify-center w-9 h-10 rounded"><img class="h-7" src="/static/images/coins/{{ o[3]|replace(" ", "-") }}.png" alt=""></span> |
|
|
|
</span>{{ o[3] }} |
|
|
|
<div class="flex flex-col ml-2"> |
|
|
|
</td> |
|
|
|
<div class="coinname-value bold" data-coinname="{{ o[3] }}"> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
{{ o[5]|truncate(8, true, '', 0) }} {{ o[3] }} |
|
|
|
<div class="coinname-value" data-coinname="{{ o[3] }}">{{ o[5]|truncate(8,true,'',0) }}</div> |
|
|
|
</div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
<!-- YOU GET ICON --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- YOU GET ICON OFFERS --> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<img class="h-7" src="/static/images/coins/{{ o[2]|replace(" ", "-") }}.png" alt=""> |
|
|
|
|
|
|
|
</span>{{ o[2] }} |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<div class="coinname-value" data-coinname="{{ o[2] }}">{{ o[4]|truncate(8,true,'',0) }}</div> |
|
|
|
<div class="flex items-center"> |
|
|
|
|
|
|
|
<span class="inline-flex align-middle items-center justify-center w-9 h-10 rounded"><img class="h-7" src="/static/images/coins/{{ o[2]|replace(" ", "-") }}.png" alt=""></span> |
|
|
|
|
|
|
|
<div class="flex flex-col ml-2"> |
|
|
|
|
|
|
|
<div class="coinname-value bold" data-coinname="{{ o[2] }}"> |
|
|
|
|
|
|
|
{{ o[4]|truncate(8, true, '', 0) }} {{ o[2] }} |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
<td class="py-4 px-6 text-xs"> |
|
|
|
|
|
|
|
<span class="inline-flex align-middle items-center justify-center w-9 h-10 rounded"> {% if o[9]==true %} <img class="h-7" src="/static/images/coins/{{ o[2]|replace(" ", "-") }}.png" alt=""> |
|
|
|
<!-- YOU GET ICON OFFERS --> |
|
|
|
</span>{{ o[2] }} |
|
|
|
|
|
|
|
</td> |
|
|
|
<!-- YOU SEND ICON --> |
|
|
|
|
|
|
|
{% if o[9] == true %} |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<div class="coinname-value" data-coinname="{{ o[2] }}">{{ o[4]|truncate(8,true,'',0) }}</div> |
|
|
|
<div class="flex items-center"> |
|
|
|
|
|
|
|
<span class="inline-flex align-middle items-center justify-center w-9 h-10 rounded"><img class="h-7" src="/static/images/coins/{{ o[2]|replace(" ", "-") }}.png" alt=""></span> |
|
|
|
|
|
|
|
<div class="flex flex-col ml-2"> |
|
|
|
|
|
|
|
<div class="coinname-value bold" data-coinname="{{ o[2] }}"> |
|
|
|
|
|
|
|
{{ o[4]|truncate(8,true,'',0) }} {{ o[2] }} |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
<!-- YOU SEND ICON --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- YOU SEND ICON OFFERS --> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<img class="h-7" src="/static/images/coins/{{ o[3]|replace(" ", "-") }}.png" alt=""> |
|
|
|
|
|
|
|
</span>{{ o[3] }} |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<div class="coinname-value" data-coinname="{{ o[3] }}">{{ o[5]|truncate(8,true,'',0) }}</div> |
|
|
|
<div class="flex items-center"> |
|
|
|
|
|
|
|
<span class="inline-flex align-middle items-center justify-center w-9 h-10 rounded"><img class="h-7" src="/static/images/coins/{{ o[3]|replace(" ", "-") }}.png" alt=""></span> |
|
|
|
|
|
|
|
<div class="flex flex-col ml-2"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Added ml-2 for left margin --> |
|
|
|
|
|
|
|
<div class="coinname-value bold" data-coinname="{{ o[3] }}"> |
|
|
|
|
|
|
|
{{ o[5]|truncate(8, true, '', 0) }} {{ o[3] }} |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<!-- YOU SEND ICON OFFERS --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- RATE --> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<td class="py-3 px-6 text-xs"> |
|
|
|
<div class="coinname-value" data-coinname="{{ o[3] }}">{{ o[6]|truncate(8,true,'',0) }}</div> |
|
|
|
<div class="coinname-value" data-coinname="{{ o[3] }}">{{ o[6]|truncate(8,true,'',0) }}</div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
<div class="usd-value"></div> |
|
|
|
|
|
|
|
<div class="profit-value hidden"></div> |
|
|
|
|
|
|
|
<div class="profit-loss"></div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
<!-- RATE --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <td class="py-4 px-6">{{ o[10] }}</td>--> |
|
|
|
<!-- <td class="py-4 px-6">{{ o[10] }}</td>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- SWAP OR EDIT --> |
|
|
|
<td class="py-3 px-6"> |
|
|
|
<td class="py-3 px-6"> |
|
|
|
<a class="inline-block w-20 py-1 px-2 font-medium text-center text-sm rounded-md {% if o[9]==true %} bg-blue-500 text-white border border-blue-500 hover:bg-blue-600 transition duration-200 {% else %} bg-blue-500 text-white hover:bg-blue-600 transition duration-200 {% endif %}" href="/offer/{{ o[1] }}">{% if o[9]==true %}Edit{% else %}Swap{% endif %}</a> |
|
|
|
<a class="inline-block w-20 py-1 px-2 font-medium text-center text-sm rounded-md |
|
|
|
|
|
|
|
{% if o[9]==true %} bg-blue-500 text-white border hover:bg-blue-600 dark:border-gray-700 bg-gray-700 transition duration-200 |
|
|
|
|
|
|
|
{% else %} bg-blue-500 text-white hover:bg-blue-600 transition duration-200 {% endif %}" href="/offer/{{ o[1] }}">{% if o[9]==true %} Edit {% else %} Swap {% endif %}</a> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
<!-- SWAP OR EDIT --> |
|
|
|
|
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
@ -860,14 +888,13 @@ const chart = new Chart(ctx, { |
|
|
|
<input type="hidden" name="pageno" value="{{ filters.page_no }}"> |
|
|
|
<input type="hidden" name="pageno" value="{{ filters.page_no }}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="rounded-b-md"> |
|
|
|
<div class="rounded-b-md"> |
|
|
|
<div class="w-full md:w-0/12"> |
|
|
|
<div class="w-full md:w-0/12"> |
|
|
|
<div class="flex flex-wrap justify-end pt-6 pr-6 border-t border-gray-100 dark:border-gray-400"> |
|
|
|
<div class="flex flex-wrap justify-end pt-6 pr-6 border-t border-gray-100 dark:border-gray-400"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<button type="submit" name='pageback' value="Page Back" class="inline-flex items-center h-9 py-1 px-4 text-xs text-blue-50 font-semibold bg-blue-500 hover:bg-blue-600 rounded-lg transition duration-200 focus:ring-0 focus:outline-none"> |
|
|
|
<button type="submit" name='pageback' value="Page Back" class="inline-flex items-center h-9 py-1 px-4 text-xs text-blue-50 font-semibold bg-blue-500 hover:bg-blue-600 rounded-lg transition duration-200 focus:ring-0 focus:outline-none"> |
|
|
|
<svg aria-hidden="true" class="mr-2 w-5 h-5" fill="#fff" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
{{ page_back_svg | safe }} |
|
|
|
<path fill-rule="evenodd" d="M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z" clip-rule="evenodd"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
<span>Page Back</span> |
|
|
|
<span>Page Back</span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -879,14 +906,13 @@ const chart = new Chart(ctx, { |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<div class="w-full md:w-auto p-1.5"> |
|
|
|
<button type="submit" name='pageforwards' value="Page Forwards" class="inline-flex items-center h-9 py-1 px-4 text-xs text-blue-50 font-semibold bg-blue-500 hover:bg-blue-600 rounded-lg transition duration-200 focus:ring-0 focus:outline-none"> |
|
|
|
<button type="submit" name='pageforwards' value="Page Forwards" class="inline-flex items-center h-9 py-1 px-4 text-xs text-blue-50 font-semibold bg-blue-500 hover:bg-blue-600 rounded-lg transition duration-200 focus:ring-0 focus:outline-none"> |
|
|
|
<span>Page Forwards</span> |
|
|
|
<span>Page Forwards</span> |
|
|
|
<svg aria-hidden="true" class="ml-2 w-5 h-5" fill="#fff" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
{{ page_forwards_svg | safe }} |
|
|
|
<path fill-rule="evenodd" d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z" clip-rule="evenodd"></path> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -896,30 +922,7 @@ const chart = new Chart(ctx, { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% include 'footer.html' %} |
|
|
|
{% include 'footer.html' %} |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
document.getElementById('btc-container').addEventListener('click', () => { |
|
|
|
const coinNameToSymbol = { |
|
|
|
updateChart('BTC'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById('xmr-container').addEventListener('click', () => { |
|
|
|
|
|
|
|
updateChart('XMR'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById('part-container').addEventListener('click', () => { |
|
|
|
|
|
|
|
updateChart('PART'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById('pivx-container').addEventListener('click', () => { |
|
|
|
|
|
|
|
updateChart('PIVX'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById('firo-container').addEventListener('click', () => { |
|
|
|
|
|
|
|
updateChart('FIRO'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById('dash-container').addEventListener('click', () => { |
|
|
|
|
|
|
|
updateChart('DASH'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById('ltc-container').addEventListener('click', () => { |
|
|
|
|
|
|
|
updateChart('LTC'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
const coinNameToSymbol = { |
|
|
|
|
|
|
|
'Bitcoin': 'BTC', |
|
|
|
'Bitcoin': 'BTC', |
|
|
|
'Particl': 'PART', |
|
|
|
'Particl': 'PART', |
|
|
|
'Particl Blind': 'PART', |
|
|
|
'Particl Blind': 'PART', |
|
|
@ -929,9 +932,11 @@ const coinNameToSymbol = { |
|
|
|
'Firo': 'FIRO', |
|
|
|
'Firo': 'FIRO', |
|
|
|
'Dash': 'DASH', |
|
|
|
'Dash': 'DASH', |
|
|
|
'PIVX': 'PIVX' |
|
|
|
'PIVX': 'PIVX' |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const exchangeRateCache = {}; |
|
|
|
|
|
|
|
|
|
|
|
function updateUsdValue(cryptoCell, coinFullName) { |
|
|
|
function updateUsdValue(cryptoCell, coinFullName, isRate = false) { |
|
|
|
const coinSymbol = coinNameToSymbol[coinFullName]; |
|
|
|
const coinSymbol = coinNameToSymbol[coinFullName]; |
|
|
|
if (!coinSymbol) { |
|
|
|
if (!coinSymbol) { |
|
|
|
console.error(`Coin symbol not found for full name: ${coinFullName}`); |
|
|
|
console.error(`Coin symbol not found for full name: ${coinFullName}`); |
|
|
@ -940,30 +945,112 @@ const coinNameToSymbol = { |
|
|
|
|
|
|
|
|
|
|
|
const cryptoValue = parseFloat(cryptoCell.textContent); |
|
|
|
const cryptoValue = parseFloat(cryptoCell.textContent); |
|
|
|
const usdCell = cryptoCell.nextElementSibling; |
|
|
|
const usdCell = cryptoCell.nextElementSibling; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isRate) { |
|
|
|
|
|
|
|
const rateCell = usdCell.nextElementSibling; |
|
|
|
|
|
|
|
const usdValue = rateCell.previousElementSibling.textContent * cryptoValue; |
|
|
|
|
|
|
|
usdCell.textContent = `${usdValue.toFixed(2)} USD`; |
|
|
|
|
|
|
|
} else { |
|
|
|
const apiUrl = `https://min-api.cryptocompare.com/data/price?fsym=${coinSymbol}&tsyms=USD`; |
|
|
|
const apiUrl = `https://min-api.cryptocompare.com/data/price?fsym=${coinSymbol}&tsyms=USD`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check if the exchange rate is in the cache and is not expired |
|
|
|
|
|
|
|
if (exchangeRateCache[coinSymbol] && !isCacheExpired(coinSymbol)) { |
|
|
|
|
|
|
|
console.log(`Using cached exchange rate for ${coinSymbol}`); |
|
|
|
|
|
|
|
const exchangeRate = exchangeRateCache[coinSymbol].rate; |
|
|
|
|
|
|
|
const usdValue = cryptoValue * exchangeRate; |
|
|
|
|
|
|
|
usdCell.textContent = `${usdValue.toFixed(2)} USD`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateProfitLoss(cryptoCell.closest('tr')); |
|
|
|
|
|
|
|
updateProfitValue(cryptoCell.closest('tr')); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
console.log(`Fetching exchange rate from API for ${coinSymbol}`); |
|
|
|
fetch(apiUrl) |
|
|
|
fetch(apiUrl) |
|
|
|
.then(response => response.json()) |
|
|
|
.then(response => response.json()) |
|
|
|
.then(data => { |
|
|
|
.then(data => { |
|
|
|
const exchangeRate = data.USD; |
|
|
|
const exchangeRate = data.USD; |
|
|
|
if (!isNaN(exchangeRate)) { |
|
|
|
if (!isNaN(exchangeRate)) { |
|
|
|
|
|
|
|
console.log(`Received exchange rate from API for ${coinSymbol}`); |
|
|
|
const usdValue = cryptoValue * exchangeRate; |
|
|
|
const usdValue = cryptoValue * exchangeRate; |
|
|
|
usdCell.textContent = `${usdValue.toFixed(2)} USD`; |
|
|
|
usdCell.textContent = `${usdValue.toFixed(2)} USD`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exchangeRateCache[coinSymbol] = { |
|
|
|
|
|
|
|
rate: exchangeRate, |
|
|
|
|
|
|
|
timestamp: Date.now(), |
|
|
|
|
|
|
|
ttl: 300000 // 5 minutes |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateProfitLoss(cryptoCell.closest('tr')); |
|
|
|
|
|
|
|
updateProfitValue(cryptoCell.closest('tr')); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
console.error('Invalid exchange rate. Response:', data); |
|
|
|
usdCell.textContent = 'Invalid exchange rate'; |
|
|
|
usdCell.textContent = 'Invalid exchange rate'; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(error => { |
|
|
|
.catch(error => { |
|
|
|
|
|
|
|
console.error('Error retrieving exchange rate:', error); |
|
|
|
usdCell.textContent = 'Error retrieving exchange rate'; |
|
|
|
usdCell.textContent = 'Error retrieving exchange rate'; |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function isCacheExpired(coinSymbol) { |
|
|
|
|
|
|
|
const cacheEntry = exchangeRateCache[coinSymbol]; |
|
|
|
|
|
|
|
return cacheEntry && (Date.now() - cacheEntry.timestamp > cacheEntry.ttl); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function updateProfitLoss(row) { |
|
|
|
|
|
|
|
const sellingUSD = parseFloat(row.querySelector('.usd-value').textContent); |
|
|
|
|
|
|
|
const buyingUSD = parseFloat(row.querySelectorAll('.usd-value')[1].textContent); |
|
|
|
|
|
|
|
const profitLossCell = row.querySelector('.profit-loss'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isNaN(sellingUSD) && !isNaN(buyingUSD)) { |
|
|
|
|
|
|
|
const profitLossPercentage = ((sellingUSD - buyingUSD) / buyingUSD) * 100; |
|
|
|
|
|
|
|
profitLossCell.textContent = `${profitLossPercentage.toFixed(2)}%`; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (profitLossPercentage > 0) { |
|
|
|
|
|
|
|
profitLossCell.classList.add('text-green-500'); // Profit (positive) |
|
|
|
|
|
|
|
profitLossCell.classList.remove('text-red-500'); |
|
|
|
|
|
|
|
} else if (profitLossPercentage < 0) { |
|
|
|
|
|
|
|
profitLossCell.classList.add('text-red-500'); // Loss (negative) |
|
|
|
|
|
|
|
profitLossCell.classList.remove('text-green-500'); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
profitLossCell.classList.add('text-yellow-500'); // No profit or loss (zero) |
|
|
|
|
|
|
|
profitLossCell.classList.remove('text-green-500', 'text-red-500'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
profitLossCell.textContent = 'Invalid USD values'; |
|
|
|
|
|
|
|
profitLossCell.classList.remove('text-green-500', 'text-red-500'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function updateProfitValue(row) { |
|
|
|
|
|
|
|
const sellingUSD = parseFloat(row.querySelector('.usd-value').textContent); |
|
|
|
|
|
|
|
const profitValueCell = row.querySelector('.profit-value'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isNaN(sellingUSD)) { |
|
|
|
|
|
|
|
profitValueCell.textContent = `${sellingUSD.toFixed(2)} USD`; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
profitValueCell.textContent = 'Invalid USD value'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => { |
|
|
|
document.addEventListener('DOMContentLoaded', () => { |
|
|
|
const coinNameValues = document.querySelectorAll('.coinname-value'); |
|
|
|
const coinNameValues = document.querySelectorAll('.coinname-value'); |
|
|
|
for (let i = 0; i < coinNameValues.length; i++) { |
|
|
|
for (let i = 0; i < coinNameValues.length; i++) { |
|
|
|
const coinFullName = coinNameValues[i].getAttribute('data-coinname'); |
|
|
|
const coinFullName = coinNameValues[i].getAttribute('data-coinname'); |
|
|
|
|
|
|
|
const isRate = coinNameValues[i].textContent.includes('rate'); |
|
|
|
|
|
|
|
updateUsdValue(coinNameValues[i], coinFullName, isRate); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isRate) { |
|
|
|
|
|
|
|
coinNameValues[i].addEventListener('input', () => { |
|
|
|
|
|
|
|
// Clear the cache when the user inputs a new value |
|
|
|
|
|
|
|
console.log(`Clearing cache for ${coinNameToSymbol[coinFullName]}`); |
|
|
|
|
|
|
|
exchangeRateCache[coinNameToSymbol[coinFullName]] = undefined; |
|
|
|
updateUsdValue(coinNameValues[i], coinFullName); |
|
|
|
updateUsdValue(coinNameValues[i], coinFullName); |
|
|
|
coinNameValues[i].addEventListener('input', () => updateUsdValue(coinNameValues[i], coinFullName)); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|