rss
twitter
  • Showcase
  • Carrières
  • Support
  • GitLab
  • Espace client
  • Contact

Tips’n’tricks for web developers

Mostly in French.
Ask us for help, English-speaking friends!

Afficher un bloc / Masquer tous les blocs (sans jQuery)

0
Pourquoi ? Je ne sais pas vous mais depuis l’apparition des frameworks javascript, genre jQuery & co., les opérations les plus simples en JS me sont complètement sorties de la tête. Du genre : mais comment qu’on faisait avant ?! Alors si vous avez du markup comme ça :
DATE 15 Nov 2010
BY Germain

Récupérer la dernière classe d’une liste attachée à un élément

2
Exemple <div id="items" class="products kids girls"> ... </div> Code jQuery $('#items').attr('class').split(' ').slice(-1); // retourne : girls
DATE 04 Nov 2010
BY Germain

jQuery : centrer une image en X et Y dans une div

0
// CENTER ZOOM IMAGE X+Y zoom_width = $('#container #main .wrap #zoom img').width(); zoom_height = $('#container #main .wrap #zoom img').height(); var zoom_divheight = $('#container #main .wrap #zoom').height(); $('#container #main .wrap #zoom img').css('left', '50%');
DATE 25 Oct 2010
BY Germain

Bug IE7 / jQuery / backgroundPosition

0
IE7 n’aime pas l’attribut backgroundPosition. A la place il faut utiliser backgroundPositionX et Y. // PRODUCT FAKE DROPDOWNS // on-the-fly adjustments $('.fake-dropdown').each(function(){ $('li', $(this)).each(function(i){ if (i) { $(this).css('marginTop', 20*(i-1));
DATE 24 Oct 2010
BY Germain

Equivalent de la fonction PHP in_array() en JavaScript

0
Array.prototype.in_array = function(p_val) { for(var i = 0, l = this.length; i < l; i++) { if(this[i] == p_val) { return true; } } return false; } Exemple : var v_array = [ 5, 10, 15, 20, 25]; document.writeln(v_array.in_array(10)); // true
DATE 22 Oct 2010
BY Germain

Paramètres de connexion au serveur mail

0
INDEX Adresse et identifiants Adresse unique de serveur (pour POP, IMAP, SMTP, et Webmail) : mail.italic.fr Nous pouvons configurer un alias de type mail.votre-nom-de-domaine sur demande. Identifiant : l’adresse mail complète Mot de passe : votre mot de passe Vous pouvez
DATE 18 Oct 2010
BY Germain
TAG featured

Récupérer le résultat de SHOW TABLES avec mysql_fetch_object

0
Un court exemple valant mieux qu’un long discours : $host = 'localhost'; $base = ''; $user = ''; $pass = ''; $con = mysql_connect($host, $user, $pass); mysql_select_db($base, $con); $req = "SHOW TABLES"; $res = mysql_query($req); $varname="Tables_in_".$base; while ($row =
DATE 30 Sep 2010
BY Germain

Gentoo : 7 config files in /etc need updating

0
Emerge demande à updater des fichiers d’/etc : sd-01 localhost # etc-update Scanning Configuration files... Exiting: Nothing left to do; exiting. :)
DATE 24 Sep 2010
BY Germain

Suis-je en train d’utiliser CGI ou FCGI ?

0
Créer le script suivant (et le lire pour comprendre) #!/usr/bin/perl use FCGI; $count = 0; while (FCGI::accept >= 0) { print "Content-type: text/html\r\n\r\n"; $count++; print "This will only count up if you are running under fastcgi: $count\n"; } Voir en ligne : Source
DATE 23 Sep 2010
BY Germain
« First‹ Previous891011121314Next ›Last »

Search the blog

Blog categories

  • Front-end : HTML, CSS (13)
  • Workflow (1)
  • Front-end : javascript, jQuery (33)
  • Back-end : PHP, CMS (42)
  • Back-end : SQL, MySQL (20)
  • Sysadmin : Linux, Apache, GIT (75)
  • Designers : tools, advice (2)
  • Desktop : OS X (37)
  • Desktop : Microsoft (12)
  • Uncategorized (8)

ITALIC™ Resources

  • Paramètres de connexion au serveur mail
  • Graphistes : séduire un développeur web
  • Dév front : nos bonnes pratiques
  • Mailing : nos (bonnes ?) pratiques
  • Environnement de travail Mac

Recent comments

  • Germain dans Inserer un motif dans une forme InDesign
  • Fannie J dans Inserer un motif dans une forme InDesign
  • Rapide benchmarks de clients Git pour Linux (et un peu Windows et Mac aussi) – Haha. dans Git avec SourceTree : ouvrir dans TextMate / ouvrir dans Sublime Text 2
  • Germain dans Ajouter des contacts non-Facebook à Spotify
  • cc dans Ajouter des contacts non-Facebook à Spotify

Meanwhile, in the office…

UNEP @ Paysalia

01 Déc 2015

Liebig

22 Sep 2015

Mercedes-Benz

17 Sep 2015

Office National du Tourisme Tunisien

21 Août 2015

Serious Game

17 Juil 2015

Engie

22 Juin 2015

UN Guiding Principles Reporting Framework

21 Mar 2015

Dites-le avec Nutella®

21 Fév 2015

HEC

21 Déc 2014

AREVA

21 Déc 2014
© 2008-2017 ITALIC™ • 8 bis rue Abel • 75012 PARIS • Tel +33 (0)1 48 44 46 35 • RCS PARIS 508 228 772 • Powered by WordPress & GoodLayers
Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site web.
Cookie settingsACCEPTER
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Toujours activé
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Enregistrer & appliquer