Last active
January 29, 2024 00:36
-
-
Save apih/792a556dfca8dc8e87d8328a3e7201e0 to your computer and use it in GitHub Desktop.
OnPay: Show current donation amount and progress bar in the order form's text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Put this code in Borang > Teks --> | |
<div class="row"> | |
<div class="col-md-6" style="margin-bottom: 10px"> | |
<div style="border: 3px solid #d6e9c6; border-radius: 10px; padding: 10px"> | |
<p class="text-center semi-bold" style="font-size: 22px; border-bottom: 2px dashed #d6e9c6; padding-bottom: 10px">Kutipan Semasa</p> | |
<p class="text-center bold" style="font-size: 24px">RM <span id="custom-donation-current-value">{nilai_semasa}</span></p> | |
</div> | |
</div> | |
<div class="col-md-6" style="margin-bottom: 10px"> | |
<div style="border: 3px solid #d6e9c6; border-radius: 10px; padding: 10px"> | |
<p class="text-center semi-bold" style="font-size: 22px; border-bottom: 2px dashed #d6e9c6; padding-bottom: 10px">Sasaran Kutipan</p> | |
<p class="text-center bold" style="font-size: 24px">RM <span id="custom-donation-target-value">{nilai_sasaran}</span></p> | |
</div> | |
</div> | |
</div> | |
<div class="progress" id="custom-donation-progress-bar" style="margin-top: 10px; height: 30px; border-radius: 15px"> | |
<div class="progress-bar progress-bar-success bold" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 0%; font-size: 20px; line-height: 30px"> | |
0% | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
saya dh letak coding ni dalam onpay saya tapi kena xjdi pon ya bila save?