Hi, Today I imported z2 skin in on drupal-dev.pokersource.info: http://drupal-dev.pokersource.info/planc/skin/table.html
You can give it a try there: http://drupal-dev.pokersource.info/drupal6/ By following this HOWTO: ======================================= HOWTO for users (first time) --------------------------------------- Load http://hostname/drupal6/ Click "Create a new account" In "Account Information" : Enter "username" Enter "email" Enter "password" Confirm "password" In "Personal Information" : Enter "First name" Enter "Last name" Enter "Gender" Enter "Date of Birth" Enter "City" Enter "Country" Enter "Interested in" Click "Create new account" button Click "My account" Click "Edit" Click "Upload picture Browse..." (Only PNG file are supported) Click "Save" button Click "Application gallery" Click "Add" for jpoker application ======================================= HOWTO for users (other times) --------------------------------------- Load http://hostname/drupal6/ Login (if not already logged in) Click "My account" Please note that: - it does *not* currently run latest jpoker & poker-network 2.0 code. - A new Opensocial gadget for jpoker featuring the z2 skin has been created here: http://drupal-dev.pokersource.info/planc/jpoker-opensocial.xml - poker.js has been patched to remove z2 and jpoker tip specifics, see attached patch. I also reproduced and fixed a bug about ShindingIntegrator reporting bad gadget height: http://drupal.org/node/374001#comment-2226610 -- Johan Euphrosine <[email protected]> Development and services around Free Software http://aminche.com/
diff -r 604babc4f73e -r ba7b4c9e0f60 js/poker.js
--- a/js/poker.js Thu Oct 22 13:29:30 2009 +0000
+++ b/js/poker.js Wed Nov 04 17:23:18 2009 +0100
@@ -19,29 +19,8 @@
(function($) {
var jpoker = $.jpoker;
- $.fn.triggerKeypress = function(keyCode) {
- return this.trigger("keypress", [$.event.fix({event:"keypress", keyCode: keyCode, target: this[0]})]);
- };
-
- function tabclick(openit, closeit)
- {
- $(openit).css('display', 'block');
- $(openit).addClass('on');
- $(closeit).css('display', 'none');
- $(closeit).removeClass('on');
- }
-
var poker = {
main: function() {
- var url = poker.url;
-
- //jpoker.verbose = 6;
-
- jpoker.connection.defaults.longPollFrequency = 5000;
-
- jpoker.plugins.signup.template = '<div class=\'jpoker_signup_content\'><dl><dt><label for=\'jpoker_signup_login{id}\'>{login_label}</label></dt><dd><input name=\'login\' type=\'text\' id=\'jpoker_signup_login{id}\'/></dd><dt><label for=\'jpoker_signup_password{id}\'>{password_label}</label></dt><dd><input name=\'password\' type=\'password\' id=\'jpoker_signup_password{id}\'/></dd><dt><label for=\'jpoker_signup_password_confirmation{id}\'>{password_confirmation_label}</label></dt></dt><dd><input name=\'password_confirmation\' type=\'password\' id=\'jpoker_signup_password_confirmation{id}\'/></dd><dt><label for=\'jpoker_signup_email{id}\'>{email_label}</label></dt><dd><input name=\'email\' type=\'text\' id=\'jpoker_signup_email{id}\'/></dd></dl><input type=\'submit\' value=\'{submit_label}\' class=\'jpoker_signup_submit\'/></div>';
- jpoker.plugins.login.callback.display_done = function(element) {
- };
jpoker.plugins.tableList.templates = {
header :
@@ -85,95 +64,22 @@
jpoker.plugins.player.stats.templates.level = '<div class=\'jpoker_player_level jpoker_player_level_{level}\'>{level}</div>';
-// $('#lobby_tables').click(function() {
-// tabclick('#lobby_tables', '#lobby_regular, #lobby_sng');
-// });
-
-// $('#lobby_regular').click(function() {
-// tabclick('#lobby_regular', '#lobby_tables, #lobby_sng');
-// });
-
-// $('#lobby_sng').click(function() {
-// tabclick('#lobby_sng', '#lobby_tables, #lobby_regular');
-// });
-
jpoker.plugins.table.templates.powered_by = '';
jpoker.chips.SHORT = jpoker.chips.LONG;
return this;
- },
-
- spawnTable: function(server, packet) {
- server.queueRunning(function() {
- $('#table').jpoker('table', poker.url, packet.game_id, packet.name);
- });
- },
-
- login: function() {
- var templates_one = {
- login: '<p id="LoginCheck"><input type="checkbox" /></p>' +
- '<p id="LoginRemember">Remember me</p>' +
- '<p id="LoginForgot"><a href="#">Forgot your Password?</a></p>' +
- '<div class="Clear"></div>' +
- '<p id="LoginUser"><input type="text" class="InputSignup jpoker_login_name" style="width:111px;" /></p>' +
- '<p id="LoginPass"><input type="password" class="InputSignup jpoker_login_password" style="width:111px;" /></p>' +
- '<p id="LoginButton"><input type="image" class="jpoker_login_submit" src="img/button_login.gif" /></p>',
- logout: '<p id="Buddies"><span>You have 25 Pokerbuddies (<strong><a href="#" title="2 Pokerbuddies are online">2 Online</a></strong>)</span></p>' +
- '<p id="MoreBuddies"><a href="#" title="Invite more"><span class="hidden">» Invite more</span></a></p>' +
- '<p id="Chips"><span>{logname} <strong><a href="#" title="$ 1.982.987 Chips">$ 1.982.987</a></strong> Chips</span></p>' +
- '<p id="MoreChips"><a href="#" title="Get more"><span class="hidden">» Get more</span></a></p>'
- };
- $('#UserPanel').jpoker('login', $.poker.url, { templates: templates_one });
- var templates_two = {
- login: '',
- logout: '<strong><a href="#" title="Logout" class="links" style="width: 40px; padding: 0px; text-decoration: none;">Logout</a></strong>'
- };
- $('#UserLogout').jpoker('login', $.poker.url, { templates: templates_two });
- var server = $.jpoker.url2server({ url: $.poker.url });
- server.registerHandler(0, function(server, id, packet) {
- if(packet.type == 'PacketSerial') {
- if($.poker.table_list_url) {
- window.location.href = $.poker.table_list_url;
- }
- return false;
- } else {
- return true;
- }
- }, null, 'redirect');
}
};
$.poker = poker;
- poker.url = '/POKER_REST';
-
- poker.quit_url = '/start_pworld_hg.html';
-
- poker.table_list_url = 'start_pworld_hg.html';
-
$.fn.poker = function() {
return poker.main();
};
- jpoker.doRejoin = false;
-
- jpoker.server.defaults.spawnTable = function(server, packet) {
- poker.spawnTable(server, packet);
- };
-
var plugins = $.jpoker.plugins;
- //
- // table
- //
-
- plugins.table.callback.quit = function(table, packet) {
- if($.poker.quit_url) {
- setTimeout(function() { document.location.href = $.poker.quit_url; }, 100);
- }
- };
-
plugins.table.callback.display_done = function(element) {
$('.jpoker_chat_input input', element).focus(function() {
if(this.value == 'chat here') {
@@ -184,22 +90,6 @@
$('.jpoker_chat_input').triggerKeypress("13");
});
};
-
-// plugins.table.callback.chat_changed = function(element) {
-// $('.jpoker_chat_history_player, .jpoker_chat_history_dealer').jScrollPane({
-// scrollbarWidth: 15,
-// showArrows: true
-// });
-// var c = $('.jpoker_chat_history_player');
-// c[0].scrollTo(c.data('jScrollPaneMaxScroll'));
-// c = $('.jpoker_chat_history_dealer');
-// c[0].scrollTo(c.data('jScrollPaneMaxScroll'));
-// };
-
- //
- // sound control
- //
- jpoker.plugins.table.templates.sound = '<div>{sound}</div> <div class=\'jpoker_sound_logo\'></div>';
//
// message dialog
@@ -236,9 +126,4 @@
plugins.playerSelf.rebuy_options.containerWidth = '330px';
plugins.playerSelf.rebuy_options.containerHeight = '186px';
- plugins.playerSelf.callback.hand_strength.display_done = function(e) {
- var hand_value = $('.jpoker_hand_strength_value', e).text();
- $('.jpoker_hand_strength_value', e).text(hand_value.split(':')[0]);
- };
-
})(jQuery);
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
