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

View File

@ -2,7 +2,7 @@ var currentTime = 60*(24*1+10.4);
var clients = []; var clients = [];
var context; var context;
var width = 980; var width = 980;
var height = 500; var height = 490;
var gridSize = 3; var gridSize = 3;
var nearFieldRadius = 30; var nearFieldRadius = 30;
@ -38,28 +38,6 @@ function init() {
random[index] = Math.random(); 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; var index = -1;
for (var time = -60; time <= (4*24+1)*60; time++) { for (var time = -60; time <= (4*24+1)*60; time++) {
while (data.times[index+1] <= time) index++; while (data.times[index+1] <= time) index++;