Commit d55b818b by Valera Rozuvan

Updated YouTube JS API file to the new one.

parent 92dc8859
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<!-- TODO: http://docs.jquery.com/Plugins/Validation --> <!-- TODO: http://docs.jquery.com/Plugins/Validation -->
<script type="text/javascript"> <script type="text/javascript">
document.write('\x3Cscript type="text/javascript" src="' + 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>
<script type="text/javascript"> <script type="text/javascript">
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</script> </script>
% if timer_expiration_duration: % if timer_expiration_duration:
<script type="text/javascript"> <script type="text/javascript">
var timer = { var timer = {
timer_inst : null, timer_inst : null,
end_time : null, end_time : null,
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
remaining_secs = remaining_secs % 3600; remaining_secs = remaining_secs % 3600;
var minutes = pretty_time_string(Math.floor(remaining_secs / 60)); var minutes = pretty_time_string(Math.floor(remaining_secs / 60));
remaining_secs = 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; var remainingTimeString = hours + ":" + minutes + ":" + seconds;
return remainingTimeString; return remainingTimeString;
}, },
...@@ -100,11 +100,11 @@ ...@@ -100,11 +100,11 @@
end : function(self) { end : function(self) {
clearInterval(self.timer_inst); clearInterval(self.timer_inst);
// redirect to specified URL: // redirect to specified URL:
window.location = "${time_expired_redirect_url}"; window.location = "${time_expired_redirect_url}";
} }
} }
// start timer right away: // start timer right away:
timer.start(); timer.start();
</script> </script>
% endif % 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