');
nextMovieProgress('https://sofy.tv/viewer/film/script-srctriplecustcommenujsscriptstroke-of-midnight?st=0');
$('#main-video').find('#starrating_film').barrating({
theme: 'fontawesome-stars',
onSelect: function(rating, text, event) {
$.post(BASE_URL + 'scripts/ajax.php', {
rating : rating,
uid: uid,
fid: fid,
update_rating: 1
}, function(data) {
Toast.fire({
icon: 'success',
title: 'Thanks for Rating!',
});
});
}
});
$('#replayButton').click(function(e) {
e.preventDefault();
$('.mcellf-buttons-icons').remove();
$('.vjs-control-bar').css('display', 'flex');
clearInterval(play_interal);
clearInterval(progressInterval);
player.play();
});
}
myPlayer.on("pause", function() {
clearInterval(play_interal);
});
var _earlyEnd = false;
myPlayer.on('timeupdate', function(event) {
if(this.currentTime() > (this.duration() - 10) && !_earlyEnd && this.currentTime() > 10)
{
_earlyEnd = true;
clearInterval(play_interal);
playEnd(this);
}
if(this.currentTime() < (this.duration() - 10))
{
_earlyEnd = false;
}
});
});
function logDuration(view_id, _duration) {
if (view_id != 0) {
$.post(BASE_URL + 'scripts/ajax.php', {
add_view_duration: 1,
duration: _duration,
id: view_id
}, function(data) {
});
}
}
function nextMovieProgress(_url) {
var elem = $('.progress_bar');
var width = 0;
progressInterval = setInterval(frame, 10);
function frame() {
if (width >= 100) {
clearInterval(progressInterval);
window.location = _url;
} else {
width += 0.1;
elem.css('width', width + '%');
}
}
}
function togglePlayPause() {
var player = videojs('main-video');
if (player.paused()) {
player.play();
} else {
player.pause();
}
}
$(function() {
$(document).on('keypress', function() {
const keyCode = event.keyCode || event.which;
if (keyCode == 32) {
_ignoreDiv = document.getElementById('add_review');
_ignoreDiv2 = document.getElementById('main_search_div');
if (event.target.type === 'button') {
event.target.blur();
event.preventDefault();
}
if(!_ignoreDiv.contains(event.target) && !_ignoreDiv2.contains(event.target))
{
event.preventDefault();
togglePlayPause();
}
}
});
});
Tight Spot
directed by Kevin Haefelin
Switzerland, 2018 - Age Rating 11+
4 min - Comedy, Crime
Tight Spot
directed by Kevin Haefelin
Switzerland, 2018 - Age Rating 11+
4 min - Comedy, Crime
SYNOPSIS: Shining the shoes of a walk-in customer, a shiner discovers his client’s dark secret.