javascript - Hide <div> for country IP -
i hide <div>
1 country. works when use api test it, reason doesn't work when put on website. there can host on website or similar? i'm using wordpress.
here's code
$.get("freegeoip.net/json/";, function(response) { if (response.country_code != 'ba') { if (jquery.cookie('prikazii') == null) { if (ref.match(/^https?:\/\/([^\/]+\.)?facebook\.com(\/|$)/i)) { document.getelementbyid('chat').style.display = 'block'; } } } }, "jsonp");
Comments
Post a Comment