var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); /*server side analogue is function display_embed in WDWLibraryEmbed*/ /*params embed_type: string , one of predefined accepted types embed_id: string, id of media in corresponding host, or url if no unique id system is defined for host attrs: object with html attributes and values format e.g. {width:'100px', style:"display:inline;"} */ function spider_display_embed(embed_type, file_url, embed_id, attrs) { var html_to_insert = ''; switch(embed_type) { case 'EMBED_OEMBED_YOUTUBE_VIDEO': var oembed_youtube_html =''; */ oembed_instagram_html += ''; } oembed_instagram_html +=""; html_to_insert += oembed_instagram_html; break; case 'EMBED_OEMBED_INSTAGRAM_IMAGE': var oembed_instagram_html ='
'; } oembed_instagram_html +="
"; html_to_insert += oembed_instagram_html; break; case 'EMBED_OEMBED_INSTAGRAM_POST': var oembed_instagram_html ='
'; } oembed_instagram_html +="
"; html_to_insert += oembed_instagram_html; break; case 'EMBED_OEMBED_FACEBOOK_IMAGE': var oembed_facebook_html =''; } oembed_facebook_html +=""; html_to_insert += oembed_facebook_html; break; case 'EMBED_OEMBED_FACEBOOK_VIDEO': var oembed_facebook_video_html ='
'; } oembed_facebook_video_html +="
"; html_to_insert += oembed_facebook_video_html; break; case 'EMBED_OEMBED_DAILYMOTION_VIDEO': var oembed_dailymotion_html ='