You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
785 B
25 lines
785 B
<html>
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="/player/asciinema-player.css" />
|
|
</head>
|
|
<body onLoad="GetVideo()">
|
|
|
|
<asciinema-player id="p1" title="Linux" author="swarmlab.io" author-url="http://www.swarmlab.io" font-size="small" speed="2" theme="monokai" autoplay></asciinema-player>
|
|
<script src="/player/asciinema-player.js"></script>
|
|
<script>
|
|
function GetVideo() {
|
|
var url_string = window.location.href
|
|
var url = new URL(url_string);
|
|
var item = url.searchParams.get("item");
|
|
var llo = url.searchParams.get("llo");
|
|
var src = '/player/'+llo+'/'+item+'.cast'
|
|
|
|
var video = document.getElementById('p1');
|
|
video.setAttribute('src', src);
|
|
//document.querySelector("#p1").setAttribute("src", src);
|
|
}
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|