PageSourceSearch

https://bitdoctor.ai/new/assets/js/download.js

js bitdoctor.ai collected 2026-10-02 13:33:45 UTC 1,784 bytes, 50 lines download raw bytes

1// Get the button and dropdown elements
2const downloadBtn = document.getElementById('downloadBtn');
3const dropdownMenu = document.getElementById('dropdownMenu');
4
5// Add click event to the download button
6downloadBtn.addEventListener('click', (event) => {
7  event.preventDefault(); // Prevent default link behavior
8  dropdownMenu.style.display =
9    dropdownMenu.style.display === 'block' ? 'none' : 'block';
10});
11
12// Close the dropdown when clicking outside
13document.addEventListener('click', (event) => {
14  if (!downloadBtn.contains(event.target) && !dropdownMenu.contains(event.target)) {
15    dropdownMenu.style.display = 'none';
16  }
17});
18
19
20
21// Get the button and dropdown elements
22const downloadBtnMobile = document.getElementById('downloadBtnMobile');
23const dropdownMenuMobile = document.getElementById('dropdownMenuMobile');
24
25// Add click event to the download button
26downloadBtnMobile.addEventListener('click', (event) => {
27  event.preventDefault(); // Prevent default link behavior
28  dropdownMenuMobile.style.display =
29    dropdownMenuMobile.style.display === 'block' ? 'none' : 'block';
30});
31
32// Close the dropdown when clicking outside
33document.addEventListener('click', (event) => {
34  if (!downloadBtnMobile.contains(event.target) && !dropdownMenuMobile.contains(event.target)) {
35    dropdownMenuMobile.style.display = 'none';
36  }
37});
38
39window.addEventListener("scroll", function () {
40  let header = document.querySelector(".header");
41  if (window.scrollY > 50) {
42      header.style.position = "fixed";
43      header.style.top = "0";
44      header.style.width = "100%";
45      header.style.boxShadow = "0 4px 8px rgba(0, 0, 0, 0.1)";
46  } else {
47      header.style.position = "sticky";
48      header.style.boxShadow = "none";
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.