' + data.text + ''); return $result; }, escapeMarkup:function(markup) { return markup === 'undefined' ? '' :markup; } }); $(".select2-show-search").on("select2:select", function(e) { window.location.href = e.params.data.id; }); }); function svgturkiyeharitasi() { const svgContainer = document.getElementById('svg-turkiye-haritasi'); const info = document.querySelector('.il-isimleri'); fetch('https://viptema.com/assets/img/harita.svg') .then(response => response.text()) .then(svgData => { svgContainer.innerHTML = svgData; const element = document.querySelector('#svg-turkiye-haritasi'); element.addEventListener('mouseover', function(event) { if (event.target.tagName === 'path' && event.target.parentNode.id !== 'guney-kibris' && event.target.parentNode.id !== 'kuzey-kibris') { info.innerHTML = [ '