var state = { 'page_id': 1, 'user_id': 5 };
var title = 'Hello World';
var url = 'hello-world.html';
history.pushState(state, title, url);
$(this).data("id")
$(document).on('click', '#ajax-book', function(){
var self = this;
$.ajax({
url: 'inc/ajax-book.php',
method: 'GET',
dataType : "json",
data: {
video_id:$(self).data("id")
},
success: function(data) {
console.log(data);
data: {video_id:$(self).data(id)}
}
});
});
var container = '';
sub.addEventListener('mouseover', function (e) {
for (i = 0; i < chat.length; i++) {
var text = (function(i){
var container;
chat[i].addEventListener('contextmenu', function (e) {
e.preventDefault();
container = this.innerText + ' ';
this.style.background = 'lime';
});
return container;
})(i);
container += text;
}
}