-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·73 lines (69 loc) · 1.73 KB
/
index.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Web Minis – Parallel Video</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
body {
background-color: rgb(250, 250, 250);
color: rgb(10, 10, 10);
font-family: 'Courier New', Courier, monospace;
font-size: 1em;
margin: 0;
}
main {
margin: auto;
width: 60%;
}
.iframe-container {
position: relative;
width: 100vw;
left: -33.3%;
}
.iframe-container > div {
padding-top: 56.25%;
}
.iframe-container > div > iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
#overlay {
position: fixed; /* Sit on top of the page content */
display: block; /* Hidden by default */
width: 100%; /* Full width (cover the whole page) */
height: 100%; /* Full height (cover the whole page) */
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0,0,0,0.5); /* Black background with opacity */
z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
cursor: pointer; /* Add a pointer on hover */
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<main>
<div class="iframe-container">
<img id="overlay" src="click.jpg"/>
<div>
<iframe src="./parallel-video.html" frameborder="0"></iframe>
</div>
</div>
<script>
$('#overlay').on('click', function(){
$(this).remove();
});
</script>
</main>
</body>
</html>