mirror of
https://github.com/WilliamsNY/contain-element.git
synced 2024-11-23 06:14:09 -05:00
Add a cover to the video and fix a typo
This commit is contained in:
parent
3667fceb7d
commit
a03eb87dff
2 changed files with 2 additions and 2 deletions
BIN
TheenclosureoftheNextGenerationTransitSurvey.jpg
Normal file
BIN
TheenclosureoftheNextGenerationTransitSurvey.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
|
@ -75,7 +75,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
var video = '<video id="video" autoplay muted loop><source src="http://wny.s3.amazonaws.com/videos/TheenclosureoftheNextGenerationTransitSurvey.webm" type="video/webm"><source src="http://wny.s3.amazonaws.com/videos/TheenclosureoftheNextGenerationTransitSurvey.mp4" type="video/mp4"></video>';
|
var video = '<video id="video" autoplay muted loop poster="TheenclosureoftheNextGenerationTransitSurvey.jpg"><source src="http://wny.s3.amazonaws.com/videos/TheenclosureoftheNextGenerationTransitSurvey.webm" type="video/webm"><source src="http://wny.s3.amazonaws.com/videos/TheenclosureoftheNextGenerationTransitSurvey.mp4" type="video/mp4"></video>';
|
||||||
var demo = function(id, valign, halign) {
|
var demo = function(id, valign, halign) {
|
||||||
var v = document.getElementById('video');
|
var v = document.getElementById('video');
|
||||||
if (v !== null) v.parentNode.removeChild(v);
|
if (v !== null) v.parentNode.removeChild(v);
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
height: '720',
|
height: '720',
|
||||||
width: '1280',
|
width: '1280',
|
||||||
valign: valign,
|
valign: valign,
|
||||||
halign, halign
|
halign: halign
|
||||||
});
|
});
|
||||||
|
|
||||||
window.onresize = contain.update;
|
window.onresize = contain.update;
|
||||||
|
|
Loading…
Reference in a new issue