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

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -