-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
37 lines (34 loc) · 938 Bytes
/
index.js
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
$(function () {
function display(bool) {
if (bool) {
$("#container").show();
} else {
$("#container").hide();
}
}
display(false)
window.addEventListener('message', function(event) {
var item = event.data;
if (item.type === "ui") {
if (item.status == true) {
display(true)
} else {
display(false)
}
}
})
document.onkeyup = function (data) {
if (data.which == 27) {
$.post('http://gvrp_gusenberg/exit', JSON.stringify({}));
return
}
};
$("#close").click(function () {
$.post('http://gvrp_gusenberg/exit', JSON.stringify({}));
return
})
$("#mieten").click(function(){
$.post('http://gvrp_gusenberg/kaufen', JSON.stringify({}));
return
})
})