This commit is contained in:
libccy 2015-11-01 17:56:48 +08:00
parent b04371072a
commit bef9fa986a
4 changed files with 21 additions and 42 deletions

View File

@ -8909,6 +8909,7 @@
if(lib.config.layout=='mobile'||lib.config.layout=='phone'){ if(lib.config.layout=='mobile'||lib.config.layout=='phone'){
ui.arena.classList.add('mobile'); ui.arena.classList.add('mobile');
} }
ui.updatePhone();
ui.backgroundMusic=document.createElement('audio'); ui.backgroundMusic=document.createElement('audio');
ui.backgroundMusic.volume=lib.config.volumn_background/8; ui.backgroundMusic.volume=lib.config.volumn_background/8;
game.playBackgroundMusic(); game.playBackgroundMusic();
@ -12912,24 +12913,23 @@
ui.dialog.classList.add('scroll2'); ui.dialog.classList.add('scroll2');
} }
} }
}
// if(lib.config.touchscreen||lib.config.layout=='newlayout'){ // ui.updatePhone();
// ui.dialog.classList.add('scroll1'); },
// ui.dialog.classList.add('scroll2'); updatePhone:function(){
// } if(lib.config.layout=='phone'&&lib.config.touchscreen){
// if(ui.dialog.contentContainer.scrollTop>0){ if(document.body.offsetWidth<document.body.offsetHeight){
// ui.dialog.classList.add('scroll1'); var windowWidth=document.body.offsetHeight;
// } var windowHeight=document.body.offsetWidth;
// else{ ui.window.style.height=windowHeight+'px';
// ui.dialog.classList.remove('scroll1'); ui.window.style.width=windowWidth+'px';
// } ui.window.style.transform='rotate(90deg)';
// if(ui.dialog.contentContainer.scrollTop+ui.dialog.contentContainer.offsetHeight>= ui.window.style.transformOrigin='top left';
// ui.dialog.contentContainer.scrollHeight-1){ ui.window.style.left=windowHeight+'px';
// ui.dialog.classList.remove('scroll2'); }
// } else{
// else{ ui.window.removeAttribute('style');
// ui.dialog.classList.add('scroll2'); }
// }
} }
}, },
recycle:function(node,key){ recycle:function(node,key){

View File

@ -1,7 +1,7 @@
<!DOCTYPE HTML> <!DOCTYPE HTML>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="user-scalable=no, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, width=device-width, height=device-height" /> <meta name="viewport" content="user-scalable=no">
<link rel="apple-touch-icon" href="image/meta/icon.png"> <link rel="apple-touch-icon" href="image/meta/icon.png">
<link rel="apple-touch-startup-image" href="starts/image/meta/icon.png"> <link rel="apple-touch-startup-image" href="starts/image/meta/icon.png">
<title>无名杀</title> <title>无名杀</title>

View File

@ -1,5 +1,5 @@
/*--------标签--------*/ /*--------标签--------*/
html{font-size: 16px;cursor: default;overflow: hidden;-webkit-user-select:none;-webkit-font-smoothing: subpixel-antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);} html{width: 100%;height: 100%;font-size: 16px;cursor: default;overflow: hidden;-webkit-user-select:none;-webkit-font-smoothing: subpixel-antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);}
body{width: 100%;height: 100%;padding: 0; margin: 0;text-rendering:optimizeLegibility;font-family:'STHeiti','SimHei','Microsoft JhengHei','Microsoft YaHei','WenQuanYi Micro Hei',Helvetica,Arial,sans-serif} body{width: 100%;height: 100%;padding: 0; margin: 0;text-rendering:optimizeLegibility;font-family:'STHeiti','SimHei','Microsoft JhengHei','Microsoft YaHei','WenQuanYi Micro Hei',Helvetica,Arial,sans-serif}
div{display: inline-block;position: absolute;transition: all 0.5s;} div{display: inline-block;position: absolute;transition: all 0.5s;}
table{table-layout: fixed;} table{table-layout: fixed;}

View File

@ -41,26 +41,5 @@
@media screen and (orientation:portrait) { @media screen and (orientation:portrait) {
/*--------位置(8人)------*/
[data-number='8']>.player[data-position='1']{top: calc(100% - 350px)}
[data-number='8']>.player[data-position='2']{top:calc(50% - 175px)}
[data-number='8']>.player[data-position='3']{left:calc(100% - 150px);}
[data-number='8']>.player[data-position='4']{top:0;left:calc(50% - 75px);}
[data-number='8']>.player[data-position='5']{left:0;}
[data-number='8']>.player[data-position='6']{top:calc(50% - 175px)}
[data-number='8']>.player[data-position='7']{top:calc(100% - 350px)}
[data-number='8']>.card[data-position='1']{top:calc(200% / 3 - 122px);left:calc(100% - 127px);}
[data-number='8']>.card[data-position='2']{top:calc(100% / 3 - 132px);left:calc(100% - 127px);}
[data-number='8']>.card[data-position='3']{top:38px;left:calc(75% - 89.5px);}
[data-number='8']>.card[data-position='4']{top:38px;left:calc(50% - 52px);}
[data-number='8']>.card[data-position='5']{top:38px;left:calc(25% - 14.5px);}
[data-number='8']>.card[data-position='6']{top:calc(100% / 3 - 132px);left:23px;}
[data-number='8']>.card[data-position='7']{top:calc(200% / 3 - 122px);left:23px;}
[data-number='8']>.popup[data-position='1']{top:calc(200% / 3 - 150px);left:calc(100% - 186px);}
[data-number='8']>.popup[data-position='2']{top:calc(100% / 3 - 160px);left:calc(100% - 186px);}
[data-number='8']>.popup[data-position='3']{top:190px;left:calc(75% + 10.5px);}
[data-number='8']>.popup[data-position='4']{top:190px;left:calc(50% - 61px);}
[data-number='8']>.popup[data-position='5']{top:190px;left:calc(25% - 37.5px);}
[data-number='8']>.popup[data-position='6']{top:calc(100% / 3 - 160px);left:160px;}
[data-number='8']>.popup[data-position='7']{top:calc(200% / 3 - 150px);left:160px;}
} }