
La collection Prêt à tâcher est un concept de bavoirs pour adultes. La créatrice Maude Möhlmann revisite cet accessoire souvent réservé aux petits et l’habille avec ses créations de bijoux imprimés.
Site quadrilingue.

La collection Prêt à tâcher est un concept de bavoirs pour adultes. La créatrice Maude Möhlmann revisite cet accessoire souvent réservé aux petits et l’habille avec ses créations de bijoux imprimés.
Site quadrilingue.
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 input. However this would create hassle for the user without Javascript: they would need to manually delete my indication.
I could propose this to a user with Javascript, by adding onclick= »this.value= »; » to the input. However, this alters the markup. And also, everytime they click outside of the input, then click again in the input, it will delete the contents which may be annoying.
That is why I came up with this function:
jQuery(document).ready(function() {
$('.label').each(function(){
var labelText = $(this).text();
var correspondingInput = $(this).attr('for');
$('#'+correspondingInput).attr('value', labelText);
$('#'+correspondingInput).click(function(){
if ($(this).attr('value') == labelText) {
$(this).attr('value', '');
}
});
$(this).hide();
});
});
Basically, every label of the class « label » will be hidden and its text will be shown in the corresponding text input.
This method only supposes clean markup:
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 spacing = (elmHeight - elmHeightInner)/2;
$(elm).css('padding-top', spacing);
}
</script>


Migration d’un site statique vers WordPress. Il s’agit du site de la jeune galerie parisienne Gaudel de Stampa. Le graphisme et le logo ont été conçus par Aline Girard.
Migration of a static website to WordPress. The website is the one of the young parisian gallery Gaudel de Stampa. Design and logo are a creation by Aline Girard.
Migration einer statischen Webseite zu WordPress für die junge Pariser Galerie Gaudel de Stampa. Design und Logo wurden konzipiert von Aline Girard.