Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $.get("https://freegeoip.net/json/", function (response) {
- var country_code = response.country_code;
- if( in_array(country_code, ["ID","MY"]) ) {
- console.log("NEGARA ID, MY");
- // script popup
- // include_file("http://192.168.64.2/test/test.txt");
- // var _pop = _pop || [];
- // _pop.push(['siteId', 1291565]);
- // _pop.push(['minBid', 0]);
- // _pop.push(['popundersPerIP', 0]);
- // _pop.push(['delayBetween', 0]);
- // _pop.push(['default', false]);
- // _pop.push(['defaultPerDay', 0]);
- // _pop.push(['topmostLayer', false]);
- // (function() {
- // var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
- // var s = document.getElementsByTagName('script')[0];
- // pa.src = '//c1.popads.net/pop.js';
- // pa.onerror = function() {
- // var sa = document.createElement('script'); sa.type = 'text/javascript'; sa.async = true;
- // sa.src = '//c2.popads.net/pop.js';
- // s.parentNode.insertBefore(sa, s);
- // };
- // s.parentNode.insertBefore(pa, s);
- // })();
- // script banner
- // jQuery("#banner").html('<img src="http://placehold.it/728x90" />');
- $("#fixedban").fadeIn();
- } else if( in_array(country_code, ["US", "JP"]) ) {
- console.log("NEGARA US, JP");
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement