Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. $(function(){
  2. $.get("https://freegeoip.net/json/", function (response) {
  3. var country_code = response.country_code;
  4.  
  5. if( in_array(country_code, ["ID","MY"]) ) {
  6. console.log("NEGARA ID, MY");
  7. // script popup
  8. // include_file("http://192.168.64.2/test/test.txt");
  9. // var _pop = _pop || [];
  10. // _pop.push(['siteId', 1291565]);
  11. // _pop.push(['minBid', 0]);
  12. // _pop.push(['popundersPerIP', 0]);
  13. // _pop.push(['delayBetween', 0]);
  14. // _pop.push(['default', false]);
  15. // _pop.push(['defaultPerDay', 0]);
  16. // _pop.push(['topmostLayer', false]);
  17. // (function() {
  18. // var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
  19. // var s = document.getElementsByTagName('script')[0];
  20. // pa.src = '//c1.popads.net/pop.js';
  21. // pa.onerror = function() {
  22. // var sa = document.createElement('script'); sa.type = 'text/javascript'; sa.async = true;
  23. // sa.src = '//c2.popads.net/pop.js';
  24. // s.parentNode.insertBefore(sa, s);
  25. // };
  26. // s.parentNode.insertBefore(pa, s);
  27. // })();
  28. // script banner
  29. // jQuery("#banner").html('<img src="http://placehold.it/728x90" />');
  30. $("#fixedban").fadeIn();
  31. } else if( in_array(country_code, ["US", "JP"]) ) {
  32. console.log("NEGARA US, JP");
  33. }
  34. });
  35. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement