PageSourceSearch

https://www.militaryconnection.com/wp-content/themes/enfold-child/js/scripts.js?ver=1.0.0-1.1.0

js militaryconnection.com collected 2026-10-04 00:25:26 UTC 969 bytes, 35 lines download raw bytes

1window.addEventListener('DOMContentLoaded', function(e) {
2
3
4  /** Show more categories on homepage */
5
6  function showMoreCategories(e) {
7    e.preventDefault()
8    const container = document.querySelector('.homepage-header-categories--js')
9    container.style.height = 'auto'
10    moreCategoriesButton.style.display = 'none'
11  }
12
13  const moreCategoriesButton = document.querySelector('.homepage-header-categories__morebutton--js')
14  if (moreCategoriesButton) {
15	  moreCategoriesButton.addEventListener('click', showMoreCategories)
16  }
17
18
19  /** style special sidebars (special means with header) */
20  
21  function addSpecialClassToWidget(sidebar) {
22    const widgets = Array.from(document.querySelectorAll(sidebar + ' .widget'))
23    widgets.forEach(widget => {
24      const hasHeader = widget.querySelector('.widgettitle')
25      if (hasHeader)
26        widget.classList.add('special')
27    })
28  }
29  addSpecialClassToWidget('.sidebar_right')
30
31
32  /** next function... */
33
34  
35})

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.