PageSourceSearch

http://www.boxing360.com/wp-content/themes/Boxing360/js/jquery.off…?ver=a797ec69880d57e7a3342c1e3a08b112

js boxing360.com collected 2026-10-02 23:13:21 UTC 1,666 bytes, 50 lines download raw bytes

1$(function() {
2  // Set the negative margin on the top menu for slide-menu pages
3  var $selector1 = $('#topMenu'),
4    events = 'click.fndtn touchstart.fndtn';
5  if ($selector1.length > 0) $selector1.css("margin-top", $selector1.height() * -1);
6
7  // Watch for clicks to show the sidebar
8  var $selector2 = $('#sidebarButton');
9  if ($selector2.length > 0) {
10    $('#sidebarButton').on(events, function(e) {
11      e.preventDefault();
12      $('body').toggleClass('active');
13    });
14  }
15
16  // Watch for clicks to show the menu for slide-menu pages
17  var $selector3 = $('#menuButton');
18  if ($selector3.length > 0)  {
19    $('#menuButton').on(events, function(e) {
20      e.preventDefault();
21      $('body').toggleClass('active-menu');
22    });
23  }
24
25  // Adjust sidebars and sizes when resized
26  $(window).resize(function() {
27    $('body').removeClass('active');
28    var $selector4 = $('#topMenu');
29    if ($selector4.length > 0) $selector4.css("margin-top", $selector4.height() * -1);
30  });
31
32  // Switch panels for the paneled nav on mobile
33  var $selector5 = $('#switchPanels');
34  if ($selector5.length > 0)  {
35    $('#switchPanels dd').on(events, function(e) {
36      e.preventDefault();
37      var switchToPanel = $(this).children('a').attr('href'),
38          switchToIndex = $(switchToPanel).index();
39      $(this).toggleClass('active').siblings().removeClass('active');
40      $(switchToPanel).parent().css("left", (switchToIndex * (-100) + '%'));
41    });
42  }
43
44  $('#nav li a').on(events, function(e) {
45    e.preventDefault();
46    var href = $(this).attr('href'),
47      $target = $(href);
48    $('html, body').animate({scrollTop : $target.offset().top}, 300);
49  });
50});

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.