document.getElementById('uploading').style.display = 'none';
document.getElementById('upload').style.display = 'none';
document.getElementById('upload_finished').style.display = '';
- document.title = "<?php echo empty($cfg['title']) ? 'Jirafeau' : $cfg['title']; ?> - 100%";
+ document.title = "100% - <?php echo empty($cfg['title']) ? 'Jirafeau' : $cfg['title']; ?>";
// Download page
var download_link_href = 'f.php?h=' + reference;
document.getElementById('uploaded_percentage').innerHTML = percentage;
document.getElementById('uploaded_speed').innerHTML = speed;
document.getElementById('uploaded_time').innerHTML = time_left;
- document.title = "<?php echo empty($cfg['title']) ? 'Jirafeau' : $cfg['title']; ?> - " + percentage;
+ document.title = percentage + " - <?php echo empty($cfg['title']) ? 'Jirafeau' : $cfg['title']; ?>";
}
function hide_upload_progression ()
if (s <= 1000)
{
res = s.toString();
- scale = "o/s";
+ scale = "Bit/s";
}
else if (s < 1000000)
{
res = Math.floor(s/100) / 10;
- scale = "Ko/s";
+ scale = "KBit/s";
}
else
{
res = Math.floor(s/100000) / 10;
- scale = "Mo/s";
+ scale = "Mbit/s";
}
if (res == 0)
return '';
function milliseconds_to_time_string (milliseconds)
{
function numberEnding (number) {
+ var currentLanguage = '<?php echo $cfg['lang']; ?>';
+
+ if(currentLanguage == 'de') {
+ return (number > 1) ? 'n' : '';
+ }
+ else {
return (number > 1) ? 's' : '';
+ }
}
var temp = Math.floor(milliseconds / 1000);