This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (17 sloc) 914 Bytes
<html>
<head>
<title>Rust-Servers.Info JavaScript API Example</title>
<script src="https://api.rust-servers.info/embed.js?id=3"></script><!-- Use your server ID! -->
<head>
<body>
<ul>
<script>document.write("<img class='image' src=" + image + "/>");</script>
<li>Hostname: <script>document.write(hostname);</script></li>
<li>Players: <script>document.write(players_cur);</script> / <script>document.write(players_max);</script></li>
<li>Map: <script>document.write(map);</script> <small>(Size: <script>document.write(map_size);</script> / Seed: <script>document.write(map_seed);</script>)</small></li>
<li>Rating: <script>document.write(rating);</script></li>
<li>Server Location: <script>document.write(country_full);</script></li>
</ul>
<p>For full list of JavaScript Variables visit Rust-Servers.Info API page - <a href="https://api.rust-servers.info/#javascript">api.rust-servers.info</a></p>
</body>
</html>