-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmini.html
executable file
·33 lines (33 loc) · 1.03 KB
/
mini.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>enchant</title>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="mini.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#add-button').click(function(event) {
jQuery.ajax({
url: 'http://localhost:8888/push', type: 'GET',
data: {
x: '1',
y: '3',
// data: 'x'
},
dataType: 'json',
beforeSend: function(xhr, settings) {
},
success: function(data, status, xhr) {
}
});
});
});
</script>
</head>
<body>
<div id="add-to-cart">
<p><input type="submit" value="Push Button" id="add-button" /></p>
</div>
</body>
</html>