forked from vern/website
Even more fixing
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
84dc48367b
commit
e061781b83
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
$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))"');
|
$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))"');
|
||||||
$percent = intdiv(($sum * 100), $const);
|
$percent = intdiv(($sum * 100), $const);
|
||||||
return "<li>" . $langs[$tl][0] . " (" . $langs[$tl][1] . ", <code>/$tl/</code>)</li>\n<p>$percent% complete</p>\n<progress style='accent-color:#ff6c6b;' max=$const value=$sum>$percent%</progress><br>";
|
return "<li>" . $langs[$tl][0] . " (" . $langs[$tl][1] . ", <code>/$tl/</code>)</li>\n<p>$percent% complete</p>\n<progress max=$const value=$sum>$percent%</progress><br>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!--#include file="nav.php" -->
|
<!--#include file="nav.php" -->
|
||||||
|
|
|
@ -80,21 +80,20 @@ progress {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
background: #bbc2cf;
|
background-color: #bbc2cf;
|
||||||
color: #ff6c6b;
|
color: #ff6c6b;
|
||||||
}
|
}
|
||||||
|
|
||||||
progress::-moz-progress-bar {
|
progress::-moz-progress-bar {
|
||||||
color: transparent;
|
color: transparent;
|
||||||
background: currentColor;
|
background-color: currentColor;
|
||||||
accent-color: currentColor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
progress::-webkit-progress-bar {
|
progress::-webkit-progress-bar {
|
||||||
background: #bbc2cf;
|
background-color: #bbc2cf;
|
||||||
}
|
}
|
||||||
progress::-webkit-progress-value {
|
progress::-webkit-progress-value {
|
||||||
background: currentColor;
|
background-color: currentColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox] { color: #282c34; background-color: #bbc2cf; }
|
input[type=checkbox] { color: #282c34; background-color: #bbc2cf; }
|
||||||
|
|
Loading…
Reference in New Issue