Tinylayout if browser.width is smaller than 1000 :)
This commit is contained in:
parent
5b366995d1
commit
105422035f
2 changed files with 18 additions and 2 deletions
|
@ -88,8 +88,25 @@
|
||||||
<script type="text/javascript" src="lib/vendors/jquery-1.9.1.js"></script>
|
<script type="text/javascript" src="lib/vendors/jquery-1.9.1.js"></script>
|
||||||
<script type="text/javascript" src="lib/impact/impact.js"></script>
|
<script type="text/javascript" src="lib/impact/impact.js"></script>
|
||||||
<script type="text/javascript" src="lib/game/main.js"></script>
|
<script type="text/javascript" src="lib/game/main.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function jqUpdateSize()
|
||||||
|
{
|
||||||
|
var width = $(window).width();
|
||||||
|
var height = $(window).height();
|
||||||
|
|
||||||
|
if(width < 1000) {
|
||||||
|
$('body').addClass('tinyscreen');
|
||||||
|
} else {
|
||||||
|
$('body').removeClass('tinyscreen');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$(document).ready(jqUpdateSize);
|
||||||
|
$(window).resize(jqUpdateSize);
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body class="tinyscreen">
|
<body>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<img src="media/layout-gamelogo.png">
|
<img src="media/layout-gamelogo.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
1
doc/TODO
1
doc/TODO
|
@ -15,7 +15,6 @@ Initial release
|
||||||
## Polish
|
## Polish
|
||||||
* Increase points with game length
|
* Increase points with game length
|
||||||
* Randomness for Y position if ball goes straight for too long
|
* Randomness for Y position if ball goes straight for too long
|
||||||
* Change layout on smaller screen sizes
|
|
||||||
|
|
||||||
## Nice to have
|
## Nice to have
|
||||||
* Improve the AI intelligence (more randomness)
|
* Improve the AI intelligence (more randomness)
|
||||||
|
|
Loading…
Reference in a new issue