|
@@ -4,38 +4,15 @@
|
4
|
4
|
<title>fqsdhgfqjlsghoesf</title>
|
5
|
5
|
<meta charset="utf-8" />
|
6
|
6
|
<script src="jquery-2.1.4.min.js"></script>
|
|
7
|
+ <script src="js/game.js"></script>
|
7
|
8
|
</head>
|
8
|
9
|
<body>
|
9
|
|
- <div id="yolo"></div>
|
10
|
|
- <input type="submit" id="refresh" value="Refresh" />
|
|
10
|
+ <div id="game"></div>
|
|
11
|
+ <input type="submit" id="play" value="Play" />
|
11
|
12
|
<script type="text/javascript">
|
12
|
|
- $("#refresh").click(function() {
|
13
|
|
- $.ajax({
|
14
|
|
- url: "./api/",
|
15
|
|
- dataType: 'json',
|
16
|
|
- success: function(data) {
|
17
|
|
- $("#yolo").html(JSON.stringify(data));
|
18
|
|
- }
|
19
|
|
- });
|
|
13
|
+ $("#play").click(function() {
|
|
14
|
+ play();
|
20
|
15
|
});
|
21
|
|
-/* $(document).ready(function() {
|
22
|
|
- $.ajax({
|
23
|
|
- url: "./api/",
|
24
|
|
- dataType: 'json',
|
25
|
|
- success: function(data) {
|
26
|
|
- //cat
|
27
|
|
- var array = [];
|
28
|
|
- array[data.cat1.nom_cat] = [];
|
29
|
|
- data.cat1.themes.forEach(function(row) {
|
30
|
|
- array[data.cat1.nom_cat].push(row);
|
31
|
|
- });
|
32
|
|
- array.forEach(function(row) {
|
33
|
|
- $("#yolo").append("<strong>"+row);
|
34
|
|
- });
|
35
|
|
- $("#yolo").html(JSON.stringify(data));
|
36
|
|
- }
|
37
|
|
- });
|
38
|
|
- });*/
|
39
|
16
|
</script>
|
40
|
17
|
</body>
|
41
|
18
|
</html>
|