diff --git a/index.html b/index.html deleted file mode 100644 index 2186b31..0000000 --- a/index.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - McStatus Panel Demo - - - - - - - - - - - - - -
-
-

McStatus Panel Demo

-
-
-
-
-
-
-
-

How to use?

-

Include the library:

-

<script type="text/javascript" src="https://g.breq.dev/mcstatus/mcstatus.js"><script>

-

Add a div with class="mc-status" and data-mc-server set:

-

<div class="mc-status" data-mc-server="[server IP]"></div>

-

Read more on GitHub ->

-
- - diff --git a/mcstatus.js b/mcstatus.js index c30b3e1..bc62292 100644 --- a/mcstatus.js +++ b/mcstatus.js @@ -2,7 +2,7 @@ function mcAddStylesheet() { var head = document.getElementsByTagName("head")[0]; var style = document.createElement("link"); - style.setAttribute("href", "https://g.breq.dev/mcstatus/mcstatus.css"); + style.setAttribute("href", "https://github.breq.dev/mcstatus/mcstatus.css"); style.setAttribute("type", "text/css"); style.setAttribute("rel", "stylesheet"); diff --git a/relay.py b/relay.py index 758f3ee..078c59f 100644 --- a/relay.py +++ b/relay.py @@ -1,4 +1,4 @@ -from flask import Flask, request, jsonify, send_file +from flask import Flask, request, jsonify, send_file, redirect from flask_cors import CORS, cross_origin from mcstatus import MinecraftServer @@ -102,7 +102,7 @@ def status(): @app.route("/") def index(): - return send_file("index.html") + return redirect("https://breq.dev/showcase/mcstatus/") @app.route("/mcstatus.css")