PageSourceSearch

https://odomosprotect.com/cache-buster-1717392817/bundles/odomos/js/new_script.js

js odomosprotect.com collected 2026-10-08 19:44:41 UTC 4,910 bytes, 132 lines download raw bytes

1
2 $(document).ready(function () {
3    $("body,html").css({
4       overflow: "hidden"
5    })
6   
7   
8 
9    hide_preloader();
10    var e, i, a, t = $(window).width(),
11       n = ["banner1.jpg", "banner2.jpg", "banner3.jpg"],
12       o = ["banner1-640.jpg", "banner2-640.jpg", "banner3-640.jpg"],
13       s = ["banner1-800.jpg", "banner2-800.jpg", "banner3-800.jpg"],
14       r = $(".blogPage").data("blogdeskimg"),
15       l = $(".blogPage").data("blogimg800"),
16       d = $(".blogPage").data("blogimg640"),
17
18       c = $(".faqPage").data("faqdeskimg"),
19       p = $(".faqPage").data("faqimg800"),
20       g = $(".faqPage").data("faq640img"),
21       m = $(".videoPage").data("videodeskimg"),
22       u = $(".videoPage").data("videoimg800"),
23       h = $(".videoPage").data("video640img");
24 
25    function b(e) { 
26       if (e <= 640) {
27           $('#homePageBanner li:not(".bx-clone")').find(".d-device").remove();
28         //   $('#homePageBanner li:not(".bx-clone")').find(".t-mobile").show();
29           $('#homePageBanner li:not(".bx-clone")').find(".s-mobile").remove();
30          $("#faqBanner img").attr("src", "/images/faq/" + g), 
31          $("#blogPageBanner img").attr("src", "" + '/bundles/odomos/images/1-mosquito-640x798.jpg')
32       } else if (736 <= e && e <= 812) {
33        $('#homePageBanner li:not(".bx-clone")').find(".d-device").remove();
34        $('#homePageBanner li:not(".bx-clone")').find(".s-mobile").remove();
35          $("#faqBanner img").attr("src", "/images/faq/" + p), 
36          $("#blogPageBanner img").attr("src", "" + l)
37       } else {
38        $('#homePageBanner li:not(".bx-clone")').find(".t-mobile").remove();
39        $('#homePageBanner li:not(".bx-clone")').find(".s-mobile").remove();
40          $("#faqBanner img").attr("src", "/images/faq/" + c), 
41          $("#blogPageBanner img").attr("src", "" + r)
42       }
43    }
44    b(t), e = $(".mainBannerSlider  ul").bxSlider({
45       infiniteLoop: !0,
46       minSlides: 1,
47       maxSlides: 1,
48       pause: 12e3,
49       auto: !0,
50       controls: !0,
51       pager: !0,
52       touchEnabled: !1
53    }), 640 < t ? (i = 680, a = 2) : (i = t, a = 1), 480 < t ? (i = 480, a = 2) : (i = t, a = 1), 700 < t ? (i = 700, a = 2) : (i = t, a = 1), $(".testimonial").bxSlider({
54       infiniteLoop: !0,
55       minSlides: a,
56       maxSlides: a,
57       slideWidth: i,
58       pause: 16e3,
59       auto: !0,
60       controls: !1,
61       pager: !0,
62       touchEnabled: !1
63    }),  $(".bottomSlider ul").bxSlider({
64       mode: "horizontal",
65       moveSlides: 1,
66       slideMargin: 40,
67       infiniteLoop: !0,
68       minSlides: 1,
69       maxSlides: 1,
70       speed: 800,
71       auto: !0,
72       pause: 4e3,
73       controls: !0,
74       touchEnabled: !1,
75       onSlideNext: function (e, i, a) {
76          $(".imageSwapperSlider").prepend($(".imageSwapperSlider img").last())
77       }
78    }), 
79    
80     $(".innerTab li").on("click", function () {
81       $(".innerTab li").removeClass("active"), $(this).addClass("active");
82       var e = $(this).index();
83       $(this).parents(".innerTab").next(".innerTabContent").find("li").removeClass("active").hide(), $(this).parents(".innerTab").next(".innerTabContent").find("li").eq(e).show()
84    }), $(window).resize(function () {
85       b(t = $(this).width()), 0 < e.length && e.reloadSlider({
86          infiniteLoop: !0,
87          minSlides: 1,
88          maxSlides: 1,
89          pause: 12e3,
90          auto: !0,
91          controls: !0,
92          pager: !0,
93          touchEnabled: !1
94       })
95    }), $(window).scroll(function () {
96       0 < $(this).scrollTop() ? $(".mainHeader").css({
97          top: 0
98       }) : $(".mainHeader").css({
99          top: "28px"
100       })
101    });
102    var f = location.href.split("-diseases/")[1];
103    f && ("dengue" == f && $(".tabbingMainLinks li").eq(0).trigger("click"), "malaria" == f && $(".tabbingMainLinks li").eq(1).trigger("click"), "chikungunya" == f && $(".tabbingMainLinks li").eq(2).trigger("click"), "japanese-encephalitis" == f && $(".tabbingMainLinks li").eq(3).trigger("click")),
104       function () {
105          800 < t && (radius = 300);
106          800 == t && (radius = 280);
107          768 == t && (radius = 250);
108          640 == t && (radius = 220);
109          480 <= t && t <= 592 && (radius = 165)
110       }(), rotateBalloon()
111 });
112 var maxspeed = .05,
113    minspeed = .01,
114    speed = maxspeed,
115    radius = 300,
116    count = 0;
117 
118 function rotateBalloon() {
119    var t = $(".roundBaloon").width() / 2,
120       n = $(".roundBaloon").height() / 2,
121       o = $(".menuItem").length;
122    $(".menuItem").each(function () {
123       var e = count * Math.PI / 180;
124       console.log(typeof e);
125       var i = t + Math.cos(e) * radius - $(this).width() / 2 - 10,
126          a = n + Math.sin(e) * radius - $(this).height() / 2 - 10;
127       console.log(i), $(this).css({
128          left: i + "px",
129          top: a + "px"
130       }), count += 360 / o + speed
131    })
132 }

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.