Skip to content

Commit

Permalink
add a new toggle to settings which hides the recent changes box for a…
Browse files Browse the repository at this point in the history
…ccessibility reasons, as mentioned in #16
  • Loading branch information
mahmoud committed May 5, 2015
1 parent e4730c1 commit 3cab6c9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
Howler.unmute();
Howler.volume(global_volume * .01);
}
}});
}});


});
Expand Down Expand Up @@ -184,6 +184,10 @@
$('#titles').click(
make_click_handler($('#titles'), 'notitles')
);
$('#hide_rc_box').click(
function() {$("#rc-log").toggle();}
);

$('#about-link').click(function(){
// because we use window.location to set languages.
$('html, body').animate({scrollTop:$(document).height()}, 'slow');
Expand Down Expand Up @@ -284,7 +288,7 @@
$('.tag span').each(function(val) {
var tag = $(this).text().trim().replace('#', '').toLowerCase();
if($.inArray(tag, TAG_FILTERS) === -1){
TAG_FILTERS.push(tag);
TAG_FILTERS.push(tag);
}
});
update_tag_warning(svg);
Expand Down Expand Up @@ -324,6 +328,9 @@ <h3>Settings</h3>
<label for='welcome'>Hide new user announcements</label></p>
<p><input type="checkbox" name="titles" id="titles">
<label for='titles'>Hide article titles</label></p>
<p><input type="checkbox" name="hide_rc_box" id="hide_rc_box">
<label for="hide_rc_box">Hide recent changes console</label></p>

<h3>Languages</h3>
<div id='lang-boxes'> </div>
<div class='clear'><br/></div>
Expand Down

0 comments on commit 3cab6c9

Please sign in to comment.