-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (39 loc) · 1.27 KB
/
index.html
File metadata and controls
44 lines (39 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Full Screen Background Video</title>
<meta name="description" content="Full screen background video demo">
<meta name="author" description="Call Me Nick">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oxygen:400,300,700">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="content">
<h1 class="content__heading">Welcome To My Product</h1>
<p class="content__teaser">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Suscipit qui voluptatum enim est deserunt assumenda, aspernatur quam aperiam!</p>
<a href="#" class="content__cta">Buy It Now!</a>
</div><!-- /content -->
<video id="my-video" class="video" muted loop>
<source src="media/demo.mp4" type="video/mp4">
<source src="media/demo.ogv" type="video/ogg">
<source src="media/demo.webm" type="video/webm">
</video><!-- /video -->
<script>
(function() {
/**
* Video element
* @type {HTMLElement}
*/
var video = document.getElementById("my-video");
/**
* Check if video can play, and play it
*/
video.addEventListener( "canplay", function() {
video.play();
});
})();
</script>
</body>
</html>