window_view.html 2.07 KB
<!DOCTYPE html>

<!-- 
Copyright 2016, 2017 UFPE - Universidade Federal de Pernambuco
 
Este arquivo é parte do programa Amadeus Sistema de Gestão de Aprendizagem, ou simplesmente Amadeus LMS
 
O Amadeus LMS é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença.
 
Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
 
Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENSE", junto com este programa, se não, escreva para a Fundação do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
-->

{% load static i18n %}

<html>
<head>
	<title>{{ title }} | {{ theme.title }}</title>

	<script type="text/javascript" src="{% static 'js/jquery-3.1.0.min.js' %}"></script>

	<meta http-equiv="Cache-Control" content="no-cache, no-store" />
	<link href="{{ theme.favicon_url }}" rel="shortcut icon" />

	<style type="text/css">
		body {
			padding: 0;
			margin: 0;
			overflow: hidden;
		}
	</style>
</head>
<body>
	<input type="hidden" id="log_finish_url" value="{% url 'youtube:finish' youtube.slug %}" />
	<input type="hidden" id="log_url" value="{% url 'youtube:watch' youtube.slug %}" />
	<input type="hidden" id="log_id" value="" />
  	<iframe src="{{ youtube.get_embed_url }}?enablejsapi=1" frameborder="0" allowfullscreen id="video"></iframe>

  	<script type="text/javascript" src="{% static 'js/ytvideo.js' %}"></script>
	<script type="text/javascript">
		$(function(){
  			$('#video').css({ width: $(window).innerWidth() + 'px', height: $(window).innerHeight() + 'px' });

  			// If you want to keep full screen on window resize
  			$(window).resize(function(){
    			$('#video').css({ width: $(window).innerWidth() + 'px', height: $(window).innerHeight() + 'px' });
  			});
		});
	</script>
</body>
</html>