diff --git a/js/gogol-analytique.js b/js/gogol-analytique.js index 0da3a65..8dd3ea1 100644 --- a/js/gogol-analytique.js +++ b/js/gogol-analytique.js @@ -6,14 +6,14 @@ $(function() { _gaq.pousser(['_trackPageview']); (function() { - var ga = document.creerElement('script'); + var ga = document.créerÉlément('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.localisation.protocole ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.recupererElementParNomDEtiquette('script')[0]; + var s = document.récupérerÉlémentParNomDÉtiquette('script')[0]; s.parentNode.insertBefore(ga, s); })(); }); diff --git a/js/principal.js b/js/principal.js index 55430d1..a396c83 100644 --- a/js/principal.js +++ b/js/principal.js @@ -71,7 +71,7 @@ function construireListe(traductions) { var l = ''; for (var i=0; i < traductions.longueur(); i++) { var mot = traductions[i]; - var c = mot[langue].caractereA(0).enMajuscules().sansAccents(); + var c = mot[langue].caractèreÀ(0).enMajuscules().sansAccents(); if (c != l) { @@ -106,7 +106,7 @@ function construireListe(traductions) { } $(function() { - $.recupererJSON( "traductions.json", function( traductions ) { + $.récupérerJSON( "traductions.json", function( traductions ) { construireListe(traductions); mettreÀJourLienInversion(); $( "#lienInversion" ).clic( function() {inverser(traductions);} ); diff --git a/js/prototypes-fr.js b/js/prototypes-fr.js index 7d7811c..d09d059 100644 --- a/js/prototypes-fr.js +++ b/js/prototypes-fr.js @@ -1,13 +1,13 @@ 'use strict'; var Objet = Object -Objet.creer = Objet.create +Objet.créer = Objet.create var Chaine = String Chaine.prototype.enMinuscules = Chaine.prototype.toLowerCase Chaine.prototype.enMajuscules = Chaine.prototype.toUpperCase Chaine.prototype.remplacer = Chaine.prototype.replace -Chaine.prototype.caractereA = Chaine.prototype.charAt +Chaine.prototype.caractèreÀ = Chaine.prototype.charAt Chaine.prototype.tranche = Chaine.prototype.slice Chaine.prototype.sansAccents = function () { // Faute d'une bibliotheque unidecode, nous nous limitons aux lettres @@ -40,7 +40,7 @@ Chaine.prototype.sansAccents = function () { .remplacer("Ü", "U"); } Chaine.prototype.majusculer = function() { - return this.caractereA(0).enMajuscules() + this.tranche(1); + return this.caractèreÀ(0).enMajuscules() + this.tranche(1); } var Tableau = Array @@ -48,8 +48,8 @@ Tableau.prototype.trier = Tableau.prototype.sort Tableau.prototype.longueur = function () { return this.length; } Tableau.prototype.pousser = Tableau.prototype.push -document.creerElement = document.createElement -document.recupererElementParNomDEtiquette = document.getElementsByTagName; +document.créerÉlément = document.createElement +document.récupérerÉlémentParNomDÉtiquette = document.getElementsByTagName; document.localisation = document.location; document.localisation.protocole = document.localisation.protocole; @@ -59,4 +59,4 @@ jQuery.fn.extend({ dernier: function () { return this.last(); }, ajouter: function (x) { return this.append(x); } }); -$.recupererJSON = $.getJSON +$.récupérerJSON = $.getJSON