diff --git a/API.js b/API.js deleted file mode 100644 index b5d5de0..0000000 --- a/API.js +++ /dev/null @@ -1,165 +0,0 @@ -$(async function() { - RequestAPI(); - CheckProfile(); -}); - -let servers_active = ` -
-

Где сейчас играют карлики

-
-` - -let servers_inactive = ` -
-

Пустуют без дела

-
-` - -let servers_dead = ` -
-

Временно выключены

-
-` - -let invalid_captcha = ` -
-
-

ДЯДЯ ТЫ ДУРАЧЕК, КАПЧА НЕПРАВИЛЬНАЯ, ЖМИ СНОВА НА КНОПКУ

-
-` - -function generate_working_server_div(data) { - let workshop = `` - let direct_url = `` - let connect_url = `` - ///////////////////// - let w_disabled = `` - let d_disabled = `` - let c_disabled = `` - - if (data.status == true) { - if ("workshop" in data && data.workshop != "") { - workshop = data.workshop - } else { - w_disabled = `disabled` - } - ///////////////////////////// - if ("direct_url" in data && data.direct_url != "") { - direct_url = data.direct_url - } else { - d_disabled = `disabled` - } - ///////////////////////////// - if ("address" in data && data.address != "") { - connect_url = data.address - } else { - c_disabled = `disabled` - } - } else { - w_disabled = `disabled` - d_disabled = `disabled` - c_disabled = `disabled` - } - - workshop = ` -
- Workshop -
-` - direct_url = ` -
- Скачать карту -
-` - connect_url = ` -
- Подключиться -
-` - - return ` -
-
-
-
-
-

${data.name}

-

${data.player_count}/${data.max_players} ${data.human_name}

-
-
-
-
- ${connect_url} - ${workshop} - ${direct_url} -
-
-
-`; -} - -async function RequestAPI() { - //, {headers: {'Cache-Control':'no-cache'}} - await fetch("https://tf2.pblr-nyk.pro/api/stats", {headers: {'Cache-Control':'no-cache'}}) - .then(res => res.json()) - .then(res => { - console.log(res.servers.statistic); - document.getElementById("current_players").innerHTML = res.servers.statistic.player_now; - document.getElementById("max_per_day").innerHTML = res.servers.statistic.player_max; - document.getElementById("servers_works").innerHTML = res.servers.statistic.working_servers + '/' + res.servers.statistic.total_servers; - document.getElementById("uniq_day_players").innerHTML = res.uniq.day; - document.getElementById("uniq_month_players").innerHTML = res.uniq.month; - document.getElementById("uniq_year_players").innerHTML = res.uniq.year; - - let active = false; - let inactive = false; - let dead = false; - - let insert_type = "beforeend"; - //active servers - let sorted_servers = Object.keys(res.servers).sort((a, b) => { - return res.servers[b].player_count - res.servers[a].player_count; - }); - console.log(sorted_servers); - - for (let sort_id in sorted_servers) { - let server = sorted_servers[sort_id]; - if (server == `statistic`) {continue;} - if(res.servers[server].status == true && res.servers[server].player_count > 0) { - if(!active) { - document.getElementById("servers_list").insertAdjacentHTML(insert_type,servers_active) - active = true; - } - document.getElementById("servers_list").insertAdjacentHTML(insert_type,generate_working_server_div(res.servers[server])); - } - } - - //inactive server - for (const server in res.servers) { - if (server == `statistic`) {continue;} - if(res.servers[server].status == true && res.servers[server].player_count == 0) { - if(!inactive) { - document.getElementById("servers_list").insertAdjacentHTML(insert_type,servers_inactive) - inactive = true; - } - document.getElementById("servers_list").insertAdjacentHTML(insert_type,generate_working_server_div(res.servers[server])); - } - } - - //dead server - for (const server in res.servers) { - if (server == `statistic`) {continue;} - if(res.servers[server].status == false) { - if(!dead) { - document.getElementById("servers_list").insertAdjacentHTML(insert_type,servers_dead) - dead = true; - } - document.getElementById("servers_list").insertAdjacentHTML(insert_type,generate_working_server_div(res.servers[server])); - } - } - }); -} - -function UNIX2TIMESTAMP(unix) { - return new Date(unix * 1000); -} \ No newline at end of file diff --git a/Player_API.js b/Player_API.js deleted file mode 100644 index ff77df0..0000000 --- a/Player_API.js +++ /dev/null @@ -1,60 +0,0 @@ -$(document).on("show.bs.modal", '#CheckProfileCaptcha', async function () { - console.log("setup captcha"); - if(document.getElementById("InvalidCaptcha")) {document.getElementById("InvalidCaptcha").remove()} - let form = document.forms["formProfileChecker"]; - let captcha_id; - - await fetch("https://tf2.pblr-nyk.pro/player_api/v1/captcha", {method:'POST'}) - .then(response => response.json()) - .then(response => { - console.log(response.id) - captcha_id = response.id; - form.captcha_img.src = "https://tf2.pblr-nyk.pro/player_api/v1/captcha?id=" + response.id; - }) - - form.addEventListener("submit", async function (ev) { - ev.preventDefault(); - $("#check_profile_submit_button").prop("disabled", true); - $("#check_profile_close_button").prop("disabled", true); - - console.log("pukkkk") - await fetch("https://tf2.pblr-nyk.pro/player_api/v1/player?steam_url=" + form.steamurl.value + "&captcha_id=" + captcha_id + "&captcha_code=" + form.captcha.value) - .then(response => response.json()) - .then(response => { - $("#check_profile_submit_button").removeAttr("disabled"); - $("#check_profile_close_button").removeAttr("disabled"); - - if ("error" in response) { - if (response.error == "incorrect captcha") { - $('#check_profile_close_button').click(); - document.getElementById("profile_list").insertAdjacentHTML("beforeend",invalid_captcha); - //await new Promise(r => setTimeout(r, 2000)); - //document.getElementById('CheckProfileCaptchaLabel').innerHTML = "НЕВЕРНАЯ КАПЧА, ПОВТОРИ ПОПЫТКУ" - //document.getElementById('CheckProfileCaptchaLabel').style.color = 'red'; - //$('#buttonCheck').click(); - return; - } else { - alert("Сервер сказал хуй: " + response.error); - $('#check_profile_close_button').click(); - return; - } - } else if ("detail" in response) { - alert("Сервер сказал хуй: " + response.detail[0].msg); - $('#check_profile_close_button').click(); - return; - } else { - console.log(response); - document.getElementById("profile_check").remove(); - document.getElementById("buy_vip").remove(); - document.getElementById("profile_list").insertAdjacentHTML("beforeend",current_vip(response.permition)); - document.getElementById("vip_prices").insertAdjacentHTML("beforeend",generate_vip_table()); - $('#check_profile_close_button').click(); - return; - } - }) - }); -}); - -async function CheckProfile() { - -} \ No newline at end of file diff --git a/index.html b/index.html index 3830e1b..9d6342a 100644 --- a/index.html +++ b/index.html @@ -3,189 +3,367 @@ Факты 13 + - + + + + + + -
+
-
-
+ +
-
-
-
-
-

Факты 13

+
+
+

Факты 13

+
+
+
+ +
+
+
+

Добро пожаловать на "лучший" ру-сервер ТФ2

+
+
+
+
+

Давно искал место где можно почилить в данной мертвой игре??? Поздравляю ты его нашел!!!

+
+
+
+

Сейчас играют

+

Пик игроков за день

+

Серверов работает

+

~

+

~

+

~

+
-
-
-
-

Добро пожаловать на "лучший" ру-сервер ТФ2

+
+
+
+

Все еще сомневаешься??? Посмотри как много карликов у нас бывают!

+
p.s (статистика предоставлена при условии что игрок сыграл больше 5 минут)
+
p.s.s (уникальный = игрок зашел за данный период впервый раз)
+
+
+
+

За день

+

За месяц

+

За год

+

~

+

~

+

~

-
-
-
-
- -
-

Давно искал место где можно почилить в данной мертвой игре??? Поздравляю ты его нашел!!!

-
-
-
-

Сейчас играют

-

Пик игроков за день

-

Серверов работает

-

~

-

~

-

~

-
-
- -
-
+
+
+
+
+

Почему стоит начать играть?

+
+
+
+

> Все карты на сервере уникальны и сделаны нами, ты всегда можншь найти место по вкусу!

+
+
+

> Большенство плагинов на сервере сделаны нами и добавляют некий шарм в геймплей.

+
+
+

> Правила для вас не писаны(каканы), можете делать всё что душе угодно, но ожидайте что вам дадут пиздюлей наши модераторы.

+
+
+

> Сервера работают на божем слове, так что шанс что проект закроется стремится к нулю. Конечно пока нам не надоест.

-
-
-
-
- -
-

Все еще сомневаешься??? Посмотри как много карликов у нас бывают!

-
p.s (статистика предоставлена при условии что игрок сыграл больше 5 минут)
-
p.s.s (уникальный = игрок зашел за данный период впервый раз)
-
-
-
-

За день

-

За месяц

-

За год

-

~

-

~

-

~

-
-
-
-
-
+
+
+ +
+
+
+
+

Правила (для самых маленьких)

-
- -
-
-
-
-
-
-

Почему стоит начать играть?

-
-
-
-

> Все карты на сервере уникальны и сделаны нами, ты всегда можншь найти место по вкусу!

-
-
-

> Большенство плагинов на сервере сделаны нами и добавляют некий шарм в геймплей.

-
-
-

> Правила для вас не писаны(каканы), можете делать всё что душе угодно, но ожидайте что вам дадут пиздюлей наши модераторы.

-
-
-

> Сервера работают на божем слове, так что шанс что проект закроется стремится к нулю. Конечно пока нам не надоест.

-
-
-
+
+
+
+
+
+

Правила на которые ты забьёшь х*й

+

ᐯ ᐯ ᐯ

+
+
+ +
-
-
-

Выбери сервер на свой "ОТЛИЧНЫЙ" вкус!

+
+
+

Список серверов

+
+
+
+
+
+
+
Для подключения к серверу просто нажми на него
+
+
+
+ +
+
+
+
+
+
Информация обновлена:
-
+ +
+
+

Покупка VIP

+
+
+
+
+
+

Нагибай всех благодаря нашей випки!

+
(Смотри не перестарайся)
+
+
+
+
+
+ +
+
+
+
+
Что дает випка?
+
+

- Одна випка на все наши сервера.

+

- Резервный слот и тебя не кикнет если сервер заполнится.

+

- Вас не кикнет за АФК.

+

- Хук, позволяет летать по карте используя паутину.

+

- Верёвка, позволяет висеть как говно.

+

- Раздатчик теперь играет музыку.

+

- Менять свой класс игнорируя ограничения.

+

- КД у РТД, всегда будет равным двум минутам.

+

- "Бесплатные" аньюжки, каждая на каждый сервер и на каждый клас.

+
+

И много еще чего... через !меню.

+
+
+
+
+
+
-
-
+
+ +
+
+
+

Профиль

+
+
+
+

Проверь свой профиль на фактах!

На этой странице после ввода твоего профиля, появится вся твоя статистика на фактах, наличие банов и их история, а так-же возможность купить випку!
- > +
+
+
+
+
Ссылка на профиль:
+
+
+ +
+
+
+
+
+
+
+ +
-
-

Здраствуйте, спасибо что выбрали факты 13 в качестве сервера, где можно весело проводить время!

+
+
+

О нас всех и тебе

+
-
-

Наши "отличные" сервера выбирают, не только русские игроки, но и другие, из разных стран, например: украина

-
-

~

-

~

-

~

-

~

-

~

+
+
+
+
+

Кто мы?

+
и что мы делаем в вашем списке серверов?
+
+
+
+
+
+
+
+ gameplay_1 +
+
+
+
+
+ gameplay_2 +
+
+
+
+
+ gameplay_3 +
+
+
+
+
+

Факты 13 - это дружный сервачок русского наолда, где вы можете хорошо отдохнуть со своими друзьями или тупыми рандомами после школы или завода.

+
+

У нас обширный список серверов, на котором стоят уникальные карты, сделанные картоделом РУССКИЙ ПУТИН

+
+

Прекрасные плагины недающие скучать и написанные таким же "прекрасным" кодером ОТДЫХАЕМ

+
+

Посмотреть наши смешные до усрачки посты можно в Дискорде или группе ВК

+ +
+

Зачем ждать? Заходи сейчас! Если админ не разлил пиво на сервера

+
+
+
+
+
+ +
+
+ +
+
+
+
+
+ ЗАГРУЖАЕМ ЗАГРУЖАЕМ +
+
+
+
+

Спасибо что продолжаете играть на фактах 13!

+
-
+
+ +
- + + - - - - + + + + \ No newline at end of file diff --git a/shit_style.css b/shit_style.css deleted file mode 100644 index ed51bf3..0000000 --- a/shit_style.css +++ /dev/null @@ -1,39 +0,0 @@ -@font-face { - font-family: tf2build; - src: url('tf2build.ttf'); -} - -h1,h2,h3,h4,h5,h6 { - font-family: tf2build; - color: #333333; -} - -a { - font-family: tf2build; -} - -.nav-pills { - background-color: #d86800; -} - -.nav-link { - color: #000000; -} - -.nav-pills > li > a:hover { - color: #5a5a5a; -} - -.slideshow -{ - position: relative; - width: 350px; - height: 150px; -} -.slideshow img -{ - position: absolute; - width: 350px; - height: 150px; - z-index:-1; -} \ No newline at end of file diff --git a/site_content/css/shit_style.css b/site_content/css/shit_style.css new file mode 100644 index 0000000..9b7cc3a --- /dev/null +++ b/site_content/css/shit_style.css @@ -0,0 +1,74 @@ +@font-face { + font-family: tf2build; + src: url('site_content/fonts/tf2build.ttf'); +} + +@font-face { + font-family: tf2secondary; + src: url('site_content/fonts/tf2secondary.ttf'); +} + +h1,h2,h3,h4,h5,h6 { + font-family: tf2build; + color: #333333; +} + +p { + font-family: tf2secondary; +} + +a { + font-family: tf2build; +} + +.nav-pills { + background-color: #d86800; +} + +.nav-link { + color: #000000; +} + +.nav-pills > li > a:hover { + color: #5a5a5a; +} + +.slideshow +{ + position: relative; + width: 350px; + height: 150px; +} +.slideshow img +{ + position: absolute; + width: 350px; + height: 150px; + z-index:-1; +} + +.current-profile-text { + display: inline; + font-family: tf2secondary; +} + +.current-profile-bigtext { + font-size: 1.7rem; +} + +.current-profile-text-color-alarm { + color: red; +} + +.current-profile-text-color-maybe { + color: yellow; +} + +.current-profile-text-color-normal { + color: green; +} + +.vip-card-text { + color: whitesmoke; + text-align: right; +} \ No newline at end of file diff --git a/site_content/favicon.ico b/site_content/favicon.ico new file mode 100644 index 0000000..828b512 Binary files /dev/null and b/site_content/favicon.ico differ diff --git a/site_content/fonts/tf2.ttf b/site_content/fonts/tf2.ttf new file mode 100644 index 0000000..f62cb3c Binary files /dev/null and b/site_content/fonts/tf2.ttf differ diff --git a/tf2build.ttf b/site_content/fonts/tf2build.ttf similarity index 100% rename from tf2build.ttf rename to site_content/fonts/tf2build.ttf diff --git a/site_content/fonts/tf2secondary.ttf b/site_content/fonts/tf2secondary.ttf new file mode 100644 index 0000000..63f6f84 Binary files /dev/null and b/site_content/fonts/tf2secondary.ttf differ diff --git a/site_content/images/background/hasbik_dance.jpg b/site_content/images/background/hasbik_dance.jpg new file mode 100644 index 0000000..4fe7da7 Binary files /dev/null and b/site_content/images/background/hasbik_dance.jpg differ diff --git a/site_content/images/characters/engi_n.png b/site_content/images/characters/engi_n.png new file mode 100644 index 0000000..6777372 Binary files /dev/null and b/site_content/images/characters/engi_n.png differ diff --git a/site_content/images/characters/mgesold.png b/site_content/images/characters/mgesold.png new file mode 100644 index 0000000..fc10883 Binary files /dev/null and b/site_content/images/characters/mgesold.png differ diff --git a/site_content/images/characters/pootisd.png b/site_content/images/characters/pootisd.png new file mode 100644 index 0000000..8f9e0d1 Binary files /dev/null and b/site_content/images/characters/pootisd.png differ diff --git a/site_content/images/characters/pyro.png b/site_content/images/characters/pyro.png new file mode 100644 index 0000000..b745e37 Binary files /dev/null and b/site_content/images/characters/pyro.png differ diff --git a/site_content/images/characters/toilet.png b/site_content/images/characters/toilet.png new file mode 100644 index 0000000..87e16bb Binary files /dev/null and b/site_content/images/characters/toilet.png differ diff --git a/site_content/images/gameplay/gameplay_1.jpg b/site_content/images/gameplay/gameplay_1.jpg new file mode 100644 index 0000000..c8e0985 Binary files /dev/null and b/site_content/images/gameplay/gameplay_1.jpg differ diff --git a/site_content/images/gameplay/gameplay_2.jpg b/site_content/images/gameplay/gameplay_2.jpg new file mode 100644 index 0000000..dd83cbe Binary files /dev/null and b/site_content/images/gameplay/gameplay_2.jpg differ diff --git a/site_content/images/gameplay/gameplay_3.jpg b/site_content/images/gameplay/gameplay_3.jpg new file mode 100644 index 0000000..e3b7d86 Binary files /dev/null and b/site_content/images/gameplay/gameplay_3.jpg differ diff --git a/site_content/images/logo/discord.png b/site_content/images/logo/discord.png new file mode 100644 index 0000000..9ec569d Binary files /dev/null and b/site_content/images/logo/discord.png differ diff --git a/site_content/images/logo/qiwi.png b/site_content/images/logo/qiwi.png new file mode 100644 index 0000000..8850c6b Binary files /dev/null and b/site_content/images/logo/qiwi.png differ diff --git a/site_content/images/logo/qiwi.svg b/site_content/images/logo/qiwi.svg new file mode 100644 index 0000000..e90d785 --- /dev/null +++ b/site_content/images/logo/qiwi.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/site_content/images/logo/steam.png b/site_content/images/logo/steam.png new file mode 100644 index 0000000..754c39c Binary files /dev/null and b/site_content/images/logo/steam.png differ diff --git a/site_content/images/logo/vk.png b/site_content/images/logo/vk.png new file mode 100644 index 0000000..d7a0b65 Binary files /dev/null and b/site_content/images/logo/vk.png differ diff --git a/site_content/images/mge_brat.gif b/site_content/images/mge_brat.gif new file mode 100644 index 0000000..7409631 Binary files /dev/null and b/site_content/images/mge_brat.gif differ diff --git a/site_content/images/rules/abuse.jpg b/site_content/images/rules/abuse.jpg new file mode 100644 index 0000000..e2af555 Binary files /dev/null and b/site_content/images/rules/abuse.jpg differ diff --git a/site_content/images/rules/abuse_vip.jpg b/site_content/images/rules/abuse_vip.jpg new file mode 100644 index 0000000..ce9795b Binary files /dev/null and b/site_content/images/rules/abuse_vip.jpg differ diff --git a/site_content/images/rules/ads.jpg b/site_content/images/rules/ads.jpg new file mode 100644 index 0000000..c95af7a Binary files /dev/null and b/site_content/images/rules/ads.jpg differ diff --git a/site_content/images/rules/bug_use.jpg b/site_content/images/rules/bug_use.jpg new file mode 100644 index 0000000..71cb026 Binary files /dev/null and b/site_content/images/rules/bug_use.jpg differ diff --git a/site_content/images/rules/cheats.jpg b/site_content/images/rules/cheats.jpg new file mode 100644 index 0000000..c96c9cf Binary files /dev/null and b/site_content/images/rules/cheats.jpg differ diff --git a/site_content/images/rules/make_everyone.jpg b/site_content/images/rules/make_everyone.jpg new file mode 100644 index 0000000..a51c4be Binary files /dev/null and b/site_content/images/rules/make_everyone.jpg differ diff --git a/site_content/images/vip/VIP_1_DAY.jpg b/site_content/images/vip/VIP_1_DAY.jpg new file mode 100644 index 0000000..e4eaf98 Binary files /dev/null and b/site_content/images/vip/VIP_1_DAY.jpg differ diff --git a/site_content/images/vip/VIP_1_MOUNTH.jpg b/site_content/images/vip/VIP_1_MOUNTH.jpg new file mode 100644 index 0000000..eded584 Binary files /dev/null and b/site_content/images/vip/VIP_1_MOUNTH.jpg differ diff --git a/site_content/images/vip/VIP_7_DAYS.jpg b/site_content/images/vip/VIP_7_DAYS.jpg new file mode 100644 index 0000000..b614512 Binary files /dev/null and b/site_content/images/vip/VIP_7_DAYS.jpg differ diff --git a/site_content/js/API.js b/site_content/js/API.js new file mode 100644 index 0000000..058067b --- /dev/null +++ b/site_content/js/API.js @@ -0,0 +1,288 @@ +/* +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+*/ + +$(async function() { + $(document).on("keypress", "input", function (e) { + var code = e.keyCode || e.which; + if (code == 13) { + e.preventDefault(); + return false; + } + }); + + FillCharacters(); + FillRules(); + await CheckApi(); + await RequestAPI(); + + if(window.location.href.endsWith("#RulesSection")){ + document.getElementById('Rules_Button').click(); + } + + if(window.location.href.endsWith("#VIPSection")){ + document.getElementById('Tab_VIP_Button').click(); + } +}); + +let servers_active = ` +
+
+
+
Где сейчас играют карлики
+
+
+` + +let servers_inactive = ` +
+
+
+
Пустую без дела
+
+
+` + +let servers_dead = ` +
+
+
+
Временно отключены
+
+
+` + +let invalid_captcha = ` +
+
+

ДЯДЯ ТЫ ДУРАЧЕК, КАПЧА НЕПРАВИЛЬНАЯ, ЖМИ СНОВА НА КНОПКУ

+
+` + +function generate_server_card_div(data){ + return ` +
+
+ ${data.name} +
+ +

${data.name}

+

${data.player_count}/${data.max_players}

+

${data.human_name}

+
+
+
+` +} + +async function CheckApi() { + let api_request_time = (new Date).getTime(); + await fetch("https://tf2.pblr-nyk.pro/api", {headers: {'Cache-Control':'no-cache'}}) + .then(res => res.text()) + .then(res => {api_request_time = (new Date).getTime() - api_request_time}) + .catch(err => {api_request_time = 0}); + //////////////////////////////////////////// + let player_api_request_time = (new Date).getTime(); + await fetch("https://tf2.pblr-nyk.pro/player_api/v1/ping", {headers: {'Cache-Control':'no-cache'}}) + .then(res => res.text()) + .then(res => {player_api_request_time = (new Date).getTime() - player_api_request_time}) + .catch(err => {player_api_request_time = 0}); + //////////////////////////////////////////// + FillFooter("", api_request_time, player_api_request_time); +} + +async function RequestAPI() { + //let api_request_time = (new Date).getTime(); + //, {headers: {'Cache-Control':'no-cache'}} + await fetch("https://tf2.pblr-nyk.pro/api/stats", {headers: {'Cache-Control':'no-cache'}}) + .then(res => res.json()) + .then(res => { + FillServices(res); + document.getElementById("current_players").innerHTML = res.servers.statistic.player_now; + document.getElementById("max_per_day").innerHTML = res.servers.statistic.player_max; + document.getElementById("servers_works").innerHTML = res.servers.statistic.working_servers + '/' + res.servers.statistic.total_servers; + document.getElementById("uniq_day_players").innerHTML = res.uniq.day; + document.getElementById("uniq_month_players").innerHTML = res.uniq.month; + document.getElementById("uniq_year_players").innerHTML = res.uniq.year; + document.getElementById("ServersSectionLastUpdate").innerHTML = `Информация обновлена: ${UNIX2TIMESTAMP(res.updates.servers)}`; + document.getElementById("AboutSection_discord").innerHTML = `${res.discord_users} ГЕЙмеров `; + document.getElementById("AboutSection_vk").innerHTML = `${res.vk_users} Участников `; + document.getElementById("Section_VIP_users").innerHTML = `${res.vip_players} карликов уже имеют випку!`; + + let active = false; + let inactive = false; + let dead = false; + + let insert_type = "beforeend"; + //active servers + let sorted_servers = Object.keys(res.servers).sort((a, b) => { + return res.servers[b].player_count - res.servers[a].player_count; + }); + //console.log(sorted_servers); + for (let sort_id in sorted_servers) { + let server = sorted_servers[sort_id]; + if (server == `statistic`) {continue;} + if(res.servers[server].status == true && res.servers[server].player_count > 0) { + if(!active) { + document.getElementById("servers_list_v2").insertAdjacentHTML(insert_type,servers_active) + active = true; + } + document.getElementById("servers_list_v2").insertAdjacentHTML(insert_type,generate_server_card_div(res.servers[server])); + } + else if (res.servers[server].status == true && res.servers[server].player_count == 0) { + if(!inactive) { + document.getElementById("servers_list_v2").insertAdjacentHTML(insert_type,servers_inactive) + inactive = true; + } + document.getElementById("servers_list_v2").insertAdjacentHTML(insert_type,generate_server_card_div(res.servers[server])); + } + } + + for (let sort_id in sorted_servers) { + let server = sorted_servers[sort_id]; + if (res.servers[server].status == false) { + if(!dead) { + document.getElementById("servers_list_v2").insertAdjacentHTML(insert_type,servers_dead) + dead = true; + } + document.getElementById("servers_list_v2").insertAdjacentHTML(insert_type,generate_server_card_div(res.servers[server])); + } + } + }).catch((err) => { + console.log(err); + //FillFooter("", 0, 0); + }); + + //FillFooter("", api_request_time, ""); +} + +function FillFooter(data, api_time, player_api_time){ + const text = `

{text}

`; + const text_bad = `

{text}

`; + const text_good = `

{text}

`; + + while(document.getElementById("Footer_Text").firstChild) { + document.getElementById("Footer_Text").lastChild.remove(); + } + + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text.replace("{text}", `2018-${(new Date()).getFullYear()} | `)); + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text.replace("{text}", `Факты 13 | `)); + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text.replace("{text}", `JS: `)); + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text_good.replace("{text}", `on`)); + + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text.replace("{text}", ` | API: `));//${api_time} ms + if(api_time == 0) { + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text_bad.replace("{text}", `not work`)); + } else { + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text_good.replace("{text}", `${api_time} ms`)); + } + + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text.replace("{text}", ` | Player API: `)); + if(player_api_time == 0) { + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text_bad.replace("{text}", `not work`)); + } else { + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text_good.replace("{text}", `${player_api_time} ms`)); + } +} + +function FillServices(data) { + const ping_time = 90; + const text = `

`; + + console.log(`${((new Date()).getTime() / 1000) - data.updates.qiwi_bot}`); + console.log(`${((new Date()).getTime() / 1000) - data.updates.steam_bot}`); + + if(data.updates.qiwi_bot && ((new Date()).getTime() / 1000) - data.updates.qiwi_bot < ping_time) { + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text.replace("{service_id}","Footer_Services_QIWI")); + } + + if(data.updates.steam_bot && ((new Date()).getTime() / 1000) - data.updates.steam_bot < ping_time) { + document.getElementById("Footer_Text").insertAdjacentHTML("beforeend", text.replace("{service_id}","Footer_Services_STEAM")); + } +} + +function UNIX2TIMESTAMP(unix) { + return (new Date((unix + 3600 * 3) * 1000)).toGMTString().replace("GMT", "MSK"); +} + +function FillCharacters() { + let CharactersArray = new Array( + ["site_content/images/characters/pootisd.png","site_content/sounds/pootis.mp3", ""], + ["site_content/images/characters/pyro.png","site_content/sounds/alertmgs.mp3", ""], + ["site_content/images/characters/toilet.png","site_content/sounds/puk.mp3", ""], + ["site_content/images/characters/engi_n.png","site_content/sounds/nigger.mp3", ""], + ["site_content/images/characters/mgesold.png","site_content/sounds/soldier_laughevil03.mp3", ""] + ); + + let InjectCharacter = ``; + + document.getElementById("Main_FunnyСharacters").insertAdjacentHTML("beforeend", `
`); + for (const element in CharactersArray) { + InjectCharacter = `
`; + if(CharactersArray[element][2]){ + document.getElementById(CharactersArray[element][2]).insertAdjacentHTML("beforeend", `
`); + document.getElementById(CharactersArray[element][2]).insertAdjacentHTML("beforeend", InjectCharacter); + document.getElementById(CharactersArray[element][2]).insertAdjacentHTML("beforeend", `
`); + } + document.getElementById("Main_FunnyСharacters").insertAdjacentHTML("beforeend", InjectCharacter); + } + document.getElementById("Main_FunnyСharacters").insertAdjacentHTML("beforeend", `
`); + +} + +function FillRules() { + const rules = new Array( + {"name":"Читы", "about":"Бан навсегда сука", "image":"site_content/images/rules/cheats.jpg"}, + {"name":"Реклама серверов", "about":"Кроме мге, бан навсегда сука", "image":"site_content/images/rules/ads.jpg"}, + {"name":"Багоюз", "about":"Пиздец тебе, бан навсегда", "image":"site_content/images/rules/bug_use.jpg"}, + {"name":"Абуз команды !mir", "about":"Блокировка дверей, открытие спавна и т.д", "image":"site_content/images/rules/abuse.jpg"}, + {"name":"Абуз випки на сервере", "about":"Модеры сам решат как и за что", "image":"site_content/images/rules/abuse_vip.jpg"}, + {"name":"Делай короче чё хочешь", "about":":troll_face:", "image":"site_content/images/rules/make_everyone.jpg"} + ) + + let card = ``; + //const shift = ``;//
`; + //let counter = 1 + + + for(const rule in rules) { + //if(counter == 1){document.getElementById("Rules_List").insertAdjacentHTML("beforeend", shift);} + card = ` +
+
+ +
+
+
${rules[rule].name}
+
+

${rules[rule].about}

+
+
+
+
` + document.getElementById("Rules_List").insertAdjacentHTML("beforeend", card); + + //counter++; + //if(counter == 4){counter=1;} + } +} + + \ No newline at end of file diff --git a/SlideShow.js b/site_content/js/BackgroundSlides.js similarity index 55% rename from SlideShow.js rename to site_content/js/BackgroundSlides.js index 419222a..b6fab13 100644 --- a/SlideShow.js +++ b/site_content/js/BackgroundSlides.js @@ -1,29 +1,21 @@ $(async function() { //вам смешно,а мне нет + ChangeBackgoundImageRandom(); +}); + +function ChangeBackgoundImageRandom() { var images=new Array( 'https://sun9-54.userapi.com/impf/L4gabJSytEz1NpTNLMMY4H2I0Ii2G8BZWLF43w/qYSHLfNsb7s.jpg?size=1920x1080&quality=96&proxy=1&sign=dd5b204676b475018a320a3ea4da605d&type=album', 'https://sun9-47.userapi.com/impf/W24ZlAJv_hRsfSWo52xJuQxiYsLIBACpZrZLZQ/PloSNn9b2mQ.jpg?size=1920x1080&quality=96&proxy=1&sign=1fd9c7ede5a4824442b79bff28bcc928&type=album', 'https://sun9-56.userapi.com/impf/gumag_-zFNTd9kxmAlDnX12T1kOzx10Nel8NBg/cQlqHiyWdxQ.jpg?size=1920x1080&quality=96&proxy=1&sign=1c348f58c41e5ebc19e49e6bd9535998&type=album'); - var nextimage=0; - return; - - doSlideshow(); + ChangeBackgoundImage(images[getRandomInt(images.length-1)]); +} + +function getRandomInt(max) { + return Math.floor(Math.random() * max); + } - function doSlideshow() - { - if($('.slideshowimage').length!=0) - { - $('.slideshowimage').fadeOut(500,function(){slideshowFadeIn();$(this).remove()}); - } - else - { - slideshowFadeIn(); - } - } - function slideshowFadeIn() - { - $('.slideshow').prepend($('').fadeIn(500,function(){setTimeout(doSlideshow,1000);})); - if(nextimage>=images.length) - nextimage=0; - } -}); \ No newline at end of file +function ChangeBackgoundImage(url) { + let sample = `linear-gradient(to bottom, rgba(46, 13, 3, 0), rgba(34, 10, 3, 0.46)),url('${url}')` + document.getElementById('main_container').style.backgroundImage = sample; +} \ No newline at end of file diff --git a/site_content/js/Player_API.js b/site_content/js/Player_API.js new file mode 100644 index 0000000..287f2b1 --- /dev/null +++ b/site_content/js/Player_API.js @@ -0,0 +1,467 @@ +$(async function() { + await CheckCurrentUser(); +}) + +async function CheckCurrentUser(){ + if(!check_cookie_name("steam64")){return;} + await fetch("https://tf2.pblr-nyk.pro/player_api/v1/current_user", {credentials:"same-origin", headers: {'Cache-Control':'no-cache'}}) + .then(response => response.json()) + .then(response => { + if("error" in response) { + console.log(response.error); + } else { + var current_user = document.getElementById("Header_CurrentUser"); + var current_ban = document.getElementById("Header_CurrentBan"); + var logout = document.getElementById("Header_Logout"); + current_user.href = "#"; + if (response.ban) { + current_user.innerHTML = `Привет ${response.steam_data.nickname}! У меня хорошие новости!` + current_ban.innerHTML = "У тебя БАН! (нажми чтоб посмотреть его)"; + } else { + current_user.innerHTML = `Привет ${response.steam_data.nickname}!` + } + logout.innerHTML = ` (нажми чтоб выйти)` + } + }) +} + +function check_cookie_name(name) { + var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); + if (match && match[2] != "None") {return true;} + else {return false;} +} + +let captcha_error_div = `
пук
` +let ProfileLinkError_div = `
Долбаеб введи ссылку на профиль!
` +console.log("puk"); +//buttonCheckProfile + +$('#check_captcha_close_button').click(async function(ev) { + ev.preventDefault(); + $('#CaptchaModalHandler').modal('hide'); +}); + +document.getElementById("check_profile_submit_button").addEventListener("keypress", async function(ev){ + ev.preventDefault(); + console.log(ev.key); + return false; +}); + +$('#check_profile_submit_button').click(async function(ev) { + //ev.preventDefault(); + console.log("check profile button presed"); + if (document.getElementById("ProfileLinkIsNotFull")) { + document.getElementById("ProfileLinkIsNotFull").remove(); + } + + if (!document.forms["formProfileSectionInput"].steamurl.value.startsWith("https://")) { + document.getElementById("formProfileSectionInputHelpText").insertAdjacentHTML("beforeend",ProfileLinkError_div); + //document.getElementById("profile").innerHTML = "Долбаеб введи ссылку на профиль!"; + } else { + $('#CaptchaModalHandler').modal('show'); + } + return false; +}); + +$(document).on("show.bs.modal", "#CaptchaModalHandler", async function () { + console.log("setup captcha modal"); + let form_url = document.forms["formProfileSectionInput"]; + let form_captcha = document.forms["formCaptchaHandler"]; + let captcha_id; + + await RefreshCaptcha(); + async function RefreshCaptcha() { + await fetch("https://tf2.pblr-nyk.pro/player_api/v1/captcha", {method:'POST'}) + .then(response => response.json()) + .then(response => { + console.log("captcha id: " + response.id); + captcha_id = response.id; + form_captcha.captcha_img.src = "https://tf2.pblr-nyk.pro/player_api/v1/captcha?id=" + response.id; + }); + } + + $('#check_captcha_submit_button').click(async function (ev) { + //ev.preventDefault(); + if ($('#ModalCaptchaErrorText')) { $('#ModalCaptchaErrorText').remove();} + await CheckAndFill(ev); + return false; + }); + + async function CheckAndFill(event) { + if(form_captcha.captcha.value.length == 0){ + if(!document.getElementById("captcha_error")){ + document.getElementById("InvalidCaptchaTextArea").insertAdjacentHTML("beforeend",captcha_error_div); + } + document.getElementById("captcha_error").innerHTML = "Капчу введи!"; + return; + } + + $("#check_captcha_close_button").prop("disabled", true); + $("#check_captcha_submit_button").prop("disabled", true); + if(document.getElementById("current_profile")){ + document.getElementById("current_profile").remove(); + } + console.log(new Date()); + await fetch("https://tf2.pblr-nyk.pro/player_api/v1/player?steam_url=" + form_url.steamurl.value + "&captcha_id=" + captcha_id + "&captcha_code=" + form_captcha.captcha.value) + .then(response => response.json()) + .then(response => { + $("#check_captcha_close_button").removeAttr("disabled"); + $("#check_captcha_submit_button").removeAttr("disabled"); + ///////////////////////////////////////////////////////// + if ("error" in response) { + console.log(`id: ${captcha_id} error: ${response}`); + if(!document.getElementById("captcha_error")){ + document.getElementById("InvalidCaptchaTextArea").insertAdjacentHTML("beforeend",captcha_error_div); + } + if (response.error == "incorrect captcha") { + document.getElementById("captcha_error").innerHTML = "Капча невалидна, попробуй снова!"; + } else { + document.getElementById("captcha_error").innerHTML = "Ошибка: " + response.error; + } + RefreshCaptcha(); + } else if ("detail" in response) { + if(!document.getElementById("captcha_error")){ + document.getElementById("InvalidCaptchaTextArea").insertAdjacentHTML("beforeend",captcha_error_div); + } + document.getElementById("captcha_error").innerHTML = "Ошибка: " + response.detail[0].msg; + RefreshCaptcha(); + } else { + console.log(response); + document.getElementById("profile_stats").insertAdjacentHTML("beforeend",FillPlayerInfo(response)); + ReconstructVipSection(response); + $('#check_captcha_close_button').click(); + } + form_captcha.captcha.value = ''; + }); +}}); + +function CalculateVipEndDate(permition) { + return new Date((permition["UNIX_TIMESTAMP(`reg_date`)"] + permition.amount) * 1000); +} + +function FillPlayerInfo(data) { + + let player_ban_div = ""; + + if(data.ban) { + let player_ban_length; + if (data.ban.ban_length > 0){ + let player_ban_end = new Date((new Date(data.ban.timestamp)).getTime() + (data.ban.ban_length * 60 * 1000)).toLocaleString(); + player_ban_length = `

Дата окончания:

${player_ban_end}

` + } else { + player_ban_length = '

Дата окончания:

Навсегда в бане

' + } + + player_ban_div = ` +
+
+

Статус бана:

+

Забанен

+
+

ID бана:

+

${data.ban.id}

+
+

Причина бана:

+

${data.ban.ban_reason}

+
+

Кто выдал бан:

+

${data.ban.banned_by ? data.ban.banned_by : 'bot'}

+ + + + + +
+ ${player_ban_length} +
+ ` + } + + let player_permition_div; + let player_permition_length = ""; + + let player_permition_continue = `(купить)`; + + if(data.permition) { + let player_permition_status; + if (data.permition.status == "VIP"){ + let player_permition_end_date = `бесконечны`; + let player_permition_end_date_color_status = `current-profile-text-color-normal`; + + if(data.permition.amount){ + player_permition_continue = `(продлить)`; + let date = CalculateVipEndDate(data.permition);// new Date((data.permition["UNIX_TIMESTAMP(`reg_date`)"] + data.permition.amount) * 1000); + player_permition_end_date = date.toLocaleString(); + document.getElementById("Modal_SelectPayMethod_CheckVIP_EndDate").innerHTML = `До: ${player_permition_end_date}`; + if(date.getTime() - new Date().getTime() > 604800000){ + player_permition_end_date_color_status = `current-profile-text-color-normal`; + } else if (date.getTime() - new Date().getTime() > 259200000){ + player_permition_end_date_color_status = `current-profile-text-color-maybe`; + } else { + player_permition_end_date_color_status = `current-profile-text-color-alarm`; + } + } + + player_permition_length = ` +
+

Дата окончания ${data.permition.status}:

${player_permition_end_date}

+ `; + + player_permition_status = ` +

Статус ${data.permition.status}:

+

Имеется

${player_permition_continue} + ` + + + } else { + player_permition_status = ` +

Статус ${data.permition.status}:

+

Имеется

+ ` + } + + document.getElementById("Modal_SelectPayMethod_CheckVIP_Status").innerHTML = "(имеется)"; + document.getElementById("Modal_SelectPayMethod_CheckVIP_Status").style += "color: green;"; + + player_permition_div = ` +
+
+ ${player_permition_status} + ${player_permition_length} +
+
+ ` + } else { + player_permition_div = ` +
+
+

Статус VIP:

+

Отсутствует

${player_permition_continue} +
+
+ `; + } + + let player_statistic_div = ""; + let total_gametime = 0; + /* +
+
+

Статистика карт

+
+

zavod_3_jirikupdate - 1 день 2:19:13

+
+

zavod_3_jirik - 1 день 2:19:13

+
+

zavod_3 - 1 день 2:19:13

+
+ */ + if(data.gametime){ + player_statistic_div = `
+
+

Статистика карт

+ `; + + for(const srv in data.gametime) { + for(const map_name in data.gametime[srv]){ + // + // + let map = map_name.replace("workshop/", "").split(".ugc", 1)[0]; + player_statistic_div += `

${map} - ${UNIX2FACTI_TIME(data.gametime[srv][map_name])}

`; + total_gametime += data.gametime[srv][map_name]; + } + } + player_statistic_div += "
" + } + + let player_data_div = ` +
+
+
+
+
+
+
+
+
+
+

${data.steam_data.nickname}

+ ${player_ban_div} + ${player_permition_div} + ${player_statistic_div} +
+
+
+
+ +

+ +

Наиграно: ${UNIX2FACTI_TIME(total_gametime)}

+
+
+ +
+
+
+
+
+ ` + return player_data_div; +} + +function UNIX2FACTI_TIME(u_time){ + const divmod = (x, y) => [Math.floor(x / y), x % y]; + + let s = divmod(u_time, 60)[1]; + let m = divmod(u_time, 60)[0]; + let h = divmod(m, 60)[0]; + m = divmod(m, 60)[1]; + let d = divmod(h, 24)[0]; + h = divmod(h, 24)[1]; + //бля простите я тупой + + if(!s&!m&!h&!d){ + return "не играл"; + } + + let time = `${h>9?h:'0'+h}:${m>9?m:'0'+m}:${s>9?s:'0'+s}`; + + if (!d) { + return time; + } else if (d<2){ + return `${d} день ${time}`; + } else { + return `${d} дней ${time}`; + } +} + +function ReconstructVipSection(data){ + $('#Modal_SelectPayMethod_Close').click(async function(ev) { + ev.preventDefault(); + $('#Modal_SelectPayMethod').modal('hide'); + }); + + $('#Modal_SelectPayMethod_CheckVIP').click(async function(ev) { + ev.preventDefault(); + await fetch("https://tf2.pblr-nyk.pro/player_api/v1/player/permitions?steam_url=" + document.forms["formProfileSectionInput"].steamurl.value) + .then(response => response.json()) + .then(response => { + if(response.permition){ + document.getElementById("Modal_SelectPayMethod_CheckVIP_Status").innerHTML = "(имеется)"; + document.getElementById("Modal_SelectPayMethod_CheckVIP_Status").style += "color: green;"; + if(response.permition.amount){ + document.getElementById("Modal_SelectPayMethod_CheckVIP_EndDate").innerHTML = `До: ${CalculateVipEndDate(response.permition).toLocaleString()}`; + } else { + document.getElementById("Modal_SelectPayMethod_CheckVIP_EndDate").innerHTML = `бесконечность не предел`; + } + } else { + document.getElementById("Modal_SelectPayMethod_CheckVIP_Status").innerHTML = "(отсутствует)"; + document.getElementById("Modal_SelectPayMethod_CheckVIP_Status").style += "color: red;"; + document.getElementById("Modal_SelectPayMethod_CheckVIP_EndDate").innerHTML = `Время проверки: ${new Date().toLocaleString()}`; + } + }); + }); + + //document.getElementById("Section_VIP_check_profile")?document.getElementById("Section_VIP_check_profile").remove():null; + while(document.getElementById("Section_VIP_buttons").firstChild) { + document.getElementById("Section_VIP_buttons").lastChild.remove(); + } + + const STEAM_TRADE = "https://steamcommunity.com/tradeoffer/new/?partner=47239992&token=8gNFVl7h"; + const QIWI_TRADE = "https://qiwi.com/payment/form/99?currency=643&amount=(AMOUNT)&extra%5B%27comment%27%5D=(COMMENT)&extra%5B%27account%27%5D=79207516287&blocked%5B0%5D=sum&blocked%5B1%5D=account&blocked%5B2%5D=comment"; + //STEAM_0%3A0%3A54354355 + //"https://qiwi.com/payment/form/99?currency=643&amount=(AMOUNT)&extra%%5B%%27comment%%27%%5D=(COMMENT)&extra%%5B%%27account%%27%%5D=%%2B79207516287&blocked%%5B0%%5D=account"; + + document.getElementById("Modal_SelectPayMethod_ProfileLink").href = data.steamids.community_url; + document.getElementById("Modal_SelectPayMethod_ProfileName").innerHTML = "Вип будет выдан: " + data.steam_data.nickname; + + let price_array = new Array( + ["VIP (1 месяц)", 150, "1 ключ", "site_content/images/vip/VIP_1_MOUNTH.jpg", "month"], + ["VIP (1 неделя)", 75, "20 рефов", "site_content/images/vip/VIP_7_DAYS.jpg", "seven_day"], + ["VIP (1 день)", 20, "5 рефов", "site_content/images/vip/VIP_1_DAY.jpg", "day"] + ); + + let vip_select; + for(const select in price_array) { + vip_select = ` +
+
+ ${price_array[select][0]} +
+ +
+
${price_array[select][0]}
+
+
${price_array[select][1]} Рублей
+
${price_array[select][2]}
+
+
+
+
+ ` + document.getElementById("Section_VIP_buttons").insertAdjacentHTML("beforeend", vip_select); + $(`#Section_VIP_buttons_${price_array[select][4]}`).click(async function(ev) { + ev.preventDefault(); + document.getElementById('Modal_SelectPayMethod_QIWI_Button').href = QIWI_TRADE.replace("(AMOUNT)", price_array[select][1]).replace("(COMMENT)",data.steamids.steam2.replace(":","%3A")); + document.getElementById('Modal_SelectPayMethod_QIWI_Value').innerHTML = `${price_array[select][1]} Рублей`; + document.getElementById('Modal_SelectPayMethod_STEAM_Button').href = STEAM_TRADE; + document.getElementById('Modal_SelectPayMethod_STEAM_Value').innerHTML = price_array[select][2]; + $('#Modal_SelectPayMethod').modal('show'); + return false; + }); + } +} + +/* +//Section_VIP_buttons + let vip_select_sample = ` +
+
+ Вип на месяц +
+ +
+
VIP (1 месяц)
+
+
150 Рублей
+
1 Ключ
+
+
+
+
+`; + + +$('#Section_VIP_buttons_month').click(async function(ev) { + ev.preventDefault(); + console.log("vip button presed"); + document.getElementById('Modal_SelectPayMethod_QIWI_Button').href = QIWI_TRADE; + document.getElementById('Modal_SelectPayMethod_QIWI_Value').innerHTML = "150 Рублей"; + document.getElementById('Modal_SelectPayMethod_STEAM_Button').href = STEAM_TRADE; + document.getElementById('Modal_SelectPayMethod_STEAM_Value').innerHTML = "1 Ключ"; + $('#Modal_SelectPayMethod').modal('show'); + return false; +}); +*/ + +//secret egg +let konami_code = ""; +let activated = false; +document.addEventListener('keypress', (event) => { + if(activated){return;} + + konami_code += event.key; + if(konami_code.length == 6 || event.key == "-"){ + if(konami_code == "nigger"){ + activated = true; + document.getElementById("Tab_About").href="#SecretEgg"; + $('.nav-pills a[href="#SecretEgg"]').tab('show'); + (new Audio("site_content/sounds/sunboy-ledi-night-16.mp3")).play(); + document.getElementById("Nav_MenuButtons").remove() + ChangeBackgoundImage("site_content/images/background/hasbik_dance.jpg"); + //$('Tab_Secret_Egg').click(); + } + konami_code = "" + } +}); \ No newline at end of file diff --git a/SteamAuth.js b/site_content/js/SteamAuth.js similarity index 100% rename from SteamAuth.js rename to site_content/js/SteamAuth.js diff --git a/VIP_API.js b/site_content/js/VIP_API.js similarity index 75% rename from VIP_API.js rename to site_content/js/VIP_API.js index 8151f65..730fd88 100644 --- a/VIP_API.js +++ b/site_content/js/VIP_API.js @@ -1,7 +1,26 @@ $(async function() { await VIP_API(); }); +/* +const STEAM_TRADE = "https://steamcommunity.com/tradeoffer/new/?partner=47239992&token=8gNFVl7h"; +const QIWI_TRADE = "https://qiwi.com/payment/form/99?currency=643&amount=(AMOUNT)&extra%%5B%%27comment%%27%%5D=(COMMENT)&extra%%5B%%27account%%27%%5D=%%2B79207516287&blocked%%5B0%%5D=account"; +$('#Modal_SelectPayMethod_Close').click(async function(ev) { + ev.preventDefault(); + $('#Modal_SelectPayMethod').modal('hide'); +}); +*//* +$('#Section_VIP_buttons_month').click(async function(ev) { + ev.preventDefault(); + console.log("vip button presed"); + document.getElementById('Modal_SelectPayMethod_QIWI_Button').href = QIWI_TRADE; + document.getElementById('Modal_SelectPayMethod_QIWI_Value').innerHTML = "150 Рублей"; + document.getElementById('Modal_SelectPayMethod_STEAM_Button').href = STEAM_TRADE; + document.getElementById('Modal_SelectPayMethod_STEAM_Value').innerHTML = "1 Ключ"; + $('#Modal_SelectPayMethod').modal('show'); + return false; +});*/ +/* function generate_vip_table(steamid3) { let h_size = "h4" let table = ` @@ -92,7 +111,7 @@ function current_vip(permition) {
`; } - +*/ async function VIP_API() { } \ No newline at end of file diff --git a/site_content/sounds/alertmgs.mp3 b/site_content/sounds/alertmgs.mp3 new file mode 100644 index 0000000..640fec5 Binary files /dev/null and b/site_content/sounds/alertmgs.mp3 differ diff --git a/site_content/sounds/nigger.mp3 b/site_content/sounds/nigger.mp3 new file mode 100644 index 0000000..c53a48d Binary files /dev/null and b/site_content/sounds/nigger.mp3 differ diff --git a/site_content/sounds/pizdatchik.mp3 b/site_content/sounds/pizdatchik.mp3 new file mode 100644 index 0000000..a195974 Binary files /dev/null and b/site_content/sounds/pizdatchik.mp3 differ diff --git a/site_content/sounds/pootis.mp3 b/site_content/sounds/pootis.mp3 new file mode 100644 index 0000000..bc996ac Binary files /dev/null and b/site_content/sounds/pootis.mp3 differ diff --git a/site_content/sounds/puk.mp3 b/site_content/sounds/puk.mp3 new file mode 100644 index 0000000..b75c1fe Binary files /dev/null and b/site_content/sounds/puk.mp3 differ diff --git a/site_content/sounds/soldier_laughevil03.mp3 b/site_content/sounds/soldier_laughevil03.mp3 new file mode 100644 index 0000000..e6a47f4 Binary files /dev/null and b/site_content/sounds/soldier_laughevil03.mp3 differ diff --git a/site_content/sounds/sunboy-ledi-night-16.mp3 b/site_content/sounds/sunboy-ledi-night-16.mp3 new file mode 100755 index 0000000..7bd716c Binary files /dev/null and b/site_content/sounds/sunboy-ledi-night-16.mp3 differ