Skip to content

Instantly share code, notes, and snippets.

@screeley
Created October 18, 2011 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save screeley/1296404 to your computer and use it in GitHub Desktop.
Save screeley/1296404 to your computer and use it in GitHub Desktop.
jquery.preview.js Example
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="http://scripts.embed.ly/p/0.1/jquery.preview.full.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://scripts.embed.ly/p/0.1/css/preview.css" />
</head>
<body>
<form action="/update" method="POST">
<input id="url" type="text" name="url"/>
</form>
<script>
$('#url').preview({key:'your_embedly_key'})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment