Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
- </head>
- <body>
- <script>
- var invokeLiveChat = function() {
- var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
- lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
- }
- var IPCheck = {
- getIP: function() {
- if (/2.+/.test(geoplugin_status())) {
- var clientIP = geoplugin_request();
- return clientIP;
- }
- else {
- return false;
- }
- }
- };
- var arrayOfIPAddresses = ["194.181.146.133","194.181.146.132","194.181.146.131"];
- var ip = IPCheck.getIP();
- if(-1 < arrayOfIPAddresses.indexOf(ip))
- {
- console.log('bonzai!');
- window.__lc = window.__lc || {};
- window.__lc.license = LICENSE_NUMBER;
- window.__lc.group = 1;
- invokeLiveChat();
- } else {
- window.__lc = window.__lc || {};
- window.__lc.license = LICENSE_NUMBER;
- window.__lc.group = 2;
- invokeLiveChat();
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment