Commit abba39a231a9d00568231176036ba947655cb045
1 parent
2c11b2e4
Exists in
master
and in
2 other branches
Included contrast script
Showing
1 changed file
with
14 additions
and
2 deletions
Show diff stats
users/templates/users/login.html
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 | <span >[{{LANGUAGE_CODE}}] </span> |
88 | 88 | |
89 | 89 | </a> |
90 | - <a href="{% url 'themes:contrast'%}" style="margin-left:10px;"><i class="glyphicon glyphicon-adjust"></i></a> | |
90 | + <a href="" id = "contrast_button" style="margin-left:10px;"><i class="glyphicon glyphicon-adjust"></i></a> | |
91 | 91 | <ul class="dropdown-menu"> |
92 | 92 | |
93 | 93 | |
... | ... | @@ -146,7 +146,19 @@ |
146 | 146 | </div> |
147 | 147 | </div> |
148 | 148 | |
149 | - | |
149 | +<script type="text/javascript"> | |
150 | + $("#contrast_button" ).click(function() { | |
151 | + if (Cookies.get('contrast_check')) { | |
152 | + Cookies.remove('contrast_check') | |
153 | + location.reload() | |
154 | + } | |
155 | + else { | |
156 | + Cookies.set('contrast_check','anonymous') | |
157 | + location.reload() | |
158 | + } | |
159 | + | |
160 | + }); | |
161 | +</script> | |
150 | 162 | {% endblock%} |
151 | 163 | |
152 | 164 | {% block footer %} | ... | ... |