This commit is contained in:
Valeria Fadeeva 2024-02-09 14:34:27 +05:00
parent 9d90bbb5e1
commit 26b266470b
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
x=Math.round(this.getAttribute('data-current-page')/this.getAttribute('data-total-pages')*100); x=Math.round(this.getAttribute('data-current-page')/this.getAttribute('data-total-pages')*100);
this.setAttribute('aria-valuenow', `${x}`); this.setAttribute('aria-valuenow', `${x}`);
this.children[0].style.width=`${x}%`; this.children[0].style.width=`${x}%`;
this.children[0].innerHTML=`${x}`;" this.children[0].innerHTML=`${x} %`;"
style="height: 20px"> style="height: 20px">
<div class="progress-bar bg-success"></div> <div class="progress-bar bg-success"></div>
</div> </div>
@ -32,7 +32,7 @@
x=Math.round(this.getAttribute('data-current-page')/this.getAttribute('data-total-pages')*100); x=Math.round(this.getAttribute('data-current-page')/this.getAttribute('data-total-pages')*100);
this.setAttribute('aria-valuenow', `${x}`); this.setAttribute('aria-valuenow', `${x}`);
this.children[0].style.width=`${x}%`; this.children[0].style.width=`${x}%`;
this.children[0].innerHTML=`${x}`;" this.children[0].innerHTML=`${x} %`;"
style="height: 20px"> style="height: 20px">
<div class="progress-bar bg-success"></div> <div class="progress-bar bg-success"></div>
</div> </div>
@ -51,7 +51,7 @@
x=Math.round(this.getAttribute('data-current-page')/this.getAttribute('data-total-pages')*100); x=Math.round(this.getAttribute('data-current-page')/this.getAttribute('data-total-pages')*100);
this.setAttribute('aria-valuenow', `${x}`); this.setAttribute('aria-valuenow', `${x}`);
this.children[0].style.width=`${x}%`; this.children[0].style.width=`${x}%`;
this.children[0].innerHTML=`${x}`;" this.children[0].innerHTML=`${x} %`;"
style="height: 20px"> style="height: 20px">
<div class="progress-bar bg-success"></div> <div class="progress-bar bg-success"></div>
</div> </div>