$.ajax({
type: 'POST',
data: $data,
url: '/order/mail.php',
dataType: 'json',
success: function() {
console.log('success');
}
});
// init
function() {
var e = this;
e._value = 0;
e._total = 1;
e.active = false;
e.setVideoTime = e.setVideoTime.bind( e );
...
}
// setVideoTime
function() {
this._requestAnimationFrame_id = requestAnimationFrame( this.setVideoTime );
if (this.active) {
this.player.currentTime = this.player.duration * this._value / this._total;
} else {
cancelAnimationFrame( this._requestAnimationFrame_id );
}
}
// dnd:onMouseDown
function() {
e.active = true;
e._requestAnimationFrame_id = requestAnimationFrame( e.setVideoTime );
...
}
// dnd:onMouseMove
function(r) {
...
e._value = t;
e._total = a;
...
},
// dnd:onMouseUp
document.onmouseup = function() {
e.active = false;
...
}