SHOW:
|
|
- or go back to the newest paste.
1 | <!DOCTYPE html> | |
2 | <html> | |
3 | <body> | |
4 | ||
5 | <h1>My First Heading</h1> | |
6 | <p>My first paragraph.</p> | |
7 | ||
8 | ||
9 | <script> | |
10 | var countryCode=''; | |
11 | function getCountryCode(data) { | |
12 | ||
13 | countryCode = data.countryCode; | |
14 | ||
15 | if(countryCode == 'IN') | |
16 | { | |
17 | - | console.log("You're from a forbidden country."); |
17 | + | |
18 | window.__lc.license = XXXXXXXX; | |
19 | window.__lc.group = 1; | |
20 | (function() { | |
21 | var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true; | |
22 | lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js'; | |
23 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s); | |
24 | })(); | |
25 | } | |
26 | ||
27 | else | |
28 | { | |
29 | window.__lc = window.__lc || {}; | |
30 | window.__lc.license = XXXXXXXX; | |
31 | window.__lc.group = 2; | |
32 | (function() { | |
33 | var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true; | |
34 | lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js'; | |
35 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s); | |
36 | })(); | |
37 | } | |
38 | ||
39 | ||
40 | } | |
41 | </script> | |
42 | <script src="https://extreme-ip-lookup.com/json/?callback=getCountryCode"></script> | |
43 | ||
44 | </body> | |
45 | </html> |