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