Permalink
Fetching contributors…
Cannot retrieve contributors at this time
<!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> |