From a5262822a59e3469ecf36d3c7b32d1a757a4d9b6 Mon Sep 17 00:00:00 2001 From: Christophe-Marie Duquesne Date: Sun, 6 Dec 2015 17:28:34 +0100 Subject: [PATCH] =?UTF-8?q?Adoption=20du=20m=C3=AAme=20style=20de=20code?= =?UTF-8?q?=20pour=20tout=20le=20fichier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- creuille.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/creuille.js b/creuille.js index 0767907..942388e 100644 --- a/creuille.js +++ b/creuille.js @@ -1,5 +1,4 @@ -function changeDeSens(traductions) -{ +function changeDeSens(traductions) { var langue = $( "#mots" ).attr("data-langue"); var autre = {'anglais': 'francais', 'francais': 'anglais'}; @@ -7,7 +6,7 @@ function changeDeSens(traductions) construitListe(traductions); } -function metAJourLienChange(langue){ +function metAJourLienChange(langue) { var de = ' Anglais '; var vers = 'Français'; var fleche = ' → '; @@ -19,7 +18,7 @@ function metAJourLienChange(langue){ $( "#lienChange" ).html(de + fleche + vers); } -function sansAccents(mot){ +function sansAccents(mot) { // Faute d'une bibliotheque unidecode, nous nous limitons aux lettres // accentuées du français. // https://fr.wikipedia.org/wiki/Diacritiques_utilisés_en_français @@ -39,8 +38,7 @@ function sansAccents(mot){ .replace("ü", "u"); } -function construitListe(traductions) -{ +function construitListe(traductions) { var langue = $( "#mots" ).attr("data-langue"); metAJourLienChange(langue);