/\b([0])\b/g
0
в начале строки. $('#check').on('change', function() {
if ($(this).is(':checked')) {
$('#block1').hide();
$('#block2').show();
} else {
$('#block1').show();
$('#block2').hide();
}
}).trigger('change');
$('.zoomer').mousemove(function(e){
var x = e.pageX;
var y = e.pageY;
console.log(x + '/' + y);
});
player.on('timeupdate', function() {
var currentTime = Math.round(this.currentTime());
var duration = Math.round(this.duration());
var percent = Math.round(currentTime / duration * 100);
var next_percent = $(this).data('next-percent');
if (!next_percent) {
next_percent = 0;
}
if (percent >= next_percent) {
postVideoStatus(next_percent);
next_percent += 25;
$(this).data('next-percent', next_percent);
}
});
window.setInterval(function() {
console.log('Hello World');
}, 1000);