// Google Chrome will close without letting the event go through.
// This causes the page close to be delayed until we've hit the
// server.
while(close_event_logged!="done"){
}
}
window.onbeforeunload=log_close;
functiongetCookie(name){
functiongetCookie(name){
varcookieValue=null;
varcookieValue=null;
if(document.cookie&&document.cookie!=''){
if(document.cookie&&document.cookie!=''){
...
@@ -199,15 +213,6 @@ function videoDestroy() {
...
@@ -199,15 +213,6 @@ function videoDestroy() {
}
}
functionlog_event(e,d){
functionlog_event(e,d){
//$("#eventlog").append("<br>");
//$("#eventlog").append(JSON.stringify(e));
// TODO: Decide if we want seperate tracking server.
// If so, we need to resolve:
// * AJAX from different domain (XMLHttpRequest cannot load http://localhost:7000/userlog. Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin.)