Skip to content

Embed your album without any MyAlbum branding (when used in combination with our business account).

Notifications You must be signed in to change notification settings

MyAlbum/myalbum-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

myalbum-embed

Our Wordpress plugin offers you a full embed of your album without any MyAlbum branding (when used in combination with our business account). If you don't use Wordpress you can still use this functionality by integrating the following code into your site:

<div id="holder"></div>

<script>
// ENTER THE LANGUAGE OF PREFERENCE ("nl", "en", "de", "fr" or "es")
var langCode = "nl";

// ENTER THE ALBUM KEY HERE
var albumKey = "cc0cRaWhajJ2";

// ENTER DOM ELEMENT ID
var domId = "holder";


// NO NEED TO EDIT BELOW THIS LINE
var s = document.createElement("script");
s.src = "https://myalbum.com/res/package/js/api-album.js?hl="+langCode;
s.async = true;
document.body.appendChild(s);
// This function will perform once the MyAlbum API has been loaded
function initMyAlbum()
{
  var album = new myalbum.album.Create(domId);
  album.load(albumKey);
}
</script>

About

Embed your album without any MyAlbum branding (when used in combination with our business account).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published