PageSourceSearch

https://ccr3.k12.mo.us/shared/scripts/dropdown.js

js ccr3.k12.mo.us collected 2026-10-06 13:28:24 UTC 1,673 bytes, 62 lines download raw bytes

1/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
2function wgNav() {
3  var x = document.getElementById("myTopnav");
4  if (x.className === "topnav") {
5    x.className += " responsive";
6  } else {
7    x.className = "topnav";
8  }
9}
10
11window.onscroll = function() {myFunction()};
12
13var header = document.getElementById("fixedHeader");
14var sticky = header.offsetTop;
15
16function myFunction() {
17  if (window.pageYOffset > sticky) {
18    header.classList.add("sticky");
19  } else {
20    header.classList.remove("sticky");
21  }
22}
23
24function showHide(y) {
25    var x = document.getElementById(y);
26    if (x.style.display === 'flex') {
27        x.style.display = 'none';
28    } else {
29        x.style.display = 'flex';
30    }
31}
32function hideBlock(z) {
33	var v = document.getElementById(z);
34	v.style.display = 'none';
35}
36
37function runPrimarySearchHandler(e) {
38  e.preventDefault();
39  primarySearchAutocomplete.getValue().then(function (q) {
40    logGaAnalytics("PrimarySearch", "SubmitQuery", q);
41    window.location.href = "/search?q=" + q;
42  });
43  return false;
44}
45var primarySearchAutocomplete = document.querySelector("nl-autocomplete");
46primarySearchAutocomplete.list = globalConfigData.autocomplete.primarySearch;
47primarySearchAutocomplete.addEventListener("enterKey", runPrimarySearchHandler);
48
49function logGaAnalytics(category, action, label) {
50  try {
51    var analyticsEventPacket = {};
52    if (category) {
53      analyticsEventPacket["event_category"] = category;
54    }
55    if (label) {
56      analyticsEventPacket["event_label"] = label;
57    }
58    gtag("event", action, analyticsEventPacket);
59  } catch (e) {
60    console.log(e);
61  }
62}

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.