Created
February 24, 2010 04:03
-
-
Save goodpic/313084 to your computer and use it in GitHub Desktop.
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
$(document).ready(function(){ | |
// Configure jQuery oEmbed library | |
$.fn.oembed.defaults = { | |
maxWidth: 500, maxHeight: 400, | |
embedMethod: "append" // "replace", "auto", "append", "fill" | |
}; | |
// Append the oEmbed contents fetched from #oembed_url | |
$("form#oembed_form").submit( function () { | |
$("#oembed_contents").oembed($("#oembed_url").attr("value")); | |
return false; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment