From b9b2e8b71f7be6da53278d00e67d099d78f3378b Mon Sep 17 00:00:00 2001 From: libccy Date: Thu, 3 Aug 2017 09:36:36 +0800 Subject: [PATCH] 6 --- layout/default/layout.css | 12 ++++++++++++ mode/guozhan.js | 11 +---------- mode/identity.js | 22 ++-------------------- mode/versus.js | 22 ++-------------------- 4 files changed, 17 insertions(+), 50 deletions(-) diff --git a/layout/default/layout.css b/layout/default/layout.css index 7797e0201..e5e8ba116 100644 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -3150,6 +3150,18 @@ div:hover>.intro { border-radius: 4px; } +.tdnode{ + position:relative; + display:inline-block; + padding:5px; + padding-left:8px; + padding-right:8px; + font-size:18px; + margin:4px; + margin-left:6px; + margin-right:6px; +} + .shadowed, .menubutton.large.shadowed { background: rgba(0,0,0,0.2); diff --git a/mode/guozhan.js b/mode/guozhan.js index f5b57363e..5ce8a7c0b 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -2279,16 +2279,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ seats.style.width='100%'; seats.style.position='relative'; for(var i=1;i<=game.players.length;i++){ - var td=ui.create.div('.shadowed.reduce_radius.pointerdiv'); - td.style.position='relative'; - td.style.display='inline-block'; - td.style.padding='5px'; - td.style.paddingLeft='8px'; - td.style.paddingRight='8px'; - td.style.fontSize='18px'; - td.style.margin='4px'; - td.style.marginLeft='6px'; - td.style.marginRight='6px'; + var td=ui.create.div('.shadowed.reduce_radius.pointerdiv.tdnode'); td.innerHTML=''+get.cnNumber(i,true)+''; td.link=i-1; seats.appendChild(td); diff --git a/mode/identity.js b/mode/identity.js index 1c2497c47..9f86085d5 100644 --- a/mode/identity.js +++ b/mode/identity.js @@ -666,17 +666,8 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ } for(var i=0;i