changing map size

This commit is contained in:
Micho 2013-05-21 10:48:41 +02:00
parent f8d2352704
commit adca961f40
2 changed files with 6 additions and 26 deletions

View File

@ -45,7 +45,7 @@
height: 50px;
}
#sliderWrapper {
width: 980px;
width: 920px;
height: 50px;
overflow: scroll;
position: absolute;
@ -95,8 +95,10 @@
<body>
<div id="header"><img src="top.png"></div>
<div id="content">
<img id="map" src="map.jpg" width="980" height="500">
<canvas id="canvas" width="980" height="500"></canvas>
<div id="container">
<img id="map" src="map.png" width="980" height="490">
<canvas id="canvas" width="980" height="490"></canvas>
</div>
<div id="timer"></div>
<div id="slider">
<div id="sliderWrapper">

View File

@ -2,7 +2,7 @@ var currentTime = 60*(24*1+10.4);
var clients = [];
var context;
var width = 980;
var height = 500;
var height = 490;
var gridSize = 3;
var nearFieldRadius = 30;
@ -37,28 +37,6 @@ function init() {
clients[index] = {point:undefined, x:0, y:0, r:0, x0:0, y0:0, r0:0, index:index, lastEvent:0};
random[index] = Math.random();
});
/*
var menu = $('#menu');
for (var i = 2; i < 16; i++) {
(function () {
var time = i*6*60;
var d = Math.floor(i/4);
var h = (i % 4)*6;
var node = $('<span class="button">T'+d+' '+h+':00</span>');
node.click(function () {
currentTime = time;
jump = true;
start();
})
menu.append(node);
})();
}
var node = $('<span class="button">Stop</span>');
node.click(stop);
menu.append(node);
*/
var index = -1;
for (var time = -60; time <= (4*24+1)*60; time++) {