-
Notifications
You must be signed in to change notification settings - Fork 53
/
index.html
53 lines (48 loc) · 1.32 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
<!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="react-video.css">
<style>
@media screen and (min-width: 600px) {
.content {
width: 100%;
}
}
@media screen and (min-width: 960px) {
.content {
width: 70%;
}
}
#video-youtube,
#video-vimeo {
width: 80%;
margin: 50px;
}
</style>
</head>
<body>
<div class="content">
<div id="video-youtube"></div>
<div id="video-vimeo"></div>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react-with-addons.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/JSXTransformer.js"></script>
<script src="react-video.js"></script>
<script type="text/jsx">
/** @jsx React.DOM */
var Video = ReactVideo;
React.render(
<Video videoId='jhg8XRTorYg' />,
document.getElementById('video-youtube')
);
React.render(
<Video videoId='108843586' />,
document.getElementById('video-vimeo')
);
</script>
</body>
</html>