Permalink
Browse files

画面を中央に設定

  • Loading branch information...
ShikemokuMK committed Nov 6, 2015
1 parent 5f43dbd commit de59f7e0549a232c92aa54b682f1f4c4e7f7e2a2
Showing with 13 additions and 5 deletions.
  1. +2 −2 index.html
  2. +2 −2 tyrano/tyrano.base.js
  3. +9 −1 tyrano/tyrano.css
View
@@ -33,9 +33,9 @@
</head>
<body onselectstart="return false" onContextmenu="return false" ontouchmove="event.preventDefault()">
<body onselectstart="return false" onContextmenu="return false" ontouchmove="event.preventDefault()" >
<div id="tyrano_base" class="tyrano_base" style="position:absolute;top:0;overflow:hidden" unselectable="on" >
<div id="tyrano_base" class="tyrano_base" style="overflow:hidden" unselectable="on" >
</div>
View
@@ -21,15 +21,15 @@ tyrano.base ={
//画面サイズをぴったりさせます
fitBaseSize:function(width,height){
var view_width = $.getViewPort().width;
var view_width = $.getViewPort().width;
var view_height = $.getViewPort().height;
var width_f = view_width / width ;
var height_f = view_height / height;
var scale_f = 0;
$(".tyrano_base").css("transform-origin","0 0");
$(".tyrano_base").css("transform-origin","50 50");
var space_width = 0;
View
@@ -149,10 +149,10 @@ abbr,acronym{
body{
background-color:black;
-webkit-tap-highlight-color: transparent;
overflow:hidden;
}
/*次へのクリックを促すアイコン*/
.img_next{
@@ -168,6 +168,14 @@ body{
-moz-user-select: none;
-webkit-user-select: none;
-khtml-user-select: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
}
/* button

0 comments on commit de59f7e

Please sign in to comment.