PageSourceSearch

https://simblr.cc/static/core/js/lsm/base.js

js simblr.cc collected 2026-09-24 10:23:40 UTC 2,568 bytes, 81 lines download raw bytes

1  const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
2  const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))    
3  
4  document.addEventListener('DOMContentLoaded', function () {
5
6
7      /* Handle change of icon on mobile navbar (switch from burger icon to cross) */
8      var toggler = document.querySelector('.navbar-toggler');
9
10      if(toggler != null){
11          toggler.addEventListener('click', function () {
12
13              var icon = toggler.querySelector('.btn-toggler');
14              var navbar =  document.querySelector('.navbar');
15              
16              if(icon == null) return;
17              if(icon.classList.contains('fa-bars'))
18              {
19                  icon.classList.add('fa-times');
20                  icon.classList.remove('fa-bars');
21                  document.body.style.overflow = "hidden";
22                  if(navbar != null)
23                  {
24                      navbar.classList.add('navbar-rounded');
25                  }
26              }
27              else{
28                  icon.classList.add('fa-bars');
29                  icon.classList.remove('fa-times');
30                  document.body.style.overflow = "auto";
31                  if(navbar != null)
32                  {
33                      navbar.classList.remove('navbar-rounded');
34                  }
35
36              }
37          });
38      }
39  });
40
41
42function createCookie(name,value,days) {
43    if (days) {
44        var date = new Date();
45        date.setTime(date.getTime() + (days * 24 * 60 * 60 *1000));
46        var expires = "; expires=" + date.toGMTString();
47    } else {
48        var expires = "";
49    }
50    document.cookie = name + "=" + value + expires + "; path=/";
51}
52
53function readCookie(name) {
54    var nameEQ = name + "=";
55    var ca = document.cookie.split(';');
56    for(var i=0;i < ca.length;i++) {
57        var c = ca[i];
58        while (c.charAt(0)==' ') {
59            c = c.substring(1,c.length);
60        }
61        if (c.indexOf(nameEQ) == 0) {
62            return c.substring(nameEQ.length,c.length);
63        }
64    }
65    return null;
66}
67
68function eraseCookie(name) {
69    createCookie(name,"",-1);
70}
71
72function setCookie(cName, cValue, expDays) {
73    let date = new Date();
74    date.setTime(date.getTime() + (expDays * 24 * 60 * 60 * 1000));
75    const expires = "expires=" + date.toUTCString();
76    document.cookie = cName + "=" + cValue + "; " + expires + "; path=/";
77}
78
79function replaceText( el, str ) {
80    el.textContent ? el.textContent = str : el.innerText = str;
81}

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.