We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6ba8d1 commit 84a15e3Copy full SHA for 84a15e3
layouts/partials/android-getkey.html
@@ -9,7 +9,7 @@ <h3 class="font-h3 text-lg">{{ i18n "android_getkey_title" }}</h3>
9
<div class="relative input-box flex items-center gap-2 w-full lg:w-1/2">
10
<span x-show="checkoutData.price && checkoutData.price.amount != checkoutData.price.listAmount" x-text="checkoutData.price ? checkoutData.price.listAmount.toLocaleString('{{ .Site.Language.Lang }}', { style: 'currency', currency: checkoutData.price.currency }) : '…'" class="text-gray-500 line-through decoration-red-600" x-cloak></span>
11
<span x-text="checkoutData.price ? checkoutData.price.amount.toLocaleString('{{ .Site.Language.Lang }}', { style: 'currency', currency: checkoutData.price.currency }) : '…'">…</span>
12
- <span x-show="checkoutData.price && checkoutData.price.amount != checkoutData.price.listAmount" class="absolute top-0 left-0 -translate-2 -rotate-5 px-1 rounded-xs text-xs text-white bg-red-600 z-10" x-cloak>-<span x-text="((1 - checkoutData.price.amount / checkoutData.price.listAmount) * 100).toFixed(0)"></span>%</span>
+ <span x-show="checkoutData.price && checkoutData.price.amount != checkoutData.price.listAmount" class="absolute top-0 left-0 -translate-2 -rotate-5 px-1 rounded-xs text-xs text-white bg-red-600 z-10" x-cloak>-<span x-text="checkoutData.price && checkoutData.price.listAmount > 0 ? ((1 - checkoutData.price.amount / checkoutData.price.listAmount) * 100).toFixed(0) : '0'"></span>%</span>
13
</div>
14
15
<div class="mb-4">
0 commit comments