|
@ -2,22 +2,23 @@ |
|
|
<head> |
|
|
<head> |
|
|
<link rel="stylesheet" type="text/css" href="/player/asciinema-player.css" /> |
|
|
<link rel="stylesheet" type="text/css" href="/player/asciinema-player.css" /> |
|
|
</head> |
|
|
</head> |
|
|
<body> |
|
|
<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" src="/player/demo.cast"></asciinema-player> |
|
|
<asciinema-player id="p1" title="Linux" author="swarmlab.io" author-url="http://www.swarmlab.io" font-size="small" speed="2" theme="monokai" src="/player/demo.cast"></asciinema-player> |
|
|
<script src="/player/asciinema-player.js"></script> |
|
|
<script src="/player/asciinema-player.js"></script> |
|
|
<script> |
|
|
<script> |
|
|
var url_string = window.location.href |
|
|
function GetVideo() { |
|
|
var url = new URL(url_string); |
|
|
var url_string = window.location.href |
|
|
var item = url.searchParams.get("item"); |
|
|
var url = new URL(url_string); |
|
|
var llo = url.searchParams.get("llo"); |
|
|
var item = url.searchParams.get("item"); |
|
|
var src = '/player/'+llo+'/'+item+'.cast' |
|
|
var llo = url.searchParams.get("llo"); |
|
|
|
|
|
var src = '/player/'+llo+'/'+item+'.cast' |
|
|
var video = document.getElementById('p1'); |
|
|
|
|
|
var source = document.createElement('source'); |
|
|
|
|
|
|
|
|
|
|
|
source.setAttribute('src', src); |
|
|
|
|
|
|
|
|
|
|
|
video.appendChild(source); |
|
|
var video = document.getElementById('p1'); |
|
|
|
|
|
var source = document.createElement('source'); |
|
|
|
|
|
source.setAttribute('src', src); |
|
|
|
|
|
video.appendChild(source); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|