Added forgotten file
This commit is contained in:
parent
d9236be6e3
commit
31895cf12c
20
static/js/Logger.js
Normal file
20
static/js/Logger.js
Normal file
@ -0,0 +1,20 @@
|
||||
var BD = {};
|
||||
|
||||
BD.Event = {};
|
||||
|
||||
BD.Event.ArrowClicked = function() {};
|
||||
BD.Event.ArrowClicked.prototype.send = function() {
|
||||
var url = "http://localhost:4000/post";
|
||||
|
||||
var data = {};
|
||||
|
||||
data.user_id = this.user_id;
|
||||
data.arrow_id = this.arrow_id;
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", url, true);
|
||||
xhr.setRequestHeader("Content-type", "application/json;charset=UTF-8");
|
||||
xhr.send(JSON.stringify(data));
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user