From: pifou Date: Fri, 8 Jun 2007 15:38:46 +0000 (+0000) Subject: MOD modification du css pour faire un truc qui ressemble à qque chose X-Git-Url: http://git.euphorik.ch/?p=pompage.git;a=commitdiff_plain;h=e9fd5c2bdeb9b348717b34d5dc6fad78da86130d MOD modification du css pour faire un truc qui ressemble à qque chose git-svn-id: svn://euphorik.ch/pompage@9 02bbb61a-6d21-0410-aba0-cb053bdfd66a --- diff --git a/css/yopyop.css b/css/yopyop.css index 13c59a8..ca657f1 100644 --- a/css/yopyop.css +++ b/css/yopyop.css @@ -2,7 +2,62 @@ margin: 0; padding: 0; border-width: 0; - font: normal 11px Verdana, Helvetica, Arial, sans-serif; - color: #000; - background-color: #FFF; -} \ No newline at end of file + font: normal 12pt Arial, Verdana, Helvetica, sans-serif; + color: #000000; +} + +h1 { + font-size: 20pt; + font-style: italic; +} + +th { + font-size: 13pt; + font-weight: bold; +} + +td { + vertical-align:top; +} + +table#liste { + width: 100%; + border-spacing: 0px 0px; +} + +table#liste th { + background-color: #9999DD; + padding: 3px; +} + +table#liste td { + background-color: #BBBBEE; + padding: 3px; +} + +table#liste td.titre:hover { + background-color: #CCCCFF; + padding: 3px; +} + +table#liste td.detail { + background-color: #FFFFFF; + padding: 0px 0px 5px 5px; +} + +table#liste table.detail { + visibility:hidden; + position:absolute; + border-spacing: 0px 0px; +} + +table#liste table.detail td { + padding: 3px; + background-color: #DDDDFF; +} + +table#liste table.detail td.titreDetail { + font-weight: bold; +} + + diff --git a/js/yopyop.js b/js/yopyop.js new file mode 100644 index 0000000..1125312 --- /dev/null +++ b/js/yopyop.js @@ -0,0 +1,19 @@ +/** + * Callback appelé lorsque un film est clické. + * Affiche ou cache les informations détaillés pour ce film. + */ +function detailFilm(poulpe) +{ + var detail = document.getElementById(poulpe) + + if (detail.style.visibility == "visible") + { + detail.style.visibility = "hidden" + detail.style.position = "absolute" + } + else + { + detail.style.visibility = "visible" + detail.style.position = "relative" + } +} \ No newline at end of file diff --git a/mise_en_prod.rb b/mise_en_prod.rb new file mode 100644 index 0000000..8830586 --- /dev/null +++ b/mise_en_prod.rb @@ -0,0 +1,12 @@ +if $*.length < 1 + puts 'Usage: mise_en_prod.rb destination' + exit 1 +end + +dest = $*[0] + +# pour windows +['xml', 'xsl', 'js', 'css'].each{|rep| + `mkdir #{dest}\\#{rep}` + `xcopy /Y #{rep} #{dest}\\#{rep}` +} \ No newline at end of file diff --git a/src/yopyop.rb b/src/yopyop.rb index 949edd8..f9ddd91 100644 --- a/src/yopyop.rb +++ b/src/yopyop.rb @@ -10,7 +10,7 @@ # o ogm # o mkv # o rmvb -# - Rechercher chaque film sur le site 'allocine.com' et en pomper un max d'infos +# - Rechercher chaque film sur le site 'allocine.com' et 'imdb.com' et en pomper un max d'infos # - Etablir une petit base de données des films au format xml # non ce n'est pas du perl ;) diff --git a/xml/test.xml b/xml/test.xml index 3f23997..7f82184 100644 --- a/xml/test.xml +++ b/xml/test.xml @@ -1,7 +1,7 @@ - + F:\Films\Aventure/Bienvenue dans la Jungle.avi Bienvenue dans la jungle 2002 @@ -27,7 +27,7 @@ http://www.allocine.fr/film/fichefilm_gen_cfilm=46372.html - + F:\Films\Aventure/Troie [Divx5 Ogg] [Fr].ogm Troie 2004 @@ -53,7 +53,7 @@ http://www.allocine.fr/film/fichefilm_gen_cfilm=47357.html - + F:\Films\Aventure/Zatoichi [Rv4 Ogg] [Fr Jap] [Fr Eng] [XCT].mkv Zatoichi 2003 @@ -79,7 +79,7 @@ http://www.allocine.fr/film/fichefilm_gen_cfilm=50986.html - + F:\Films\Aventure/A la poursuite du diamant vert [Rv9 Aac] [Fr Eng] [Fr Eng] [XCT].mkv A la poursuite du diamant vert 1984 @@ -105,7 +105,7 @@ http://www.allocine.fr/film/fichefilm_gen_cfilm=57.html - + F:\Films\Aventure/Benjamin Gates et le tresor des templiers [DVD-Screen].avi Benjamin Gates et le trésor des Templiers 2004 diff --git a/xsl/yopyop.xsl b/xsl/yopyop.xsl index 2a137c9..3a4fbbf 100644 --- a/xsl/yopyop.xsl +++ b/xsl/yopyop.xsl @@ -1,35 +1,46 @@  - - - - - - yopYop - - @import url(../ccs/yopyop.css); - - -

Films

- - - - - - - - - - - - - - - - - - -
TitreAnnéeDuréeLienFichier
min
- - -
+ + + + + yopYop + + + + +

DivX

+ + + + + + + + + + + + + + + + + + + + + + +
TitreAnnéeDuréeLienFichier
min
+ + + + + + +
Genre(s),
Réalisateur(s),
Acteurs(s),
Pays,
Synopsis
+
+ + +
\ No newline at end of file