lasertube-flask/templates/disc.html
2012-04-11 08:44:05 -04:00

44 lines
1.6 KiB
HTML

{% extends "layout.html" %}
{% block head %}
<script src="/swf/js/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
// function getCookie(name) {
// var cookieValue = null;
// if (document.cookie && document.cookie != '') {
// var cookies = document.cookie.split(';');
// for (var i = 0; i < cookies.length; i++) {
// var cookie = cookies[i].replace(/^\s+|\s+$/, ''); // trim
// // Does this cookie string begin with the name we want?
// if (cookie.substring(0, name.length + 1) == (name + '=')) {
// cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
// break;
// }
// }
// }
// return cookieValue;
// }
var flashvars = {{ flashvars|tojson|safe }};
var params = {
menu: "false",
scale: "noScale",
allowFullscreen: "true",
allowScriptAccess: "always",
bgcolor: "#FFFFFF"
};
var attributes = {
id:"LaserTube"
};
swfobject.embedSWF("/swf/LaserTube.swf", "altContent", "800", "600", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
{% endblock %}
{% block body %}
<h1>{{ disc.title }}</h1>
<div id="altContent">
<h1>Oh, dear</h1>
<p>You need Flash to play with LaserTube.</p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img
src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" /></a></p>
</div>
{% endblock %}