Skip to content

Instantly share code, notes, and snippets.

@artgibson
Last active December 14, 2015 18:39
Show Gist options
  • Save artgibson/5131044 to your computer and use it in GitHub Desktop.
Save artgibson/5131044 to your computer and use it in GitHub Desktop.
Embedly jQuery example code from http://embed.ly/docs/tutorials/simple
<!DOCTYPE>
<html>
<head>
<title>Page Title</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script src="http://cdn.embed.ly/jquery.embedly-3.1.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$('document').ready(function(){
$('div.content').embedly({
query: { maxwidth: 450, wmode: 'transparent'},
method: 'after',
key: 'your_embedly_key'
});
});
</script>
</head>
<body>
<div class="content">
<article>
<h2>Title</h2>
<p>Lorizzle ma nizzle dolor sit amizzle, brizzle adipiscing elit. </p>
<a href="http://www.youtube.com/watch?v=ZbcgyPtYBY0">youtube</a>
<p>Maecenizzle owned bow wow wow. Nam eros.</p>
</article>
<article>
<h2>Title 2</h2>
<p>Lorizzle ma nizzle dolor sit amizzle, brizzle adipiscing elit. </p>
<a href="http://www.flickr.com/photos/churchclothing/2597225382/">flickr</a>
<p>Maecenizzle owned bow wow wow. Nam eros.</p>
</article>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment