Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oembed album #137

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Oembed album #137

wants to merge 4 commits into from

Conversation

theju
Copy link
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.

None yet

1 participant