-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 pokertec wrote: > Hello everyone, > > I am currently in the process of modifying the jpoker UI to suit my > needs. I am basically re-skinning the client with my own graphics > and repositioning some of the elements through css. > > But there is one functional aspect of the ui that i would like to > change involving how the hole cards are displayed. Currently when > a player is dealt their hole cards, the cards are face up. I would > like to change this default behavior so they are dealt face down > and then create a function that would show the hole cards with a > mouseOver and hide them again on a mouseOut event. > > I don't want to re-invent the wheel or break it. So It would be > nice If i could tweak as much of the existing script as possible to > give me the desired results. Could someone identify what functions > I need to work with? > > I would like to maintain the integrity of jpoker as much as > possible so if need to add some javascript code, should it be added > the the external file or should it be added to the index.html? > > I would appreciate if someone could lend some tips and advice. Hi,
It would be a nice optional feature to have in jpoker. I suggest you
patch the current jquery.jpoker.js file.
//
// cards (table plugin helper)
//
jpoker.plugins.cards = {
update: function(cards, prefix, id) {
jpoker.plugins.cards.update_value(cards, prefix, id);
jpoker.plugins.cards.update_visibility(cards, prefix, id);
},
update_value: function(cards, prefix, id) {
is roughly the area where you want to start. If you provide a test (
add tests in test-jpoker.js ) that shows how the new code works and
that all existing tests keep running, your patch will be integrated in
the next jpoker version.
Cheers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkqrxtEACgkQ8dLMyEl6F23zQwCeN+hC0+eWg39Zh4KZG2j0oSY7
AT4AnjA1Gs7GCtoLHye1RtyAP0qErk3w
=h2pg
-----END PGP SIGNATURE-----
<<attachment: loic.vcf>>
_______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
