[Design] Integrate plyr.io
This commit is contained in:
12
index.html
12
index.html
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Redacted Life</title>
|
||||
<link href="assets/css/index.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="assets/plyr/plyr.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -15,6 +16,11 @@
|
||||
<div class="wrapper">
|
||||
<div class="content">
|
||||
<h1>Redacted Life</h1>
|
||||
<div class="player">
|
||||
<video id="player">
|
||||
<source src="assets/videos/sample.mp4" type="video/mp4" />
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -30,6 +36,12 @@
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<script src="assets/plyr/plyr.js"></script>
|
||||
<script>
|
||||
const player = new Plyr("#player", {
|
||||
iconUrl: "assets/plyr/plyr.svg",
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user