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