Change const to 1000 and do some re-styling

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-12-02 01:22:51 -05:00
parent 738c6ce41e
commit efb1bf180a
Signed by untrusted user: cobra
GPG Key ID: 4FD8F812083FF6F9
2 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,7 @@
</head>
<body>
<?php
$const = 300;
$const = 1000;
$langs = array();
$langs['pt-BR'] = array("Brazilian Portuguese", "Português Brasileiro");
@ -25,7 +25,8 @@
global $langs;
$sum = shell_exec('cd /var/www/website; echo "$(($(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "|" | wc -l)+$(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "^Only in en/" | awk '."'".'{print $NF}'."'".' | while read -r line; do wc -l < en/"$line";printf "+"; done)0))"');
return "<li>" . $langs[$tl][0] . " (" . $langs[$tl][1] . ", <code>/" . $tl . "/</code>)" . "</li>\n<br>\n<progress max=$const value=" . $sum . ">" . intdiv(($sum * 100), $const) . "%</progress><br><br>";
$percent = intdiv(($sum * 100), $const);
return "<li>" . $langs[$tl][0] . " (" . $langs[$tl][1] . ", <code>/$tl/</code>)</li>\n<p>$percent</p>\n<progress max=$const value=$sum>$percent%</progress><br>";
}
?>
<!--#include file="nav.php" -->

View File

@ -76,9 +76,9 @@ input[type=submit] {
}
progress {
height: 30px;
height: 20px;
width: 70%;
border-radius: 15px;
border-radius: 10px;
border: 1px solid transparent;
background: #bbc2cf;
color: #ff6c6b;
@ -86,7 +86,7 @@ progress {
progress::-moz-progress-bar {
color: transparent;
background: #bbc2cf;
background: currentColor;
accent-color: currentColor;
}