Sha256: 72f4205eefca4ed2e7f417b354a8322b1ae00f7688b273aca1b2a1e08a1d4b1b
Contents?: true
Size: 621 Bytes
Versions: 45
Compression:
Stored size: 621 Bytes
Contents
pageflow.links = { setup: function() { this.ensureClickOnEnterKeyPress(); this.setupContentSkipLinks(); }, ensureClickOnEnterKeyPress: function() { $('body').on('keypress', 'a, [tabindex]', function(e) { if (e.which == 13) { $(this).click(); } }); $('body').on('keyup', 'a, [tabindex]', function (e) { e.stopPropagation(); }); }, setupContentSkipLinks: function() { $('.content_link').attr('href', '#firstContent'); $('.content_link').click(function(e) { $('#firstContent').focus(); e.preventDefault(); return false; }); } };
Version data entries
45 entries across 45 versions & 1 rubygems