Accessible and nice inputs with jQuery

I like to have accessible code while enhancing user experience with jQuery. Suppose the following markup: <label for= »password » class= »label »>Type your password</label> <input type= »text » id= »password » name= »password » /> I would like to gain space by writing « Type your password » into the text … Continue reading

Vertically center align content with jQuery

Quick’n’dirty. Vertical center align the #content element using another -parent- element (body, in this example) as a reference with jQuery. <script type= »text/javascript »> jQuery(document).ready(function() { centerElm(‘#content’, ‘body’); }) function centerElm(elm, elmParent) { var elmHeight = $(elmParent).height(); var elmHeightInner = $(elm).innerHeight(); var … Continue reading

E-mail spam protection with jQuery

To protect e-mails from spam robots I recommend using this technique, which will only reveal the e-mail adress for users with Javascript enabled, which is typically not the case of robots searching for e-mail adresses. <script type= »text/javascript »> jQuery(document).ready(function() { $(‘a.mail’).each(function() … Continue reading

@font-face – doing it right

Tous les graphistes avec lesquels j’ai travaillé sur des sites web durant ces dernières années ont insisté pour utiliser des polices de caractères spécifiques. Des polices autres que Arial, Helvetica, Verdana, Times New Roman etc. qui sont les polices installées … Continue reading

Extensions utiles pour WordPress

Voici, pour mémoire, une liste non exhaustive d’extensions utiles pour WordPress. Performance WP minify compresse les feuilles de style et les scripts WP Super Cache sert des fichiers statiques au format html au lieu de recalculer toutes les pages à … Continue reading

Less options in WordPress’ post editor

I have been asked several times by clients or collaborators to simplify  the admin interface of WordPress. Which is a problem, as I do not want my modifications to magically disappear at each WordPress update. So, one solution could be … Continue reading

WordPress chez 1and1

Chez 1and1.fr WordPress fonctionne à merveille – il suffit de dire qu’on veut utiliser PHP5, et non PHP4, qui est la version de PHP utilisée par défaut sur leurs serveurs. Sans cela, la mise à jour automatique, l’installation via l’interface … Continue reading

WordPress Galleria plugin autoplay

For a client I was looking for a slideshow which could be easily integrated with WordPress and galleria-wp has been my choice. It just does not start the slideshow automatically… In order to do this I added the following lines … Continue reading

php-indexes – a file tree generator

php-indexes generates an index of files in a defined folder, similar to the Apache file listing. Files may be ordered by name or date. It also generates an RSS feed. It does not require a database and is configurable via … Continue reading

Des effets pour GIMP

La Gimp FX Foundry propose divers scripts qui permettent d’ajouter divers effets à vos images : il y a même un effet photo LOMO :) Il suffit de télécharger les scripts, et de les copier dans ~/.gimp-2.4/scripts (si vous utilisez … Continue reading