From 6113e8ed051fa5d0feec3ddc42a94725f2c3ac25 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Tue, 15 Jan 2019 13:52:15 +0200 Subject: [PATCH] code refactor. centralized js for functions. --- fight.php | 6 +++--- js/main.js | 3 +++ shop.php | 8 ++------ top_menu.php | 12 ++++++------ 4 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 js/main.js diff --git a/fight.php b/fight.php index 60dfd51..2c70e27 100644 --- a/fight.php +++ b/fight.php @@ -44,13 +44,13 @@ db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1 AND ` - + - + - +
diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..dd8bfc1 --- /dev/null +++ b/js/main.js @@ -0,0 +1,3 @@ +function leave(link) { + top.frames['main'].location = link +} \ No newline at end of file diff --git a/shop.php b/shop.php index 560975a..4110c24 100644 --- a/shop.php +++ b/shop.php @@ -213,15 +213,11 @@ if (!empty($_GET['buy'])) { - +

Государственный магазин

- ← выйти на Центральную площадь + ← выйти на Центральную площадь
diff --git a/top_menu.php b/top_menu.php index 71ff80b..94dbc03 100644 --- a/top_menu.php +++ b/top_menu.php @@ -27,12 +27,12 @@
- Анкета - Друзья - Инвентарь - Клан - Особые умения - Форум + Анкета + Друзья + Инвентарь + Клан + Особые умения + Форум
\ No newline at end of file