-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.html
23 lines (23 loc) · 872 Bytes
/
player.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<style>
#player, body, html { margin:0; padding:0; width:100%; height:100% }
#top { padding-bottom:56.25%; height:0; overflow:hidden; position:relative }
#wrapper { position:relative; padding-bottom:200%; transform:translateY(-35.95%) }
#player { position:absolute; top:0; right:0; bottom:0; left:0; border:0 }
</style>
</head>
<body>
<div id="top">
<div id="wrapper">
<iframe id="player" allow="autoplay; fullscreen" allowfullscreen></iframe>
</div>
</div>
<script>
const params = new URLSearchParams(window.location.hash.substr(1));
const player = document.getElementById('player');
player.setAttribute('src', `https://player.vimeo.com/video/${params.get('v')}?title=0&byline=0&portrait=0&transparent=0&autoplay=1&muted=1#t=${params.get('t')}`);
</script>
</body>
</html>