PageSourceSearch

https://byjus.com/wp-content/themes/html5blank-stable/js/classes/classes_header.js

js byjus.com collected 2026-10-01 08:38:28 UTC 1,644 bytes, 38 lines download raw bytes

1(function () {
2    var urlPrefix = '';
3    var homeUrl = '/';
4    var utm_param = location.search || '?utm_source=website&utm_medium=byjusclasses&utm_campaign=byjusclassescta';
5    document.querySelectorAll('.navbar-nav li a:not(.external-link)').forEach(function (item, index) {
6        item.addEventListener('click', function (event) {
7            var targetId = event.target.getAttribute('target-id');
8            if (targetId) {
9                if (document.getElementById(targetId)) {
10                    document.getElementById(targetId).scrollIntoView();
11                    location.hash = targetId;
12                } else {
13                    navigateToPage(urlPrefix + homeUrl + location.search + '#' + targetId);
14                }
15            } else {
16                navigateToPage(urlPrefix + '/byjus-classes-book-a-free-60-minutes-class/registration/' + utm_param);
17            }
18        });
19    });
20    jQuery('#book-free-demo-btn').on('click', function () {
21        navigateToPage(urlPrefix + '/byjus-classes-book-a-free-60-minutes-class/registration/' + utm_param);
22
23    });
24    jQuery('#classes-nav-logo').on('click', function () {
25        navigateToPage(urlPrefix + homeUrl + location.search);
26    });
27
28    jQuery('.navbar-nav>li>a:not(.external-link)').on('click', function () {
29        jQuery('.navbar-collapse').collapse('hide');
30    });
31    jQuery('.book-free-demo-class-btn').click(function (event) {
32        var path = event.currentTarget.getAttribute('target-href');
33        navigateToPage(urlPrefix + path + location.search);
34    });
35    function navigateToPage(url) {
36        window.location.href = url;
37    }
38})();

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.