From 41642d0ddb30f3f2d6c46a6447474e1db248c411 Mon Sep 17 00:00:00 2001 From: Ilya Date: Sun, 13 Sep 2020 15:20:49 +0300 Subject: [PATCH] 1.S3 --- build/resources/main/resources/langs/ru.json | 20 ----------- .../main/resources/web/css/index.css | 0 .../resources/main/resources/web/js/index.js | 33 ------------------- .../main/resources/web/pages/Index.html | 30 ----------------- .../main/resources/web/pages/auth/Index.html | 19 ----------- 5 files changed, 102 deletions(-) delete mode 100644 build/resources/main/resources/langs/ru.json delete mode 100644 build/resources/main/resources/web/css/index.css delete mode 100644 build/resources/main/resources/web/js/index.js delete mode 100644 build/resources/main/resources/web/pages/Index.html delete mode 100644 build/resources/main/resources/web/pages/auth/Index.html diff --git a/build/resources/main/resources/langs/ru.json b/build/resources/main/resources/langs/ru.json deleted file mode 100644 index 1c47d2c..0000000 --- a/build/resources/main/resources/langs/ru.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "Links": { - "login": "Войти", - "logout": "Выйти", - "cp": "Панель управления" - }, - "Titles":{ - "auth": "Авторизация" - }, - "Words": { - "user": "Пользователь", - "password": "Пароль", - "Difficulty": { - "PEACEFUL": "Мирная", - "EASY": "Простая", - "NORMAL": "Нормальная", - "HARD": "Сложная" - } - } -} \ No newline at end of file diff --git a/build/resources/main/resources/web/css/index.css b/build/resources/main/resources/web/css/index.css deleted file mode 100644 index e69de29..0000000 diff --git a/build/resources/main/resources/web/js/index.js b/build/resources/main/resources/web/js/index.js deleted file mode 100644 index eb8a3c7..0000000 --- a/build/resources/main/resources/web/js/index.js +++ /dev/null @@ -1,33 +0,0 @@ -function onload() { - updatePageInfo(); -} - -function updatePageInfo() { - let header = document.getElementById("header"); - let stat = document.getElementById("stat"); - header.innerText = "Идёт загрузка..."; - stat.innerHTML = ""; - var xhr = new XMLHttpRequest(); - xhr.open('GET', '/json/mainData.json', true); - xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"); - xhr.send(); - xhr.onreadystatechange = function () { - if (xhr.readyState !== 4) return; - let data = JSON.parse(xhr.responseText); - header.innerText = "Мод запущен на сервере"; - appendLine(stat, ["Версия игры", data.MineV]); - appendLine(stat, ["Игроки", data.Players]); - } -} - -function appendLine(table,array) { - let tr = document.createElement("tr"); - for (let arrayKey in array) { - let td = document.createElement("td"); - td.innerText = array[arrayKey]; - tr.appendChild(td); - } - table.appendChild(tr); -} - -document.addEventListener("DOMContentLoaded", onload); \ No newline at end of file diff --git a/build/resources/main/resources/web/pages/Index.html b/build/resources/main/resources/web/pages/Index.html deleted file mode 100644 index b26b504..0000000 --- a/build/resources/main/resources/web/pages/Index.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - WebInfo - - - - - -
- - -
-
- - diff --git a/build/resources/main/resources/web/pages/auth/Index.html b/build/resources/main/resources/web/pages/auth/Index.html deleted file mode 100644 index 4d97101..0000000 --- a/build/resources/main/resources/web/pages/auth/Index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - <replace id="1"/> - - - -
-
-
- -
- - \ No newline at end of file