mirror of
https://github.com/soulaklabs/bitoduc.fr.git
synced 2025-12-09 09:33:23 +00:00
Merge pull request #70 from chmduquesne/gh-pages
Accentuation d'autres variables oubliées
This commit is contained in:
@@ -6,14 +6,14 @@ $(function() {
|
|||||||
_gaq.pousser(['_trackPageview']);
|
_gaq.pousser(['_trackPageview']);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var ga = document.creerElement('script');
|
var ga = document.créerÉlément('script');
|
||||||
ga.type = 'text/javascript';
|
ga.type = 'text/javascript';
|
||||||
ga.async = true;
|
ga.async = true;
|
||||||
ga.src =
|
ga.src =
|
||||||
('https:' == document.localisation.protocole ?
|
('https:' == document.localisation.protocole ?
|
||||||
'https://ssl' : 'http://www')
|
'https://ssl' : 'http://www')
|
||||||
+ '.google-analytics.com/ga.js';
|
+ '.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);
|
s.parentNode.insertBefore(ga, s);
|
||||||
})();
|
})();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ function construireListe(traductions) {
|
|||||||
var l = '';
|
var l = '';
|
||||||
for (var i=0; i < traductions.longueur(); i++) {
|
for (var i=0; i < traductions.longueur(); i++) {
|
||||||
var mot = traductions[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) {
|
if (c != l) {
|
||||||
@@ -106,7 +106,7 @@ function construireListe(traductions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
$.recupererJSON( "traductions.json", function( traductions ) {
|
$.récupérerJSON( "traductions.json", function( traductions ) {
|
||||||
construireListe(traductions);
|
construireListe(traductions);
|
||||||
mettreÀJourLienInversion();
|
mettreÀJourLienInversion();
|
||||||
$( "#lienInversion" ).clic( function() {inverser(traductions);} );
|
$( "#lienInversion" ).clic( function() {inverser(traductions);} );
|
||||||
|
|||||||
12
js/prototypes-fr.js
vendored
12
js/prototypes-fr.js
vendored
@@ -1,13 +1,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var Objet = Object
|
var Objet = Object
|
||||||
Objet.creer = Objet.create
|
Objet.créer = Objet.create
|
||||||
|
|
||||||
var Chaine = String
|
var Chaine = String
|
||||||
Chaine.prototype.enMinuscules = Chaine.prototype.toLowerCase
|
Chaine.prototype.enMinuscules = Chaine.prototype.toLowerCase
|
||||||
Chaine.prototype.enMajuscules = Chaine.prototype.toUpperCase
|
Chaine.prototype.enMajuscules = Chaine.prototype.toUpperCase
|
||||||
Chaine.prototype.remplacer = Chaine.prototype.replace
|
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.tranche = Chaine.prototype.slice
|
||||||
Chaine.prototype.sansAccents = function () {
|
Chaine.prototype.sansAccents = function () {
|
||||||
// Faute d'une bibliotheque unidecode, nous nous limitons aux lettres
|
// Faute d'une bibliotheque unidecode, nous nous limitons aux lettres
|
||||||
@@ -40,7 +40,7 @@ Chaine.prototype.sansAccents = function () {
|
|||||||
.remplacer("Ü", "U");
|
.remplacer("Ü", "U");
|
||||||
}
|
}
|
||||||
Chaine.prototype.majusculer = function() {
|
Chaine.prototype.majusculer = function() {
|
||||||
return this.caractereA(0).enMajuscules() + this.tranche(1);
|
return this.caractèreÀ(0).enMajuscules() + this.tranche(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
var Tableau = Array
|
var Tableau = Array
|
||||||
@@ -48,8 +48,8 @@ Tableau.prototype.trier = Tableau.prototype.sort
|
|||||||
Tableau.prototype.longueur = function () { return this.length; }
|
Tableau.prototype.longueur = function () { return this.length; }
|
||||||
Tableau.prototype.pousser = Tableau.prototype.push
|
Tableau.prototype.pousser = Tableau.prototype.push
|
||||||
|
|
||||||
document.creerElement = document.createElement
|
document.créerÉlément = document.createElement
|
||||||
document.recupererElementParNomDEtiquette = document.getElementsByTagName;
|
document.récupérerÉlémentParNomDÉtiquette = document.getElementsByTagName;
|
||||||
document.localisation = document.location;
|
document.localisation = document.location;
|
||||||
document.localisation.protocole = document.localisation.protocole;
|
document.localisation.protocole = document.localisation.protocole;
|
||||||
|
|
||||||
@@ -59,4 +59,4 @@ jQuery.fn.extend({
|
|||||||
dernier: function () { return this.last(); },
|
dernier: function () { return this.last(); },
|
||||||
ajouter: function (x) { return this.append(x); }
|
ajouter: function (x) { return this.append(x); }
|
||||||
});
|
});
|
||||||
$.recupererJSON = $.getJSON
|
$.récupérerJSON = $.getJSON
|
||||||
|
|||||||
Reference in New Issue
Block a user