View | Details | Raw Unified | Return to bug 22807
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (+3 lines)
Lines 12-17 Link Here
12
        <div class="navbar navbar-inverse navbar-static-top">
12
        <div class="navbar navbar-inverse navbar-static-top">
13
            <div class="navbar-inner">
13
            <div class="navbar-inner">
14
                <div class="container-fluid">
14
                <div class="container-fluid">
15
                    <div id="skiptocontent" class="pull-left hidden" role="button">
16
                        <a href="#maincontent">Skip to main content</a>
17
                    </div>
15
                    <h1 id="logo">
18
                    <h1 id="logo">
16
                        <a class="brand" href="/cgi-bin/koha/opac-main.pl">
19
                        <a class="brand" href="/cgi-bin/koha/opac-main.pl">
17
                            [% IF ( LibraryNameTitle ) %]
20
                            [% IF ( LibraryNameTitle ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/global.js (-1 / +16 lines)
Lines 91-93 function confirmModal(message, title, yes_label, no_label, callback) { Link Here
91
    $("#bootstrap-confirm-box-modal-cancel").text( no_label || 'Cancel' );
91
    $("#bootstrap-confirm-box-modal-cancel").text( no_label || 'Cancel' );
92
    $("#bootstrap-confirm-box-modal").modal('show');
92
    $("#bootstrap-confirm-box-modal").modal('show');
93
}
93
}
94
- 
94
95
var isFirstFocus = true;
96
document.documentElement.addEventListener('keydown', function(event) {
97
  var code = event.which;
98
  // Show animation only upon Tab or Arrow keys press.
99
  if (code === 9 || (code > 36 && code < 41)) {
100
    if (isFirstFocus) {
101
        isFirstFocus = false;
102
        $("#skiptocontent").removeClass('hidden');
103
    }
104
  }
105
}, false);
106
107
$('#skiptocontent').focusout(function() { 
108
      $('#skiptocontent').addClass('hidden');
109
});

Return to bug 22807