-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaxwidth-example.html
More file actions
22 lines (22 loc) · 926 Bytes
/
maxwidth-example.html
File metadata and controls
22 lines (22 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jquery-oembed max width simple example</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.oembed.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
$(".oembed").oembed(null, {
embedMethod: "append",
maxWidth: 400,
maxHeight: 300 });
});
</script>
<div><a href="http://www.flickr.com/photos/14516334@N00/345009210/" class="oembed">Flickr Image</a></div>
<div><a href="http://vimeo.com/3108686" class="oembed">Vimeo Video</a></div>
<div class="oembed">Don't replace this</div>
</body>
</html>