Index: gc_lang/fr/mailext/content/overlay.css ================================================================== --- gc_lang/fr/mailext/content/overlay.css +++ gc_lang/fr/mailext/content/overlay.css @@ -35,10 +35,16 @@ } .optiongroup { color: hsl(210, 50%, 40%); font-size: 14px; font-weight: bold; +} +#textformatter-progressbar { + padding: 5px; +} +#textformatter-timer { + padding: 5px; } #grammarchecker-panel { overflow: auto; Index: gc_lang/fr/mailext/content/overlay.js ================================================================== --- gc_lang/fr/mailext/content/overlay.js +++ gc_lang/fr/mailext/content/overlay.js @@ -559,12 +559,12 @@ catch (e) { console.error(e); } }, resetProgressBar: function () { - document.getElementById('progressbar').value = 0; - document.getElementById('time_res').textContent = ""; + document.getElementById('textformatter-progressbar').value = 0; + document.getElementById('textformatter-timer').textContent = ""; }, getTimeRes: function (n) { // returns duration in seconds as string if (n < 10) { return n.toFixed(3).toString() + " s"; @@ -599,12 +599,12 @@ // applyOptions: function (sText) { try { const t0 = Date.now(); //window.setCursor("wait"); // change pointer - document.getElementById('progressbar').value = 0; - document.getElementById('progressbar').max = 6; + document.getElementById('textformatter-progressbar').value = 0; + document.getElementById('textformatter-progressbar').max = 6; let n1 = 0, n2 = 0, n3 = 0, n4 = 0, n5 = 0, n6 = 0, n7 = 0; // espaces surnuméraires if (document.getElementById("o_group_ssp").checked) { if (document.getElementById("o_end_of_paragraph").checked) { @@ -636,11 +636,11 @@ document.getElementById('res_o_within_quotation_marks').textContent = n1; } document.getElementById("o_group_ssp").checked = false; this.switchGroup("o_group_ssp"); } - document.getElementById('progressbar').value = 1; + document.getElementById('textformatter-progressbar').value = 1; // espaces insécables if (document.getElementById("o_group_nbsp").checked) { if (document.getElementById("o_nbsp_before_punctuation").checked) { [sText, n1] = this.formatText(sText, "nbsp_before_punctuation"); @@ -668,11 +668,11 @@ document.getElementById('res_o_nbsp_titles').textContent = n1; } document.getElementById("o_group_nbsp").checked = false; this.switchGroup("o_group_nbsp"); } - document.getElementById('progressbar').value = 2; + document.getElementById('textformatter-progressbar').value = 2; // espaces manquants if (document.getElementById("o_group_typo").checked) { if (document.getElementById("o_ts_units").checked) { [sText, n1] = this.formatText(sText, "ts_units"); @@ -690,11 +690,11 @@ document.getElementById('res_o_add_space_around_hyphens').textContent = n1; } document.getElementById("o_group_space").checked = false; this.switchGroup("o_group_space"); } - document.getElementById('progressbar').value = 3; + document.getElementById('textformatter-progressbar').value = 3; // suppression if (document.getElementById("o_group_delete").checked) { if (document.getElementById("o_erase_non_breaking_hyphens").checked) { [sText, n1] = this.formatText(sText, "erase_non_breaking_hyphens"); @@ -701,11 +701,11 @@ document.getElementById('res_o_erase_non_breaking_hyphens').textContent = n1; } document.getElementById("o_group_delete").checked = false; this.switchGroup("o_group_delete"); } - document.getElementById('progressbar').value = 4; + document.getElementById('textformatter-progressbar').value = 4; // signes typographiques if (document.getElementById("o_group_typo").checked) { if (document.getElementById("o_ts_apostrophe").checked) { [sText, n1] = this.formatText(sText, "ts_apostrophe"); @@ -790,11 +790,11 @@ document.getElementById('res_o_ts_ligature').textContent = n1 + n2 + n3 + n4 + n5 + n6 + n7; } document.getElementById("o_group_typo").checked = false; this.switchGroup("o_group_typo"); } - document.getElementById('progressbar').value = 5; + document.getElementById('textformatter-progressbar').value = 5; // divers if (document.getElementById("o_group_misc").checked) { if (document.getElementById("o_ordinals_no_exponant").checked) { if (document.getElementById("o_ordinals_exponant").checked) { @@ -823,16 +823,17 @@ document.getElementById('res_o_ma_word').textContent = n1; } document.getElementById("o_group_misc").checked = false; this.switchGroup("o_group_misc"); } - document.getElementById('progressbar').value = document.getElementById('progressbar').max; + document.getElementById('textformatter-progressbar').value = document.getElementById('textformatter-progressbar').max; + document.getElementById('textformatter-progressbar').value = "Formatage terminé."; // end of processing //window.setCursor("auto"); // restore pointer const t1 = Date.now(); - document.getElementById('time_res').textContent = this.getTimeRes((t1-t0)/1000); + document.getElementById('textformatter-timer').textContent = this.getTimeRes((t1-t0)/1000); } catch (e) { console.error(e); } return sText; Index: gc_lang/fr/mailext/content/overlay.xul ================================================================== --- gc_lang/fr/mailext/content/overlay.xul +++ gc_lang/fr/mailext/content/overlay.xul @@ -343,13 +343,13 @@