Merge pull request #66 from jelle619/master

Titan now displays an error when JavaScript isn't enabled
This commit is contained in:
Jeremy "EndenDragon" Zhang 2018-01-04 15:37:57 -08:00 committed by GitHub
commit 6c4b850669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 1 deletions

View File

@ -87,3 +87,7 @@ def signin_complete():
@embed.route("/login_discord")
def login_discord():
return redirect(url_for("user.login_authenticated", redirect=url_for("embed.signin_complete", _external=True)))
@embed.route("/noscript")
def noscript():
return render_template("noscript.html.j2")

View File

@ -8,6 +8,11 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/solarized-dark.min.css" integrity="sha256-90Y+fvi28WF+3jKH4tHEkoQ9WLeFKJjpvCPNOtU9ZvU=" crossorigin="anonymous" />
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/embedstyle.css') }}">
<link id="css-theme" type="text/css" rel="stylesheet" href="">
<!--Check whether JavaScript is enabled, otherwise redirect to error page-->
<noscript>
<meta http-equiv="refresh" content="0; URL={{ url_for("embed.noscript") }}">
</noscript>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
@ -381,4 +386,4 @@
}
</script>
</body>
</html>
</html>

File diff suppressed because one or more lines are too long