fixed canvas size on mobile; minor fixes
This commit is contained in:
parent
e614b7da6a
commit
abb077b88f
|
@ -20,7 +20,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="infoTouchDiv" class="center">
|
<div id="infoTouchDiv" class="center">
|
||||||
Ações:
|
Acções:
|
||||||
<ul id="touch-elems">
|
<ul id="touch-elems">
|
||||||
<li id="67">anal</li>
|
<li id="67">anal</li>
|
||||||
<li id="70">vaginal</li>
|
<li id="70">vaginal</li>
|
||||||
|
|
13
paradise.css
13
paradise.css
|
@ -29,3 +29,16 @@ div.center {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (orientation:portrait) {
|
||||||
|
div.main {
|
||||||
|
zoom: 0.7;
|
||||||
|
-moz-transform: scale(0.7);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (orientation:landscape) {
|
||||||
|
div.main {
|
||||||
|
zoom: 1;
|
||||||
|
-moz-transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ function prepareCanvas(canvasDiv, canvasWidth, canvasHeight)
|
||||||
* @author: cc
|
* @author: cc
|
||||||
* Do device validation, fix layout and assign their events
|
* Do device validation, fix layout and assign their events
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//Check device
|
//Check device
|
||||||
if( navigator.userAgent.match(/Android/i) ||
|
if( navigator.userAgent.match(/Android/i) ||
|
||||||
navigator.userAgent.match(/iPhone|iPad|iPod/i) ||
|
navigator.userAgent.match(/iPhone|iPad|iPod/i) ||
|
||||||
|
|
Loading…
Reference in New Issue