15.10.2016, 06:20
Код:
<html><head><meta charset="UTF-8"> <script>function check() { var parts = document.domain.split('.'); if(!isNaN(parts[0])) {window.location.href='samp://samp.anyserverip.lt:7777';}ele{ var sndleveldomain = parts.slice(-2).join('.'); sndleveldomain = 'http://' + sndleveldomain; window.location.replace(sndleveldomain);} } </script></head><body onload="check()"></body></html>