From 728b3f5df7b780aabdaf563f9d93dd3ef4421820 Mon Sep 17 00:00:00 2001 From: pifou Date: Mon, 2 Jul 2007 13:46:34 +0000 Subject: [PATCH] =?utf8?q?ADD=20Fonction=20pour=20ouvrir=20les=20d=C3=A9ta?= =?utf8?q?ils=20de=20tous=20les=20films=20affich=C3=A9es=20ADD=20Fonction?= =?utf8?q?=20pour=20choisir=20un=20film=20au=20hasard=20parmis=20ceux=20af?= =?utf8?q?fich=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn://euphorik.ch/pompage@43 02bbb61a-6d21-0410-aba0-cb053bdfd66a --- conception/ouvrir.psd | Bin 0 -> 17522 bytes conception/random.psd | Bin 0 -> 16768 bytes css/yopyop.css | 22 ++++++++++- doc/todo.txt | 3 ++ img/ouvrir.png | Bin 0 -> 350 bytes img/random.png | Bin 0 -> 252 bytes js/yopyop.js | 85 +++++++++++++++++++++++++++++++++------- src/basemodule.rb | 1 - src/modules/allocine.rb | 14 ++++--- xsl/yopyop.xsl | 4 +- 10 files changed, 106 insertions(+), 23 deletions(-) create mode 100644 conception/ouvrir.psd create mode 100644 conception/random.psd create mode 100644 img/ouvrir.png create mode 100644 img/random.png diff --git a/conception/ouvrir.psd b/conception/ouvrir.psd new file mode 100644 index 0000000000000000000000000000000000000000..0f3582a1d57ea19c2e9836fd960d2bdff13c5962 GIT binary patch literal 17522 zcmeG@33yY*)^oErP4|Ve2k6GqrfKO4EiGMWfzr~JQV@hRxlKc}adXoa6c9v^MG-`H zWhsJy4-jP$R2ETGkOHzOh!%NRP{bmeY|VdWvNS0m@ZP8Y_kVwHI(N=FbIzGFXU;u$ zGLt6s%`Ze0vR*u>0-*RI5#m}&v8NOI=H&8l3qrzn9E3RVA+!)e^Ujj|F(Y(G@#)RW zsFj=7zE(xrf^l2xZoT_d8x_h5nw6H)YK=ZQ?Dt)}!=xHja@f$=+^Ae*I$f^G9?#H) z;|CQf$5$v5Rbh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5aUXn9xv7LdJ=~|CaFv+oL*v};Qtl1UiP51p;k_vSu3Te-3}TN*EoygwLQMD zxE&@0+z}Q>&BYCBE$$tERp2y<;FanpA6t8c|IO4R=+v2}u}b00_LovHL}#&5x)M+Q zAR=bB5$wd);cgsO5-HbJHD~v3k}R-3*A^meD8retGuDi8oJXu#7AV$*HO@NZ!tJ(9 z>JJ1Fe0@?t?i>r}{rD@GoV43AD9kHE@TLq(^#2zb)S8?AB7^R+nu+W+3>yc=6Me2& zp7is7OsfFC^?8zygm^+g?h+dfT5rQN-$vFuOts}6DI5Udb#1wCD~$+4m|~^gLjueU zfA`>csR7-E`mO~-&MmGouKHa2a<<}0JlsG(?(;-iY8oE%c_J+%8y@qq1}1(U@?j}Q zFdUmA`1q5LFT7-+-T+zYm;=Y}|03rV%WVtiTK%=#xIROlxeZwa@i+4R;3jok8mTR?iJ)r>rL`<_nmPU(&K$wn8qvgIu3{X92#tQCR?pZ{j(fW7K zLR~v^zm_@!e0B)c-=$G~qs3a=sZH&!^3AnB*gsfqwav-OhmYpLQQJLY_Ylq@b{MzS zxOl6^#alJRTQ$U6HFj@dVlB|F!3~^AtOW>TxY)c^QxBT!0e>QI)!4iR^%Hr^N&AES z6K_G!&Q@Y?VG^NX)5&P;-f9}P-6M7nHTTv?7jKPp@zzM9e2mFb=HPYrSsGrDNPTGmLT>2;80*bSh*jt!HXxMZYZ#9h?dkcHS z$y<=6Ig%g=&eoh@OYm*TzZh>soG43FBmC+nNP=^+caS9t0HDFwohVBXp#cCyOtV6e z-6aIVbX;(T7XuUonz4fWkjX`$(fW4}QIg>MQB*MS*&!5k*Mfo|tCQMJZEAOwZ?65p Y{=ssqZBAA`d^8V^+U^m%hpwRi0d0SFB>(^b literal 0 HcmV?d00001 diff --git a/conception/random.psd b/conception/random.psd new file mode 100644 index 0000000000000000000000000000000000000000..3ef5876331cb097f6d35768cda3c9f24586ddf3e GIT binary patch literal 16768 zcmeG@30RcX+UJ{{VOR%n*HL6~fnh*aSp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mEG% z!r3K-)jC#P;dEG(#S~VwT6P2i3?%GJ8&zd4QYEY|hZDm}G%B$YN-%0|Sh##6A{$&RdAz1F3gUZvF&q70)p{Ye)M z%CfLVJ97HX&}S4Mu!a$LC4x`WU3K zXz=zD0}uXRPJ41Xt)pqDG+6aAirVFZ5q6zBJ3iavgxQ^S0>B+%c62YhNvp@b!`-;FBwVde)tp_s z$Yz1%wZ;%`Q#sxldtk}9jrS4zE(;L*!5Z&6Bw@T`Ck+6A2);h4VDFp&(SQ6EOhNFD z9Teu3A?=nOl*s=tc2N7?^d~#$Zo8VuS;DZfV?5I5s_juf|Hq`lB@29b@ZHb(aY6|E zHo9(Wgm4iqVWMqK=q}{f&>d)8x7q7+Z`GK#9p_p*@T$gczWP`ATDzKhby@ksJZ9n_^D zr_(`_4SxK5)6cZd^bv+ qui apparaissent dans les synopsis [ok] Certains synopsis sont remplit avec un peu n'importe quoi (html et cie) (voir ben hur) [ok] Les films "vide" ne s'affiche pas bien (il manque une partie du tableau) +[ok] Choisir un film aléatoirement dans la liste des films +[ok] Tout dérouler ou enrouler les films actuellement affichées * Ajouter des options au programme : - Mettre à jour un film en donnant son ID en paramètre - Donner en paramètre un dossier pour les images - Re synchroniser toutes les informations des films (à partir du lien mémorisé dans les films) * Pomper les images (affichettes) +* Parser les langues et sous-titres et les ajouter dans l'xml * Parser les langues et sous-titres et les ajouter dans l'xml \ No newline at end of file diff --git a/img/ouvrir.png b/img/ouvrir.png new file mode 100644 index 0000000000000000000000000000000000000000..f2ccb31fa048183bc11ce50a6d97ebe0c7ec4618 GIT binary patch literal 350 zcmV-k0iphhP)5d$00L^LWZd)rlcf*l_i*2f%9jbI@ey7+oU$Qky%}o5$ zXG<%bF)2q$6m{;<5lBLAhuMYtR05Z~Nqdq)M=>Px#07*qoM6N<$g4yVht^fc4 literal 0 HcmV?d00001 diff --git a/img/random.png b/img/random.png new file mode 100644 index 0000000000000000000000000000000000000000..bfdc8d27022016515a25318ecc1054eb0192fdf4 GIT binary patch literal 252 zcmeAS@N?(olHy`uVBq!ia0vp^!ayv_!3HFka9+I#q*&4&eH|GX)}JtE?Rp91OP07s zlmzFem6RtIr7}3ChpAQ45_%4^ymM7d*-bS!px!v zADH$C_RH`Kcspb|J>VADpWt%&4D(cm#Lg>6H=ge-z53?H(Mc!T8cms5c^ltY8yE(~ z9AgPx!*s}@S*Ve19{VQV4igsTGaIVdpE#{Js8T5`c0pkclSzVIz#*|$p>jpa4UY^K xN9F|0Irm~3v)f)z_I#s&tFy1HVP;_BVF+z@S;& 1) + { + var random + do { + random = Math.floor(Math.random() * nbFilmAffiche); + } while (dernierRandom == random) + dernierRandom = random + + var j = 0 + for(var i = 0; i < lignes.length; i += 2) + { + if (lignes[i].style.display == "none") continue; + if (random == j) + lignes[i+1].firstChild.firstChild.style.display = "table" + else + { + lignes[i].style.display = "none" + lignes[i+1].style.display = "none" + } + j += 1 + } + } + // mise à jour de l'affichage du nombre de film total/affiché document.getElementById("nbFilms").textContent = nbFilmAffiche + " / " + nbFilm + " film" + (nbFilm > 1 ? "s" : "") @@ -162,7 +191,35 @@ function viderRecherche() document.getElementById("checkRechercheActeurs").checked = true document.getElementById("checkRecherchePays").checked = true document.getElementById("recherche").value = "" - doRecherche() + doRecherche(true) +} + +/** + * Ouvre toutes les fiches affichées ou les fermes si elles sont ouvertes. + */ +function toutOuvrir() +{ + var lignes = document.getElementById("liste").childNodes + var ouvrir = true + for(var i = 0; i < lignes.length; i += 2) + { + var tableDetails = lignes[i+1].firstChild.firstChild.childNodes + + if (lignes[i+1].style.display = "table-row") + { + if (i == 0 && lignes[i+1].firstChild.firstChild.style.display == "table") + ouvrir = false + lignes[i+1].firstChild.firstChild.style.display = ouvrir ? "table" : "none" + } + } +} + +/** + * Choisi un film au hasard. + */ +function tirerUnFilmAuHasard() +{ + doRecherche(true, true); } /** diff --git a/src/basemodule.rb b/src/basemodule.rb index 38849f2..e67a729 100644 --- a/src/basemodule.rb +++ b/src/basemodule.rb @@ -18,6 +18,5 @@ class Basemodule # appelé lorsque le module n'est plus utile (permet de libérer des ressource par exemple). def finish - end end \ No newline at end of file diff --git a/src/modules/allocine.rb b/src/modules/allocine.rb index d5da08c..893f7ed 100644 --- a/src/modules/allocine.rb +++ b/src/modules/allocine.rb @@ -6,13 +6,17 @@ require 'iconv' require "basemodule.rb" -# un mixin pour allocine +# un module d'importation pour le site "www.allocine.fr" class Allocine < Basemodule - + + def createConnexion + @connexion = Net::HTTP::new('www.allocine.fr') if @connexion.nil? + end + # Voir le parent. def rechercherFilm(titre) - @connexion = Net::HTTP::new('www.allocine.fr') if @connexion.nil? - + createConnexion + donneesHtml = nil begin begin @@ -49,7 +53,7 @@ class Allocine < Basemodule # Voir le parent. def load(id, film) - @connexion = Net::HTTP::new('www.allocine.fr') if @connexion.nil? + createConnexion r, ficheHtml = @connexion.get("/film/fichefilm_gen_cfilm=#{id}.html") diff --git a/xsl/yopyop.xsl b/xsl/yopyop.xsl index 4ca43e9..22225da 100644 --- a/xsl/yopyop.xsl +++ b/xsl/yopyop.xsl @@ -18,7 +18,9 @@

- + + +

-- 2.45.2