LesSix, Ltm, Soleiade, Trois, Robots, Bureaucrates, Administrateurs d’interface, ltm, soleil, Modérateurs, Administrateurs, trois, Modificateurs de widgets
5 714
modifications
Ligne 3 : | Ligne 3 : | ||
var a = $("#bodyContent").text(); | var a = $("#bodyContent").text(); | ||
var wCount = a.split(" ").length; | var wCount = a.split(" ").length; | ||
var $wordOutput = $( "<p>" + | var timeInMinutes = wCount / 200; | ||
var $wordOutput = $( "<p>" + timeInMinutes + " min de lecture" + "</p>").css("font-size", "normal"); | |||
$( "#bodyContent" ).prepend($wordOutput); | $( "#bodyContent" ).prepend($wordOutput); | ||
modifications