Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
Kicked page (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Mar 31, 2018
1 parent d0fbd76 commit 309a723
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion WebContent/js/events.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class EventsReceiver {
continue;
case "B&":
case "kk":
window.location = "/"; // TODO: Redirect to banned/kicked page
window.location = "/kicked/";
continue;
default:
for (const key in this.eventListeners) {
Expand Down
36 changes: 36 additions & 0 deletions WebContent/kicked/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kicked - PYX-Reloaded</title>
<link rel="icon" href="/css/images/favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="/css/images/icon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/css/images/icon-16x16.png">
<link rel="stylesheet" href="//unpkg.com/material-components-web@0.32.0/dist/material-components-web.min.css">
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500">
<link rel="stylesheet" href="/css/pyx-reloaded.css">
<script src="//cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script src="/js/theming.js"></script>
</head>
<body class="mdc-typography">
<div class="page-content">
<header class="mdc-toolbar mdc-toolbar--fixed">
<div class="mdc-toolbar__row">
<section class="mdc-toolbar__section mdc-toolbar__section--align-start">
<span class="mdc-toolbar__title">Kicked - PYX Reloaded</span>
</section>
</div>
</header>

<main class="mdc-toolbar-fixed-adjust">
<h1 class="mdc-typography--display1 message" style="margin: 48px">You have been kicked from the server. In
the worst case you have also been banned. There's not much you can do to join the server again.</h1>
</main>
</div>

<script src="//unpkg.com/material-components-web@0.32.0/dist/material-components-web.min.js"></script>
<script>mdc.autoInit();</script>

</body>
</html>

0 comments on commit 309a723

Please sign in to comment.