PageSourceSearch

https://byjus.com/wp-content/themes/html5blank-stable/js/byjus_cla…/trail_pages_default_functions.js

js byjus.com collected 2026-09-24 08:27:54 UTC 1,434 bytes, 39 lines download raw bytes

1(function () {
2
3    var trialDefaultFunction = {
4        fixedFloatingButton: function () {
5            // fixed button on mobile
6            if (!navigator.isMobileTablet) return;
7
8            var mobileFixedBtnEle = jQuery('[data-bottom-mobile-request-now-btn]');
9            var newTrialForm = jQuery("[data-new-free-trial-form-block]");
10            jQuery(window).scroll(function () {
11                // header Size
12                var scroll = jQuery(window).scrollTop();
13
14                // hide show fixed request button
15                selfDeclare(scroll)
16            });
17
18            function selfDeclare(scroll) {
19                if (scroll >= newTrialForm.offset().top + newTrialForm.outerHeight() - jQuery('[data-bj-header]').outerHeight() && scroll <= jQuery('[data-bj-footer]').offset().top - WINDOW_HEIGHT) {
20                    mobileFixedBtnEle.show();
21                } else {
22                    mobileFixedBtnEle.hide();
23                }
24            }
25
26            selfDeclare(jQuery(window).scrollTop());
27
28            mobileFixedBtnEle.click(function () {
29                jQuery("html, body").animate({
30                    scrollTop: newTrialForm.offset().top - jQuery('[data-bj-header]').outerHeight() - 16
31                }, 400);
32                newTrialForm.find('[name="name"]:visible').focus();
33            });
34        }
35    }
36
37    trialDefaultFunction.fixedFloatingButton(); // on page load calling
38
39})($)

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.