Questions posées par un étudiant: Pour mon portfolio, je souhaiterais que mes éléments (qu’on trouve sous le slide pour la page d’accueil et dans l’onglet portfolio) soient triés aléatoirement, et non chronologiquement comme maintenant. S’il est possible de rendre aléatoire cet ordre afin qu’à chaque chargement de la page la disposition soit différente, cela serait…
Read more "Affichage aléatoire des articles"Tag: Code
Improving Slideshare embeds
Here’s a small JavaScript snippet that may help you embed a Slideshare document in an optimized way. When you use the built-in oEmbed mechanism in WordPress, you don’t have much control on the iframe attributes, and Slideshare sets the width/height of the iframe to 427/356 px. That’s pretty tiny, the standard content-width of a post…
Read more "Improving Slideshare embeds"Using Phantom.js / Casper.js as a sequential file downloader
I’m sharing a little script that may be useful for you! The context: I am subscribed to a newspaper, which allows its subscribers to log into the members area of their website, browse the newspaper’s past issues, and download them in PDF format. I thought it would be practical in the future to have a complete archive of…
Read more "Using Phantom.js / Casper.js as a sequential file downloader"