Pokemon_JOJO's Blog

Aller au contenu | Aller au menu | Aller à la recherche

samedi, octobre 25 2008

PBB MagicWheel

pbb-magicwheel.jpg

Présentation

PBB MagicWheel permet de créer facilement une "Roue magique" ;) avec la possibilité d'ajouter une réflection aux images ainsi qu'une tooltips qui s'affiche au survol. Cette class javascript est pour Mootools 1.2

Fonctionnalités

  • Très simple d'utilisation
  • Reflection possible des images
  • Tooltips
  • Entièrement configurable
  • Ajout automatique d'icons/images possible

Démonstration

PBB MagicWheel Demo

Téléchargement

Requis

PBB MagicWheel a été testé avec Firefox, Safari, Opera et Internet Explorer. Mootools 1.2 est nécessaire pour fonctionner.

Vous êtes en train de télécharger PBB MagicWheel 1.0 Beta.

Documentation

Comming soon ;)

vendredi, octobre 24 2008

Mootools 1.2 HTML Documentation "offline"

mootools-logo.png

Une fois n'est pas coutume, je me suis retrouvé sans connexion internet à devoir coder du javascript avec Mootools 1.2. Seul problème, je n'est pas trouvé de documentation "offline" fiable et facile à utiliser. (les chm en images c'est pas tip top).

La version en ligne de la documentation pour mootools 1.2 étant très bien faite, j'en ai fait une version "offline" au format HTML.

download-icon.png
Télécharger la Documentation Mootools 1.2 au format HTML

jeudi, octobre 16 2008

PBB DatePicker

pbb-datepicker.jpg

Présentation

PBB DatePicker est une class javascript accessible et "unobtrusive" qui permet d'ajouter facilement un "DatePicker" (en forme de calendrier) à vos formulaires. Cette class est une compilation de plusieurs "DatePickers" que j'ai épurée, améliorée et ré-écrite pour Mootools 1.2.

J'ai essayé d'y inclure les fonctionnalités qui me paraissaient les plus utiles sans en faire une usine à gaze.

Fonctionnalités

  • Apparence du calendrier facilement modifiable grâce aux CSS et sa structure XHTML
  • Format de la date entièrement configurable similaire à la fonction date en PHP
  • Langue des jours de la semaine et des mois configurable
  • Navigation au clic et à la molette par Mois et Années
  • Détection automatique du focus

Démonstration

PBB DatePicker Demo

Téléchargement

Requis

PBB DatePicker a été testé avec Firefox, Safari, Opera et Internet Explorer. Mootools 1.2 est nécessaire pour fonctionner.

Liens

Vous êtes en train de télécharger PBB DatePicker 1.0 Beta.

Documentation

La documentation est volontairement en anglais pour une meilleure compréhension de tous et un meilleurs support.

Arguments:
  • elements - (mixed: optional) A collection of elements, a string Selector, or an Element to apply the datepickers to.
  • options - (object) An object to customize this PBBDatePickers instance.
Options:
  • showDelay - (number: defaults to 100) The delay the show event is fired.
  • hideDelay - (number: defaults to 100) The delay the hide hide is fired.
  • className - (string: defaults to null) The className your datepicker container will get. Useful for extreme styling.
    • The datepicker element inside the datepicker container above will have 'datepicker' as classname.
  • offsets - (object: defaults to {'x': 0, 'y': 20}) The distance of your datepicker from the input.
  • dateformat - (string: defaults to 'd/m/Y') The format of your date like PHP Date function.
  • days - (array: defaults to 'Dimanche', 'Lundi', 'Mardi', 'Merc...) All days of the week starting at sunday.
  • months - (array: defaults to 'Janvier', 'Février', 'Mars', 'Avr...) All months of the years.
  • weekFirstDay - (number: defaults to 1... yeah i'm french ^^) First day of the week: 0 = sunday, 1 = monday, etc..
Events:
  • show : fires when the datepicker is shown
  • hide : fires when the datepicker is being hidden
Exemple:

HTML

<input id="date1" name="date1" type="text" class="thisisadatepicker" />

JavaScript

var myDatepickers = new PBBDatePickers('.thisisadatepicker');
DatePickers Event: show
  • (function) Fires when the DatePicker is starting to show and by default sets the datepicker visible.
Signature:
onShow(datepicker)
Arguments:
  1. datepicker - (element) The datepicker element. Useful if you want to apply effects to it.
Example:
myDatepickers.addEvent('show', function(datepicker){
    datepicker.fade('in');
});
DatePickers Event: hide
  • (function) Fires when the DatePicker is starting to hide and by default sets the datepicker hidden.
Signature:
onHide(datepicker)
Arguments:
  1. datepicker - (element) The datepicker element. Useful if you want to apply effects to it.
Example:
myDatepickers.addEvent('hide', function(datepicker){
    datepicker.fade('out');
});
DatePickers Method: attach

Attaches datepickers to elements. Useful to add more elements to a datepickers instance.

Syntax:
myDatepickers.attach(elements);
Arguments:
  1. elements - (mixed) A collection of elements, a string Selector, or an Element to apply the datepickers to.
Returns:
  • (object) This PBBDatePickers instance.
Example:
myDatepickers.attach('input.thisisadatepicker');
DatePickers Method: detach

Detaches datepickers from elements. Useful to remove elements from a datepickers instance.

Syntax:
myDatepickers.detach(elements);
Arguments:
  1. elements - (mixed) A collection of elements, a string Selector, or an Element to apply the datepickers to.
Returns:
  • (object) This PBBDatePickers instance.
Example:
myDatepickers.detach('input.thisisadatepicker');
PBBDatePickers HTML Structure
<div class="options.className"> //the className you pass in options will be assigned here.
  <div class="datepicker-top"></div> //useful for styling
 
    <div class="datepicker">
 
      <table>
        <caption>
          <span class="month">
            <a class="prev">&lt;</a>
            <span>[Month]</span>
            <a class="next">&gt;</a>
          </span>
          <span class="year">
            <a class="prev">&lt;</a>
            <span>[Year]</span>
            <a class="next">&gt;</a>
          </span>
        </caption>
        <thead>
          <tr>
            <th>S</th>
            <th>M</th>
            <th>T</th>
            <th>W</th>
            <th>T</th>
            <th>F</th>
            <th>S</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>30</td>
            <td>31</td>
            <td class="active">1</td>
            <td class="inactive">2</td>
            <td class="today">3</td>
            <td class="hilite">4</td>
            <td>5</td>
          </tr>
          <tr> ... </tr>
          <tr> ... </tr>
          <tr> ... </tr>
          <tr> ... </tr>
        </tbody>
      </table>
 
    </div>
 
    <div class="datepicker-bottom"></div> //useful for styling
</div>
DatePickers with date format

You can also assign inputs date format with the "accept" attribut for each differents inputs

Exemple:

HTML

<input id="date2" name="date2" type="text" class="thisisadatepicker" accept="m/d/Y" />

jeudi, août 21 2008

Gnome Somatic Icons thème

En grand fan de David Lanham, j'ai aussi réalisé un thème pour Gnome reprenant les icons "Somatic" de David Lanham.

Optimisé pour Ubuntu Feisty, je mettrais le pack à jour dès que j'aurais le courage de migrer sur Ubuntu Hardy. Le thème contient plus de 1000 références, et s'intègre généralement bien quelque soit votre version de Gnome.

Cliquez sur l'image pour un aperçu :
ICON-Somatic.jpg

The Somatic images have been used with permission from David Lanham - http://www.dlanham.com

License: Free for Personal Use

Only for personal, desktop use. All copyrights remain the property of their respective holders.

Téléchargez ce thème d'icons sur GNOME-Look.org

mardi, août 5 2008

4 thèmes Somatic pour Gdm

Depuis le temps que je voulais un thème GDM basé sur les oeuvres Somatic de David Lanham mais n'ayant toujours rien trouvé, j'ai décider de créer moi même un thème GDM. Pour le coup, j'en ai même fait 4 que je met à disposition sur mon blog.

Un grand merci à la commande gdmflexiserver --xnest que je note ici pour m'en souvenir si l'envie me prend de faire de nouveaux thèmes GDM.

Utilisable pour toutes les résolutions de 640x480 à 1600x1200. Peut aussi être utilisé pour les écrans "Wide". Voici un aperçu des 4 thèmes GDM Somatic :

The Somatic images have been used with permission from David Lanham - http://www.dlanham.com

License: Free for Personal Use

Only for personal, desktop use. All copyrights remain the property of their respective holders.

SOMATIC_sleep.jpg SOMATIC_MarshmallowHunting.jpg SOMATIC_red.jpg SOMATIC_PhosphoricAcid.jpg

Téléchargez ces thèmes GDM sur GNOME-Look.org

NB : Les thèmes GDM sont tous les mêmes, seul l'arrière plan change.