Skip to content

Instantly share code, notes, and snippets.

@nktpro
Created April 11, 2012 23:15
Show Gist options
  • Save nktpro/2363408 to your computer and use it in GitHub Desktop.
Save nktpro/2363408 to your computer and use it in GitHub Desktop.
Iframe video fit
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../../resources/css/sencha-touch.css">
<style type="text/css">
#video .x-innerhtml, #video iframe {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
</style>
<script src="../../sencha-touch.js"></script>
<script type="text/javascript">
Ext.setup({
onReady: function() {
this.add({
id: 'video',
html: '<iframe src="http://player.vimeo.com/video/39862091?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><p><a href="http://vimeo.com/39862091">"SIXTEEN SALTINES" | Jack White</a> from <a href="http://vimeo.com/whatupag">AG Rojas</a> on <a href="http://vimeo.com">Vimeo</a>.</p>'
})
}
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment