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

View File

@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<meta charset="UTF-8">
<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-startup-image" href="starts/image/meta/icon.png">
<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}
div{display: inline-block;position: absolute;transition: all 0.5s;}
table{table-layout: fixed;}

View File

@ -41,26 +41,5 @@
@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;}
}