This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LoopChildren(elm) { | |
var nodes = elm.childNodes; | |
var length = nodes.length; | |
for (var i = 0; i < length; i++) { | |
var node = nodes[i]; | |
//... | |
} | |
} | |
//better use... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('[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'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello World! |