Skip to content

Commit

Permalink
Added listener for title so that embed page title will show an accura…
Browse files Browse the repository at this point in the history
…te title instead of generic StoryMap Embed

@JoeGermuska can you test this? I was unable to test since I'm not sure how this template works.
  • Loading branch information
zachwise committed Aug 21, 2014
1 parent e929d35 commit 849b25f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/embed/index.html
Original file line number Diff line number Diff line change
@@ -148,9 +148,14 @@
}
VCO.Load.css(font,function(){ trace('font loaded: ' + font);});
storymap = new VCO.StoryMap('storymap-embed', d, options);
storymap.on('title', on_storymap_title);
}
}


function on_storymap_title(e) {
document.title = "StoryMapJS: " + e.title;
};

function storymap_getjson() {
if('withCredentials' in new XMLHttpRequest()) {
// Supports cross-domain requests

0 comments on commit 849b25f

Please sign in to comment.