/* TimelineJS - ver. 2.35.2 - 2014-11-24 Copyright (c) 2012-2013 Northwestern University a project of the Northwestern University Knight Lab, originally created by Zach Wise https://github.com/NUKnightLab/TimelineJS This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ if(typeof generator_embed_path=="undefined"||typeof generator_embed_path=="undefined"){var generator_embed_path=getScriptPath("storyjs-embed-generator.js").split("js/")[0];if(generator_embed_path.match("http")){generator_embed_path=generator_embed_path}else if(generator_embed_path=="/"){generator_embed_path="index.html"}else{generator_embed_path=generator_embed_path+"index.html"}}function getScriptPath(scriptname){var scriptTags=document.getElementsByTagName("script"),script_path="";for(var i=0;i0){wp+="width='"+e_width.value+"' "}if(e_height.value>0){wp+="height='"+e_width.value+"' "}wp+="font='"+e_font.value+"' ";wp+="maptype='"+e_maptype.value+"' ";wp+="lang='"+e_language.value+"' ";wp+="src='"+e_source.value+"' ";if(start_at_end){wp+="start_at_end='"+start_at_end+"' "}if(hash_bookmark){wp+="hash_bookmark='"+hash_bookmark+"' "}if(is_debug){wp+="debug='"+is_debug+"' "}if(e_googlemapkey.value!=""){wp+="gmap_key='"+e_googlemapkey.value+"' "}if(parseInt(e_startatslide.value,10)>0){wp+="start_at_slide='"+parseInt(e_startatslide.value,10)+"' "}if(parseInt(e_startzoomadjust.value,10)>0){wp+="start_zoom_adjust='"+parseInt(e_startzoomadjust.value,10)+"' "}wp+="]";theobj.wordpress=wp;vars=generator_embed_path+"?source="+source_key;vars+="&font="+e_font.value;vars+="&maptype="+e_maptype.value;vars+="&lang="+e_language.value;if(start_at_end){vars+="&start_at_end="+start_at_end}if(hash_bookmark){vars+="&hash_bookmark="+hash_bookmark}if(is_debug){vars+="&debug="+is_debug}if(parseInt(e_startatslide.value,10)>0){vars+="&start_at_slide="+parseInt(e_startatslide.value,10)}if(parseInt(e_startzoomadjust.value,10)>0){vars+="&start_zoom_adjust="+parseInt(e_startzoomadjust.value,10)}if(e_googlemapkey.value!=""){vars+="&gmap_key="+e_googlemapkey.value}if(e_width.value>0){vars+="&width="+e_width.value}if(e_height.value>0){vars+="&height="+e_height.value}iframe="";theobj.iframe=iframe;theobj.link=vars;if(e_wordpress.checked){theobj.copybox=wp}else{theobj.copybox=iframe}return theobj}function updateEmbedCode(element,options){var e_embed=document.getElementById("embed_code"),el=getLinkAndIframe();e_embed.value=el.copybox;jQuery("#preview-embed-link").attr("href",el.link);jQuery("#preview-embed-iframe").html(el.iframe);jQuery("#preview-embed").css("display","block")}