forked from katelyn98/JamDrawHacakthon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
json.html
95 lines (85 loc) · 1.96 KB
/
json.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<title>Page Title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* Style the body */
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
background: #3498db;
}
.button {
font-family: Arial, Helvetica, sans-serif;
background-color: #9b59b6;
border: none;
color: white;
font-size: 18px;
font-weight: bold;
padding: 30px 60px;
text-align: center;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
border-radius: 16px;
margin: 20px;
}
/* Header/logo Title */
.header {
padding: 45px;
text-align: center;
background: #1abc9c;
color: white;
}
/* Increase the font size of the heading */
.header h1 {
font-size: 40px;
}
#test {
float: left;
margin-left: 60px;
}
#stopTest {
float: right;
margin-right: 60px;
}
</style>
</head>
<body>
<div class="header">
<h1>Welcome to <b>JamDraw</b>!!!</h1>
<h3>Search for music by drawing</h3>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type=text/javascript>
$(function() {
$('a#test').bind('click', function() {
$.getJSON('/background_process_test',
function(data) {
//do nothing
});
return false;
});
});
</script>
<script type=text/javascript>
$(function() {
$('a#stopTest').bind('click', function() {
$.getJSON('/my_test',
function(data) {
//do nothing
});
return false;
});
});
</script>
<div class='container'>
<form>
<a href=# id=test><button class='button'>Start Drawin', dude</button></a>
<a href=# id=stopTest><button class='button'>Start Jammin', brah</button></a>
</form>
</div>
</body>
</html>