Tourtracker booklet

Posted on

To show riders with speed < 10kmh (fall, mechanicals of pee break) on the Tour de France live data page

Add this “hyperlink” to your bookmarks. Name it “Tourtracker script” or think of a name yourself

javascript:$(".col-md-12").addClass("main"),$(".main").addClass("col-md-9"),$(".main").removeClass("col-md-12"),$(".main").parent().append('<di'+'v class="col-md-3" id="sidebar">'),timecheck=function(){var s=0;$(".table-data-row").each(function(){var t=parseFloat($(this).find("td:eq(10)").text());if(t<10){var d=$(this).find("td:eq(0)").text(),e=$(this).find("td:eq(6)").text(),i=$(this).find("td:eq(1)").text(),a=$(this).find("td:eq(9)").text();$("#sidebar").prepend('<di'+'v class="rider"'+i+">"+d+" "+t+"kmh "+e+" "+a+""),s++}}),console.log(s)},setInterval(timecheck,1500);

Go to

https://livetracking.letour.fr/#/livedata

Click on your new bookmark once.

The script will check every 1.5 seconds for riders with speed < 10kmh and show them to the right of the list

screen-shot-2018-07-13-at-16-56-00

 


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>