PageSourceSearch

https://www.globalbattery.org/template/gba/js/gba-1.0.js?v=20260721

js globalbattery.org collected 2026-10-03 20:44:05 UTC 894 bytes, 28 lines download raw bytes

1// fixed navbar
2document.addEventListener("DOMContentLoaded", function(){
3  // add padding top to show content behind navbar
4  navbar_height = document.querySelector('.navbar').offsetHeight;
5  document.body.style.paddingTop = navbar_height + 'px';
6}); 
7// DOMContentLoaded  end
8
9// Example starter JavaScript for disabling form submissions if there are invalid fields
10(function () {
11  'use strict'
12
13  // Fetch all the forms we want to apply custom Bootstrap validation styles to
14  var forms = document.querySelectorAll('.needs-validation')
15
16  // Loop over them and prevent submission
17  Array.prototype.slice.call(forms)
18    .forEach(function (form) {
19      form.addEventListener('submit', function (event) {
20        if (!form.checkValidity()) {
21          event.preventDefault()
22          event.stopPropagation()
23        }
24
25        form.classList.add('was-validated')
26      }, false)
27    })
28})()

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.