Langages/Javascript/Raphael JavaScript Library
Raphael est une bibliothèque qui permet de créer des canvas SVG et de les piloter avec le language Javascript. Lien : http://raphaeljs.com/J'ai créé une extension qui permet de gérer un calendrier comme outlook. Je vous laisse en faire bon usage.
- raphael-calendar.js : l'extension Calendrier "Outlook-like"
- raphael-min.js : la bibliothèque Javascript
![]() .. |
raphael-calendar.js |
raphael-min.js |
Utilisation :
var resa1 = drawReservation(paper,"Mardi","10h00","11h00").
attr({fill: "#22f", stroke: "#000", opacity: 0.8});
var textObj1 = paper.text( resa1.getBBox().x + (resa1.getBBox().width/2),
resa1.getBBox().y + (resa1.getBBox().height/2),
"Reservation").attr({font: configuration.hoursFontSize + 'px "Arial"'});
textObj1.attr({fill: "#000"});
var resa = drawReservation(paper,"Vendredi","12h30","14h15").attr(
{fill: "#bebeff", stroke: "#444", opacity: 1}
);
paper.rect(resa.getBBox().x+1,
resa.getBBox().y+1,
resa.getBBox().width-2,
resa.getBBox().height-2, 4).attr(
{stroke: "none",
gradient: "270-rgba(255, 255, 255, 0)-rgba(200, 200, 255, 1):75",
opacity: 0}
);
var textObj = paper.text( resa.getBBox().x + (resa.getBBox().width/2),
resa.getBBox().y + (resa.getBBox().height/2),
"Reservation").attr({font: configuration.hoursFontSize + 'px "Arial"'});
textObj.attr({fill: "#000"});

Si vous voulez des infos, écrivez-moi : julien.coron@gmail.com
