Skip to content

Oembed album#137

Open
theju wants to merge 4 commits intoRuralIndia:masterfrom
theju:oembed_album
Open

Oembed album#137
theju wants to merge 4 commits intoRuralIndia:masterfrom
theju:oembed_album

Conversation

@theju
Copy link
Copy Markdown
Contributor

@theju theju commented Dec 16, 2014

An demo html file would be like

<!doctype html>
<html>
  <head>
    <title>PARI Talking Album widget embed</title>
  </head>
  <body>

    <div id="album-616795"></div>
    <script type="text/javascript">
      var __pariAlbum = {
              "widgetId": "album-616795",
              "url": "http://localhost:8000/albums/the-green-army/",
              "widgetWidth": "400px",
              "widgetHeight": "308px"
          };
      (function() {
            var script = document.createElement("script");
            script.type = "text/javascript";
            script.src = "http://localhost:8000/static/album/js/album_embed.js";
            var scripts = document.getElementsByTagName("script");
            scripts[scripts.length - 1].parentNode.appendChild(script);
          })();
      </script>
  </body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant