Commit d55b818b by Valera Rozuvan

Updated YouTube JS API file to the new one.

parent 92dc8859
......@@ -32,7 +32,7 @@
<!-- TODO: http://docs.jquery.com/Plugins/Validation -->
<script type="text/javascript">
document.write('\x3Cscript type="text/javascript" src="' +
document.location.protocol + '//www.youtube.com/player_api">\x3C/script>');
document.location.protocol + '//www.youtube.com/iframe_api">\x3C/script>');
</script>
<script type="text/javascript">
......@@ -61,7 +61,7 @@
</script>
% if timer_expiration_duration:
<script type="text/javascript">
<script type="text/javascript">
var timer = {
timer_inst : null,
end_time : null,
......@@ -79,8 +79,8 @@
remaining_secs = remaining_secs % 3600;
var minutes = pretty_time_string(Math.floor(remaining_secs / 60));
remaining_secs = remaining_secs % 60;
var seconds = pretty_time_string(Math.floor(remaining_secs));
var seconds = pretty_time_string(Math.floor(remaining_secs));
var remainingTimeString = hours + ":" + minutes + ":" + seconds;
return remainingTimeString;
},
......@@ -100,11 +100,11 @@
end : function(self) {
clearInterval(self.timer_inst);
// redirect to specified URL:
window.location = "${time_expired_redirect_url}";
window.location = "${time_expired_redirect_url}";
}
}
// start timer right away:
timer.start();
}
// start timer right away:
timer.start();
</script>
% endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment