en:gaming
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | en:gaming [2022/06/10 21:59] – created radev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Servers ====== | ||
+ | {{: | ||
+ | ==== Counter-Strike ==== | ||
+ | |||
+ | * **Server:** < | ||
+ | * **Game:** [[https:// | ||
+ | * **IP Address:** cs.varnalab.com: | ||
+ | * **Players: | ||
+ | * **Maps:** < | ||
+ | * [[https:// | ||
+ | |||
+ | {{: | ||
+ | ==== Half-Life ==== | ||
+ | |||
+ | * **Server:** < | ||
+ | * **Game:** [[https:// | ||
+ | * **IP Address:** hl.varnalab.com: | ||
+ | * **Players: | ||
+ | * **Map:** < | ||
+ | * * [[https:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ==== Minecraft ==== | ||
+ | |||
+ | * **Server:** VarnaLab Minecraft < | ||
+ | * **Game:** Minecraft | ||
+ | * **IP Address:** mc.varnalab.com | ||
+ | * **Version: | ||
+ | * **Players: | ||
+ | |||
+ | //Invite only. You can ask for invite in our [[https:// | ||
+ | |||
+ | < | ||
+ | <script src=" | ||
+ | < | ||
+ | MinecraftAPI.getServerStatus(' | ||
+ | port: 25565 // optional, only if you need a custom port | ||
+ | }, function (err, data) { | ||
+ | if (err) { | ||
+ | return document.querySelector(' | ||
+ | } | ||
+ | |||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | }); | ||
+ | </ | ||
+ | < | ||
+ | async function gameStatus(){ | ||
+ | let gamesApi = ' | ||
+ | let response = await fetch(gamesApi); | ||
+ | let valve = await response.json(); | ||
+ | |||
+ | if(valve.cs.status > 0){ | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | } | ||
+ | if(valve.hl.status > 0){ | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | document.querySelector(' | ||
+ | } | ||
+ | } | ||
+ | gameStatus(); | ||
+ | </ | ||
+ | </ |
en/gaming.txt · Last modified: 2022/10/11 06:13 by hellmare