bg:gaming
Разлики
Тук са показани разликите между избраната и текущата версия на страницата.
Both sides previous revisionПредходна версияСледваща версия | Предходна версия | ||
bg:gaming [2022/05/09 20:11] – radev | bg:gaming [2022/10/11 06:12] (текуща) – hellmare | ||
---|---|---|---|
Ред 4: | Ред 4: | ||
==== Counter-Strike ==== | ==== Counter-Strike ==== | ||
- | * **Сървър: | + | * **Сървър: |
* **Игра: | * **Игра: | ||
* **IP Адрес: | * **IP Адрес: | ||
- | * **Играчи: | + | * **Играчи: |
- | * **Карта: | + | * **Карта: |
- | * [[https:// | + | |
{{: | {{: | ||
==== Half-Life ==== | ==== Half-Life ==== | ||
- | * **Сървър: | + | * **Сървър: |
* **Игра: | * **Игра: | ||
* **IP Адрес: | * **IP Адрес: | ||
- | * **Играчи: | + | * **Играчи: |
- | * **Карта: | + | * **Карта: |
+ | * **[[https:// | ||
{{: | {{: | ||
+ | |||
==== Minecraft ==== | ==== Minecraft ==== | ||
- | * **Сървър: | + | * **Сървър: |
* **Игра: | * **Игра: | ||
* **IP Адрес: | * **IP Адрес: | ||
- | * **Версия: | + | * **Версия: |
- | * **Играчи: | + | * **Играчи: |
+ | * **[[https:// | ||
//Само с покани. Пишете в [[https:// | //Само с покани. Пишете в [[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(); | ||
+ | </ | ||
+ | </ |
bg/gaming.1652127111.txt.gz · Последна промяна: 2022/05/09 20:11 от radev