X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/b8529b7920e55575e12fb6a9d01ebfcc82922fc0..refs/merge-requests/41/head:/lib/functions.js.php?ds=sidebyside diff --git a/lib/functions.js.php b/lib/functions.js.php index 6ee335d..7177b85 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -119,7 +119,7 @@ function show_link (reference, delete_code, crypt_key, date) document.getElementById('uploading').style.display = 'none'; document.getElementById('upload').style.display = 'none'; document.getElementById('upload_finished').style.display = ''; - document.title = 'Jirafeau - 100%'; + document.title = " - 100%"; // Download page var download_link_href = 'f.php?h=' + reference; @@ -203,7 +203,7 @@ function show_upload_progression (percentage, speed, time_left) document.getElementById('uploaded_percentage').innerHTML = percentage; document.getElementById('uploaded_speed').innerHTML = speed; document.getElementById('uploaded_time').innerHTML = time_left; - document.title = 'Jirafeau - ' + percentage; + document.title = " - " + percentage; } function hide_upload_progression () @@ -211,7 +211,7 @@ function hide_upload_progression () document.getElementById('uploaded_percentage').style.display = 'none'; document.getElementById('uploaded_speed').style.display = 'none'; document.getElementById('uploaded_time').style.display = 'none'; - document.title = 'Jirafeau'; + document.title = ""; } function upload_progress (e) @@ -607,17 +607,17 @@ function upload_time_estimation_speed_string() 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 ''; @@ -627,7 +627,14 @@ function upload_time_estimation_speed_string() function milliseconds_to_time_string (milliseconds) { function numberEnding (number) { + var currentLanguage = ''; + + if(currentLanguage == 'de') { + return (number > 1) ? 'n' : ''; + } + else { return (number > 1) ? 's' : ''; + } } var temp = Math.floor(milliseconds / 1000);