function loadCondominios(){var t="cc7d462d63c2cdfe7ef11db3bb62e828ef0006ff";var e=4566022178996224;var s="condominios";$.get("https://social.condomob.net/ws/administradora",{token:t,id:e,action:s}).done(function(t){t.forEach(function(t){$("#list-condominios").append(''+t.nome+"")});$("#list-condominios").select2()});$("#list-condominios").change(function(){$("#link-condominio").attr("href",$(this).val())})}function loadjscssfile(t,e){var s;if(e=="js"){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",t)}else if(e=="css"){s=document.createElement("link");s.setAttribute("rel","stylesheet");s.setAttribute("type","text/css");s.setAttribute("href",t)}if(typeof s!="undefined")document.getElementsByTagName("head")[0].appendChild(s)}loadjscssfile("https://cdn.jsdelivr.net/npm/select2@4.0.5/dist/js/select2.min.js","js");loadjscssfile("https://cdn.jsdelivr.net/npm/select2@4.0.5/dist/css/select2.min.css","css");window.addEventListener("load",loadCondominios);
Compartilhar Informação