Files
bitoduc.fr/fr.js
Christophe-Marie Duquesne a51a67a567 Nettoyage du javascript
- Renommage de creuille.js en principal.js (plus soutenu et surtout plus
  bitoduc)
- Utilisation de "'use strict';"
- Code de gogol analytique mis dans un fichier dédié
2015-12-13 13:17:31 +01:00

29 lines
988 B
JavaScript

'use strict';
var Objet = Object
Objet.creer = 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
var Tableau = Array
Tableau.prototype.tri = 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.localisation = document.location;
document.localisation.protocole = document.localisation.protocole;
jQuery.fn.extend({
clic: function (x) { return this.click(x); },
enfants: function () { return this.children(); },
dernier: function () { return this.last(); },
ajouter: function (x) { return this.append(x); }
});
$.recupererJSON = $.getJSON