forked from BerkeleyTrue/react-vimeo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (42 loc) · 1.23 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Example | React Video</title>
<link rel="stylesheet" href="http://necolas.github.io/normalize.css/3.0.1/normalize.css">
<link rel="stylesheet" href="/lib/Vimeo.css">
<link rel="stylesheet" href="/react-vimeo/lib/Vimeo.css">
<style>
@media screen and (min-width: 600px) {
.content {
width: 100%;
}
}
@media screen and (min-width: 960px) {
.content {
width: 70%;
}
}
#vimeo {
width: 80%;
margin: 50px;
}
</style>
</head>
<body>
<div class="content">
<div id="vimeo"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-dom.js"></script>
<script src="/lib/umd/ReactVimeo.js"></script>
<script src="/react-vimeo/lib/umd/ReactVimeo.js"></script>
<script type="text/javascript">
ReactDOM.render(
React.createElement(ReactVimeo, { videoId: '131196784' }),
document.getElementById('vimeo')
);
</script>
</body>
</html>