Author: qmoriceau Date: 2013-04-17 14:46:18 +0200 (Wed, 17 Apr 2013) New Revision: 24 Url: http://chorem.org/projects/incubator/repository/revisions/24 Log: Premi?\195?\168re version des sources Added: jtimerhtml5/images/ jtimerhtml5/images/bell.png jtimerhtml5/images/bookmark-new.png jtimerhtml5/images/document-new.png jtimerhtml5/images/go-next.png jtimerhtml5/images/notes.png jtimerhtml5/images/process-stop.png jtimerhtml5/index.html jtimerhtml5/menu.js jtimerhtml5/style.css Added: jtimerhtml5/images/bell.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/images/bell.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/images/bookmark-new.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/images/bookmark-new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/images/document-new.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/images/document-new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/images/go-next.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/images/go-next.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/images/notes.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/images/notes.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/images/process-stop.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/images/process-stop.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/index.html =================================================================== --- jtimerhtml5/index.html (rev 0) +++ jtimerhtml5/index.html 2013-04-17 12:46:18 UTC (rev 24) @@ -0,0 +1,88 @@ +<html> + <head> + <meta charset="UTF-8"/> + <title>jTimer</title> + <link rel="stylesheet" type="text/css" href="style.css"/> + <script type="text/javascript" src="menu.js"></script> + </head> + <body> + <script language=JavaScript> + <!-- //Menu dynamique + var x = 0, y = 0 + var elementH = 25, elementW = 150 + var menu_bgcolor_normal = "#CCCCCC" + var menu_bgcolor_over = "#33CC00" + var menu_bordercolor = "#000000" + var menu = [ + "<font size=3>Fichier</font>", + "<font size=3>Projet</font>", + "<font size=3>Tâche</font>", + "<font size=3>Rapport</font>", + "<font size=3>Options</font>", + "<font size=3>Aide</font>" + ] + var submenu = [ + [ + "<font id='quitter' size=3 onclick=''>Quitter</font>" + ], + [ + "<font id='newP' size=3 onclick=''>Nouveau projet</font>", + "<font id='edP' size=3 onclick=''>Edition du projet</font>", + "<font id='ofP' size=3 onclick=''>Ouvrir/Fermer le projet</font>", + "<font id='suppP' size=3 onclick=''>Suppression du projet</font>" + ], + [ + "<font id='newT' size=3 onclick=''>Nouvelle tâche</font>", + "<font id='edT' size=3 onclick=''>Edition de la tâche</font>", + "<font id='ofT' size=3 onclick=''>Ouvrir/Fermer la tâche</font>", + "<font id='SuppT' size=3 onclick=''>Suppression de la tâhe</font>", + "<font id='dem' size=3 onclick=''>Démarrer</font>", + "<font id='stop' size=3 onclick=''>Arrêter</font>", + "<font id='addA' size=3 onclick=''>Ajouter une annotation</font>", + "<font id='edAlerte' size=3 onclick=''>Edition des alertes</font>", + "<font id='add1' size=3 onclick=''>Ajouter 1 minute</font>", + "<font id='add5' size=3 onclick=''>Ajouter 5 minutes</font>", + "<font id='add30' size=3 onclick=''>Ajouter 30 minutes</font>", + "<font id='sou1' size=3 onclick=''>Enlever 1 minute</font>", + "<font id='sou5' size=3 onclick=''>Enlever 5 minutes</font>", + "<font id='sou30' size=3 onclick=''>Enlever 30 minutes</font>", + "<font id='zero' size=3 onclick=''>Remettre à Zero</font>", + "<font id='fus' size=3 onclick=''>Fusionner</font>" + ], + [ + "<font id='rapport' size=3 onclick=''>Rapport...</font>" + ], + [ + "<font id='affCachés' size=3 onclick=''>Afficher les cachés</font>", + "<font id='fermerSystray' size=3 onclick=''>Fermer vers le systray</font>", + "<font id='jSemaine' size=3 onclick=''>Rapport-Premier jour de la semaine</font>" + ], + [ + "<font id='propos' size=3 onclick=''>A propos...</font>" + ] + ] + createMenu() + //--> + </script> + <div class="boutons"> + <! Les boutons d'actions > + <input type="submit" class="boutonAct" id="demarreTache" value="" title="" onclick=''> + <input type="submit" class="boutonAct" id="arretTache" value="" title="" onclick=''> + <input type="submit" class="boutonAct" id="nouveauProjet" value="" title="" onclick=''> + <input type="submit" class="boutonAct" id="nouvelleTache" value="" title="" onclick=''> + + <input type="submit" class="boutonAct" id="note" value="" title=""> + <input type="submit" class="boutonAct" id="alerte" value="" title=""> + </div> + <div class="arboTaches"> + <! Arborescence des taches > + <table width=100%> + <tr><th width=33%>Projet et tâches</th><th width=33%>Aujourd'hui</th><th width=33%>Total</th></tr> + </table> + </div> + <footer class="piedpage"> + <! footer à garder tel quel > + <table border=1 width=99%><tr><td width=50%>Inactif</td><td width=50% align="center">Aujourd'hui : 00:00:00</td></tr></table> + </footer> + </body> +</html> Added: jtimerhtml5/menu.js =================================================================== --- jtimerhtml5/menu.js (rev 0) +++ jtimerhtml5/menu.js 2013-04-17 12:46:18 UTC (rev 24) @@ -0,0 +1,67 @@ + +// -----------------------------------------------------... +function createMenu() { +document.write("<div class='menus'><table border=1 bordercolor="+menu_bordercolor+" style=cursor:default;position:absolute;top:"+y+";left:"+x+"; cellspacing=0; width="+elementW*3+"><tr>") +for (var i = 0; i < menu.length; i++) +document.write("<td bgcolor="+menu_bgcolor_normal+" id=menu"+i+" onmouseover=menuOver(this,"+i+") onmouseout=menuOut(this,"+i+") onclick=menuOver(this,"+i+") height="+elementH+" width="+elementW/2+" > "+menu[i]+"</td>") +document.write("</tr></table></div>") +for (var i = 0; i < submenu.length; i++) { +document.write("<table border=1 bordercolor="+menu_bordercolor+" style=display:none;cursor:hand;position:absolute;left:"+(x+(i*elementW/2))+";top:"+(y + elementH)+"; id=submenu"+i+" cellspacing=0 onmouseover=revealSubMenu("+i+") onmouseout=hideSubMenu("+i+") width="+elementW+">") +for (var j = 0; j < submenu[i].length; j++) +document.write("<tr><td bgcolor="+menu_bgcolor_normal+" onmouseover=styleOver(this) onmouseout=styleOut(this) height="+elementH+"> "+submenu[i][j]+"</td></tr>") +document.write("</table>") +} +} +// -----------------------------------------------------... +// ----------------------------------------------------- +function menuOver(element, numMenu) { +setDefaultStyle(element) +styleOver(element) +revealSubMenu(numMenu) +} +// ----------------------------------------------------- +function menuOut(element, numMenu) { +hideSubMenu(numMenu) +} +// ----------------------------------------------------- +function styleOver(element) { +element.bgColor = menu_bgcolor_over +} +// ----------------------------------------------------- +function styleOut(element) { +element.bgColor = menu_bgcolor_normal +} +// ----------------------------------------------------- +function setDefaultStyle() { +for (var i = 0; i < menu.length; i++) +O("menu"+i).bgColor = menu_bgcolor_normal +} +// ----------------------------------------------------- +// ----------------------------------------------------- +function revealSubMenu(numMenu) { +hideAll() +show( O("submenu"+numMenu) ) +} +// ----------------------------------------------------- +function hideSubMenu(numMenu) { +hide( O("submenu"+numMenu) ) +} +// ----------------------------------------------------- +function show(element) { +element.style.display = "" +} +// ----------------------------------------------------- +function hideAll() { +for (var i = 0; i < submenu.length; i++) +hideSubMenu(i) +} +// ----------------------------------------------------- +function hide(element) { +element.style.display = "none" +} +// ----------------------------------------------------- +// ----------------------------------------------------- +function O(id) { +return document.getElementById(id) +} +// ----------------------------------------------------- Added: jtimerhtml5/style.css =================================================================== --- jtimerhtml5/style.css (rev 0) +++ jtimerhtml5/style.css 2013-04-17 12:46:18 UTC (rev 24) @@ -0,0 +1,41 @@ + +/* Boutons */ + +.boutonAct { + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 40px; +} + +#demarreTache { + background: url(images/go-next.png); +} + +#arretTache { + background: url(images/process-stop.png); +} + +#nouveauProjet { + background: url(images/bookmark-new.png); +} + +#nouvelleTache { + background: url(images/document-new.png); +} + +#note { + background: url(images/notes.png); +} + +#alerte { + background: url(images/bell.png); +} + + + +.boutons {margin-top:32px; margin-bottom:20px} + +footer {width:100%;height:35px;position:fixed;bottom:0px;margin:0} + +th { border:thin solid}