3d-interface/static/js/Logger.js

21 lines
420 B
JavaScript
Raw Normal View History

2015-05-18 15:36:24 +02:00
var BD = {};
BD.Event = {};
BD.Event.ArrowClicked = function() {};
BD.Event.ArrowClicked.prototype.send = function() {
2015-05-18 15:38:36 +02:00
var url = "/post";
2015-05-18 15:36:24 +02:00
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));
};