Permalink
Browse files

add embed.ly

  • Loading branch information...
1 parent 4de8d7b commit c0044360abf0300b435826c48bf57c0fca17514a Junichi Takahashi committed Mar 21, 2012
Showing with 11 additions and 3 deletions.
  1. +3 −1 20120302174042.markdown
  2. +8 −2 index.html
@@ -1,2 +1,4 @@
# example3
-hello, world!
+hello, world!
+
+[http://www.youtube.com/watch?v=QH2-TGUlwu4](http://www.youtube.com/watch?v=QH2-TGUlwu4)
View
@@ -7,8 +7,6 @@
<link href="./app/bootstrap/css/bootstrap.min.css" rel="stylesheet">
-<script type="text/javascript" src="http://scripts.embed.ly/embedly.js"></script>
-
<script type="text/javascript" src="./app/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="./app/async.js"></script>
<script type="text/javascript" src="./app/json2.js"></script>
@@ -17,6 +15,8 @@
<script type="text/javascript" src="./app/base64.js"></script>
<script type="text/javascript" src="./app/showdown.js"></script>
+<script src="http://scripts.embed.ly/jquery.embedly.min.js"></script>
+
<script type="text/javascript">
var hubticle = {}
hubticle.settings = {};
@@ -25,6 +25,8 @@
hubticle.settings.user = 'hubticle'; // setting user name
hubticle.settings.repo = 'hubticle.github.com'; // setting repo name
+
+hubticle.settings.embedlyApiKey = '1a76167c734511e193c14040d3dc5c07';
</script>
</head>
@@ -205,6 +207,10 @@
$(function() {
new hubticle.AppRouter();
Backbone.history.start();
+
+ $("a").embedly({
+ key: hubticle.settings.embedlyApiKey
+ });
});
</script>
</body>

0 comments on commit c004436

Please sign in to comment.