-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
56 lines (48 loc) · 1.51 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE HTML>
<html lang="en-EN">
<head>
<meta charset="UTF-8">
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/creature.js"></script>
<script src="js/jquery.svg.min.js"></script>
<script src="js/jquery.svgdom.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" media="all">
<script type="text/javascript">
var animal_size = 80;
var plant_size = 160;
$(document).ready(function(){
$('#canvas').svg();
$("#mark_oldest_hunter").hide();
$("#mark_oldest_prey").hide();
$("#start").click(function(){
Creature.start();
$(this).hide();
$("#mark_oldest_hunter").show();
$("#mark_oldest_prey").show();
});
$("#mark_oldest_hunter").click(function(){
Creature.mark_oldest("hunter");
});
$("#mark_oldest_prey").click(function(){
Creature.mark_oldest("prey");
});
});
$(window).resize(function () {
Creature.window_w = $(window).width();
Creature.window_h = $(window).height();
});
</script>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="canvas">
</svg>
<div id="start">Click to start</div>
<div id="mark_oldest_hunter">Mark oldest hunter</div>
<div id="mark_oldest_prey">Mark oldest prey</div>
<div id="info_box">
<div id="oldest"></div>
</div>
<img src="http://hitwebcounter.com/counter/counter.php?page=6048369&style=0007&nbdigits=6&type=ip&initCount=0" title="good hits" Alt="good hits" border="0" id="web_counter">
</body>
</html>