/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (google.loader.ClientLocation) { var loc = google.loader.ClientLocation; var countryCode = loc.address.country_code; if(countryCode != "DE" && countryCode != "AT" && countryCode != "CH"){ $s('body').append("<div id='overlay'>Visible for other Countries</div>"); $s("#overlay").modal({ closeHTML: "<a href='#' title='Close' class='modal-close'>x</a>", position: ["15%",], opacity:80, overlayId: 'overlay', containerId: 'container', onClose: container.close }); } }