mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add error when JavaScript isn't enabled
This commit is contained in:
parent
8cd2d59230
commit
6a253971e7
@ -58,7 +58,11 @@
|
|||||||
|
|
||||||
<div class="main-panel">
|
<div class="main-panel">
|
||||||
|
|
||||||
<div class="warnings"></div>
|
<div class="warnings">
|
||||||
|
<div class="noscript-warning" style="padding: 20px; background-color: rgb(247, 151, 15);">
|
||||||
|
<div><strong>Warning: </strong>Crafty doesn't work properly when JavaScript isn't enabled!</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% end %}
|
{% end %}
|
||||||
@ -81,6 +85,9 @@
|
|||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.4.0/bootbox.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.4.0/bootbox.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
$('.noscript-warning').toggle();
|
||||||
|
|
||||||
//used to get cookies from browser - this is part of tornados xsrf protection - it's for extra security
|
//used to get cookies from browser - this is part of tornados xsrf protection - it's for extra security
|
||||||
function getCookie(name) {
|
function getCookie(name) {
|
||||||
var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
|
var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
|
||||||
|
Loading…
Reference in New Issue
Block a user