https://www.airmate.aero/events/'+event_identifier+'
';
current_popup.find(".tabs-1").html(infos_str)
/*----------------------TAB2---------------------------*/
/*---- CONTACT -------*/
var address_str = " "
address_str += address+"
"+municipality+"
"+country+' '+zip_code
var phone_str = " "
phone_str+= phone
/*
var email_str = " "
email_str += email
var contact_str = address_str+"
"+phone_str+"
"+email_str
*/
var web_str = "";
if(defined(web))
{
if (ad_type>0)
{
web="
"+web+"" ;
}
web_str = '
'
+''+ " "+' | '
+''+web+' | '
+'
'
}
if (ad_type>0)
{
email ="
"+email+"" ;
}
var contact_str= '
'
+''
+''+ " "+' | '
+' '+address+" "+municipality+" "+country+' '+zip_code+' | '
+'
'
+''
+''+ " "+ ' | '
+' '+phone+' | '
+'
'
+''
+''+ " "+' | '
+''+email+' | '
+'
'
+web_str
+'
'
current_popup.find(".tabs-2").html(contact_str)
// $(id_popup).css('top', (id * 5) + 'px')
// $(id_popup).css('left', (id * 5) + 'px')
$(id_popup).css('z-index', (2500 + id))
/*----------------------TAB2---------------------------*/
var contentString = $(id_popup)[0].outerHTML;
// var contentString = $(id_popup).html();
$(id_popup).remove();
// console.log(contentString);
if (typeof infowindow !== 'undefined') infowindow.close();
infowindow = new google.maps.InfoWindow({
content: contentString
});
infowindow.open(map, marker);
// $(id_popup).draggable({ cancel: ".tab-Freq" });
}
function copy_link(id)
{
console.log("copy_link",id);
$( "#"+id ).toggle("slow");
var el = document.getElementById(id);
var range = document.createRange();
range.selectNodeContents(el);
el.contentEditable = true;
el.readOnly = false;
var s = window.getSelection();
s.removeAllRanges();
s.addRange(range);
if (navigator.userAgent.match(/ipad|ipod|iphone/i)) {
el.setSelectionRange(0, 999999); // A big number, to cover anything that could be inside the element.
}
document.execCommand('copy');
}
function popup_click_tabs(tab)
{
console.log("popup_click_tabs",tab);
console.log("parent",$(tab).parent().parent().parent());
var popup = $(tab).parent().parent().parent();
var id_popup = popup.attr("id")
console.log("id_popup",id_popup);
var target = $(tab).attr("aria-controls")
console.log("target",target);
$("#"+id_popup+" .ui-tabs-panel").css("display","none")
$("#"+id_popup+" .ui-tabs-tab").removeClass("ui-tabs-active ui-state-active")
$("#"+id_popup+" ."+target).css("display","block")
$(tab).addClass("ui-tabs-active ui-state-active")
}