Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Improve noscript detection
Browse files Browse the repository at this point in the history
  • Loading branch information
evgfilim1 committed Aug 19, 2018
1 parent e119947 commit 6734959
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ $('.destructive-confirm').click(function (ev) {
ev.stopPropagation();
}
});

$('#noscript').hide();
12 changes: 5 additions & 7 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,13 @@
</div>
{% endfor %}
{% endif %}{% endwith %}
<noscript>
<div class="row">
<div class="col">
<div class="alert alert-danger" role="alert">
Для правильной работы сайта включите JavaScript в настройках браузера
</div>
<div id="noscript" class="row">
<div class="col">
<div class="alert alert-danger" role="alert">
Для правильной работы сайта включите JavaScript в настройках браузера
</div>
</div>
</noscript>
</div>
</div>
{% block content %}{% endblock %}
</div>
Expand Down

0 comments on commit 6734959

Please sign in to comment.