Show message when Javascript is turned off.

This commit is contained in:
Imran Sobir 2017-02-28 17:21:42 +05:00
parent e8db008671
commit 3e45f739fc

View File

@ -47,9 +47,22 @@ table {
text-align: center;
}
.error {
background-color: #ffbbbb;
border-radius: 5px;
font-weight: bold;
padding: 10px;
text-align: center;
width: 100%;
border: 1px solid #ff7777;
}
{% endblock %}
{% block content %}
<h1>Browsing history</h1>
<noscript>
<div class="error">Javascript is required to view this page.</div>
</noscript>
<div id="hist-container"></div>
<span id="eof" style="display: none">end</span>
<a href="#" onclick="loadHistory();"id="load">Show more</a>