diff --git a/fr.js b/fr.js index 6ddf219..576032a 100644 --- a/fr.js +++ b/fr.js @@ -1,13 +1,15 @@ -Objet = Object +'use strict'; + +var Objet = Object Objet.creer = Objet.create -Chaine = String +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 -Tableau = Array +var Tableau = Array Tableau.prototype.tri = Tableau.prototype.sort Tableau.prototype.longueur = function () { return this.length; } Tableau.prototype.pousser = Tableau.prototype.push diff --git a/gogol-analytique.js b/gogol-analytique.js new file mode 100644 index 0000000..0da3a65 --- /dev/null +++ b/gogol-analytique.js @@ -0,0 +1,19 @@ +'use strict'; + +$(function() { + var _gaq = _gaq || []; + _gaq.pousser(['_setAccount', 'UA-42609030-1']); + _gaq.pousser(['_trackPageview']); + + (function() { + var ga = document.creerElement('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]; + s.parentNode.insertBefore(ga, s); + })(); +}); diff --git a/index.html b/index.html index 718e6c6..10244ab 100644 --- a/index.html +++ b/index.html @@ -8,29 +8,10 @@ - - - + +
-