PageSourceSearch

https://brazossantiagopilots.com/wp-content/themes/tm_transport/js/main.js

js brazossantiagopilots.com collected 2026-10-04 04:00:06 UTC 1,427 bytes, 51 lines download raw bytes

1/*--------------------------------------------------------------
2 Custom js
3 --------------------------------------------------------------*/
4var snapper = new Snap({
5  element: document.getElementById('page'),
6  dragger: document.getElementsByClassName('page'),
7  disable: 'right',
8  slideIntent: 10,
9});
10var addEvent = function addEvent(element, eventName, func) {
11  if (element.addEventListener) {
12    return element.addEventListener(eventName, func, false);
13  } else if (element.attachEvent) {
14    return element.attachEvent("on" + eventName, func);
15  }
16};
17addEvent(document.getElementById('open-left'), 'click', function(){
18  snapper.open('left');
19});
20jQuery(document).ready(function ($) {
21  'use strict';
22
23  // mini-cart
24  var $mini_cart = $('.mini-cart');
25  $mini_cart.on('click', function(e) {
26    $(this).addClass('open');
27  });
28
29  $(document).on('click', function(e){
30    if($(e.target).closest($mini_cart).length == 0) {
31      $mini_cart.removeClass('open');
32    }
33  });
34
35  // search in menu
36  var $search_btn = $('.search-box > i'),
37      $search_form = $('form.search-form');
38
39  $search_btn.on('click', function () {
40    $search_form.toggleClass('open');
41  });
42
43  $(document).on('click', function(e){
44    if($(e.target).closest($search_btn).length == 0
45      && $(e.target).closest('input.search-field').length == 0
46      && $search_form.hasClass('open')) {
47      $search_form.removeClass('open');
48    }
49  });
50
51});

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.