Skip to content

Instantly share code, notes, and snippets.

<body>
<video width="640" height="360" controls autoplay>
<!-- Adaptive Bitrate streaming -->
<source scr="http://www.url.to/video.m3u8" type="application/x-mpegURL" />
<source src="http://www.url.to/video.mp4" type="video/mp4" />
<source src="http://www.url.to/video.webm" type="video/webm" />
<source src="http://www.url.to/video.ogg" type="video/ogg" />
<object type="application/x-shockwave-flash" data="player.swf" width="640" height="360">
<param name="movie" value="player.swf" />
<param name="allowscriptaccess" value="never" />
<body>
<video width="640" height="360" controls autoplay>
<!-- Adaptive Bitrate streaming -->
<source scr="http://www.url.to/video.m3u8" type="application/x-mpegURL" />
<source src="http://www.url.to/video.mp4" type="video/mp4" />
<source src="http://www.url.to/video.webm" type="video/webm" />
<source src="http://www.url.to/video.ogg" type="video/ogg" />
<object type="application/x-shockwave-flash" data="player.swf" width="640" height="360">
<param name="movie" value="player.swf" />
<param name="allowscriptaccess" value="never" />
<body>
<video width="640" height="360" controls autoplay>
<!-- Adaptive Bitrate streaming -->
<source scr="http://www.url.to/video.m3u8" type="application/x-mpegURL" />
<source src="http://www.url.to/video.mp4" type="video/mp4" />
<source src="http://www.url.to/video.webm" type="video/webm" />
<source src="http://www.url.to/video.ogg" type="video/ogg" />
<object type="application/x-shockwave-flash" data="player.swf" width="640" height="360">
<param name="movie" value="player.swf" />
<param name="allowscriptaccess" value="never" />
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
if (this.originalType) {
this.type = this.originalType;
delete this.originalType;
}
input.val('');
input.removeClass('placeholder');
}