PageSourceSearch

https://www.egnyte.com/blog/themes/custom/egnyte/js/sitesearch360.js?v=1.x

js egnyte.com collected 2026-09-24 08:29:52 UTC 3,356 bytes, 108 lines download raw bytes

1(function ($, Drupal) {
2  Drupal.behaviors.ss360Search = {
3    attach: function (context, settings) {
4      if ($('.search-field', context).length && !$('.search-field', context).hasClass('ss360-processed')) {
5        $('.search-field', context).addClass('ss360-processed');
6
7        window.ss360Config = {
8          showErrors: false,
9          language: 'en',
10          tracking: {
11            providers: []
12          },
13          siteId: "Egnyte.com",
14          allowCookies: false,
15          suggestions: {
16            show: true,
17            showImages: false,
18            minChars: 1,
19          },
20          contentGroups: {
21            include: ['Blog']
22          },
23          style: {
24            defaultCss: true,
25            searchBox: {
26              text: {
27                color: "#35364e",
28                size: "inherit",
29                border: "0px"
30              },
31              background: {
32                color: "#ffffff"
33              },
34              border: {
35                color: "#FFFFFF",
36                radius: "0px"
37              },
38              padding: "8px",
39              button: {
40                text: '',
41                icon: 'magnifier',
42                color: '#000000',
43                backgroundColor: '#FFFFFF',
44                padding: '0px'
45              }
46            }
47          },
48          searchBox: {
49            selector: ".search-field",
50            searchButton: ".ss360SearchButton"
51          },
52          callbacks: {
53            preSearch: function (query, sort, selectedSearchBox) {
54              var searchBoxId = selectedSearchBox ? selectedSearchBox.get()[0].id : "edit-search";
55              if (searchBoxId == 'edit-search') {
56                if (document.getElementById('searchBox')) {
57                  document.getElementById('searchBox').value = '';
58                }
59              } else if (searchBoxId == 'searchBox') {
60                if (document.getElementById('edit-search')) {
61                  document.getElementById('edit-search').value = '';
62                }
63              }
64              return true;
65            }
66          },
67          results: {
68            embedConfig: {
69              contentBlock: "#ss360-target",
70              // Corrected URL
71              url: '/blog/search'
72            },
73            group: false,
74            highlightQueryTerms: false,
75            showContentGroupHeadings: true,
76            searchQueryParamName: 'search'
77          },
78          layout: {
79            mobile: {
80              showImages: false,
81              showUrl: false
82            },
83            desktop: {
84              showImages: false,
85              showUrl: false
86            },
87            navigation: {
88              position: 'none',
89              type: 'scroll',
90              tabTitle: '#NAME# (#COUNT#)',
91              showGroupResultCount: true,
92              forceTabs: false,
93              fallbackToScroll: false,
94              showAllResultsTab: true,
95              allResultsTabName: 'All Results',
96              allResultsTabTitle: 'All Results (#COUNT#)'
97            }
98          }
99        };
100
101        var e = document.createElement("script");
102        e.async = true;
103        e.src = "https://cdn.sitesearch360.com/v13/sitesearch360-v13.min.js";
104        document.getElementsByTagName("body")[0].appendChild(e);
105      }
106    }
107  };
108})(jQuery, Drupal);

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.