PageSourceSearch

https://savingscouple.com/wp-content/themes/petite-stories/js/accessibility.js?ver=20160720

js savingscouple.com collected 2026-10-10 02:16:51 UTC 1,384 bytes, 45 lines download raw bytes

1jQuery(document).ready(function ($) {
2  "use strict";
3  $(".toggle-mobile-menu").click(function (e) {
4    setTimeout(function () {
5      e.preventDefault(); // don't grab focus
6      if ($("body").hasClass("mobile-menu-active")) {
7        $("#smobile-menu #primary-menu li a").first().focus();
8        $(document).off("keydown");
9        $(document).on("keydown", function (e) {
10          if (e.keyCode === 27) {
11            // escape to close popout menu
12            backToMenu();
13          }
14        });
15
16        $("#smobile-menu .smenu-hide").off("keydown");
17        $("#smobile-menu .smenu-hide").on("keydown", function (e) {
18          if ((e.keyCode === 9 && e.shiftKey) || e.keyCode === 13) {
19            //shift tab or enter on "menu" close menu
20            backToMenu();
21          }
22        });
23      }
24    }, 10);
25  });
26
27  $("#smobile-menu #primary-menu").append(
28    '<li><a href="" id="accessibility-close-mobile-menu" style="padding:0;height:0;"></a></li>'
29  );
30
31  $("#accessibility-close-mobile-menu").focusin(function (e) {
32    $(document).off("keydown");
33    $(".toggle-mobile-menu").click();
34    $("#primary a").first().focus();
35  });
36
37  function backToMenu() {
38    $(document).off("keydown");
39    $(".toggle-mobile-menu").trigger("click");
40    setTimeout(function () {
41      $(".toggle-mobile-menu").focus();
42    }, 10);
43    $(".toggle-mobile-menu").focus();
44  }
45});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.