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