PageSourceSearch

https://mulliganspharmacy.com/js/JHome.js

js mulliganspharmacy.com collected 2026-10-04 22:51:23 UTC 13,065 bytes, 260 lines download raw bytes

1var $nc = jQuery.noConflict();
2var pdt_flag = true;
3var img_flag = true;
4$nc(document).ready(function () {
5 if ($nc.cookie('newsltr') == null) {
6       var id = '#dialog';
7
8    //Get the screen height and width
9    var maskHeight = $nc(document).height();
10    var maskWidth = $nc(window).width();
11
12    //Set heigth and width to mask to fill up the whole screen
13    $nc('#mask').css({ 'width': maskWidth, 'height': maskHeight });
14
15    //transition effect		
16    $nc('#mask').fadeIn(500);
17    $nc('#mask').fadeTo("slow", 0.9);
18
19    //Get the window height and width
20    var winH = $nc(window).height();
21    var winW = $nc(window).width();
22
23    //Set the popup window to center
24    $nc(id).css('top', winH / 2 - $nc(id).height() / 2);
25    $nc(id).css('left', winW / 2 - $nc(id).width() / 2);
26
27    //transition effect
28    $nc(id).fadeIn(0);
29 }
30    $nc('.notificationCloseBtn').click(function () {
31        $nc('#cookieBar').hide();
32        $nc.cookie('ppagree', true, { expires: 1 });
33    });
34    if ($nc.cookie('ppagree') == null) {
35        $nc('#cookieBar').show();
36    }
37});
38
39$nc(function () {
40    // $nc('.home_icon_m').hide();  
41    $nc.ajax({
42        type: "Get",
43        contentType: "application/json; charset=utf-8",
44        url: $nc('#hdnpth').val() + "/default.aspx?callback=img",
45        data: "",
46        dataType: "json",
47        async: false,
48        success: function (data) {
49            for (var i = 0; i < data.length; i++) {
50                if (data[i].bnr_priority == '1') {
51                    $nc('#beautyimg' + data[i].bnr_priority).attr('src', $nc('#hdnimg').val() + '/UserFiles/Pharmacy/' + data[i].bnr_image);
52                    $nc('#beautyimg' + data[i].bnr_priority).attr('alt', data[i].bnr_alt);
53                    $nc('#beautyimg' + data[i].bnr_priority).parent().attr('href', data[i].bnr_url);
54                }
55                return;
56            }
57	    //if ('loading' in HTMLImageElement.prototype) {
58            //    const images = document.querySelectorAll('#beautyimg1');
59            //    images.forEach(img => {
60            //        img.src = img.dataset.src;
61            //    });
62            //} else {
63                // Dynamically import the LazySizes library
64            //    const script = document.createElement('script');
65             //   script.src =
66            //        $nc('#hdnpth').val() + '/js/lazysizes.min.js';
67            //    document.body.appendChild(script);
68            //}
69//alert(1);
70        },
71        error: function (result) {
72
73        }
74    }); 
75    var url = window.location.href;
76    if (url.toLowerCase().indexOf('home') > -1) {
77    }
78    else {
79        if (! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
80           // setTimeout(CallSignUp, 60000);
81        }
82    }
83});
84
85jQuery(document).ready(function ($nc) {
86    var options = {
87        $AutoPlay: true,                                    //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false
88        $AutoPlaySteps: 1,                                  //[Optional] Steps to go for each navigation request (this options applys only when slideshow disabled), the default value is 1
89        $Idle: 4000,                            //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000
90        $PauseOnHover: 1,                                   //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1
91
92        $ArrowKeyNavigation: true,   			            //[Optional] Allows keyboard (arrow key) navigation or not, default value is false
93        $SlideEasing: $JssorEasing$.$EaseOutQuint,          //[Optional] Specifies easing for right to left animation, default value is $JssorEasing$.$EaseOutQuad
94        $SlideDuration: 300,                                //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500
95        $MinDragOffsetToSlide: 20,                          //[Optional] Minimum drag offset to trigger slide , default value is 20
96        //$SlideWidth: 600,                                 //[Optional] Width of every slide in pixels, default value is width of 'slides' container
97        //$SlideHeight: 300,                                //[Optional] Height of every slide in pixels, default value is height of 'slides' container
98        $SlideSpacing: 0, 					                //[Optional] Space between each slide in pixels, default value is 0
99        $Cols: 1,                                  //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1
100        $ParkingPosition: 0,                                //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0.
101        $UISearchMode: 1,                                   //[Optional] The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc).
102        $PlayOrientation: 1,                                //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1
103        $DragOrientation: 1,                                //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $Cols is greater than 1, or parking position is not 0)
104
105        $ArrowNavigatorOptions: {                           //[Optional] Options to specify and enable arrow navigator or not
106            $Class: $JssorArrowNavigator$,                  //[Requried] Class to create arrow navigator instance
107            $ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
108            $AutoCenter: 2,                                 //[Optional] Auto center arrows in parent container, 0 No, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
109            $Steps: 1,                                      //[Optional] Steps to go for each navigation request, default value is 1
110            $Scale: false                                   //Scales bullets navigator or not while slider scale
111        },
112
113        $BulletNavigatorOptions: {                                //[Optional] Options to specify and enable navigator or not
114            $Class: $JssorBulletNavigator$,                       //[Required] Class to create navigator instance
115            $ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
116            $AutoCenter: 1,                                 //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
117            $Steps: 1,                                      //[Optional] Steps to go for each navigation request, default value is 1
118            $Rows: 1,                                      //[Optional] Specify lanes to arrange items, default value is 1
119            $SpacingX: 12,                                   //[Optional] Horizontal space between each item in pixel, default value is 0
120            $SpacingY: 4,                                   //[Optional] Vertical space between each item in pixel, default value is 0
121            $Orientation: 1,                                //[Optional] The orientation of the navigator, 1 horizontal, 2 vertical, default value is 1
122            $Scale: false                                   //Scales bullets navigator or not while slider scale
123        }
124    };
125
126    var jssor_slider1 = new $JssorSlider$("slider1_container", options);
127
128    //responsive code begin
129    //you can remove responsive code if you don't want the slider scales while window resizing
130    function ScaleSlider() {
131        var parentWidth = jssor_slider1.$Elmt.parentNode.clientWidth;
132        if (parentWidth) {
133            jssor_slider1.$ScaleWidth(parentWidth - 30);
134        }
135        else
136            window.setTimeout(ScaleSlider, 30);
137    }
138    ScaleSlider();
139    $nc(window).bind("load", ScaleSlider);
140    $nc(window).bind("resize", ScaleSlider);
141    $nc(window).bind("orientationchange", ScaleSlider);
142    //responsive code end
143});
144$nc(window).on('load', function () {
145    $nc("#flexiselDemo3").flexisel({
146        visibleItems: 4,
147        itemsToScroll: 1,
148        autoPlay: {
149            enable: true,
150            interval: 3000,
151            pauseOnHover: true
152        }
153    });
154
155});
156$nc(".m-text").show();
157$nc(".m-link").click(function () {
158    $nc(".m-text").hide();
159    $nc.cookie('newsltr', true, { expires: 2147483647 });
160});
161$nc(".m-link-close-button span").click(function () {
162   $nc(".m-text").hide();
163});
164
165$nc(window).scroll(function () {
166    var hT = $nc('#divoffrs').offset().top,
167        hH = $nc('#divoffrs').outerHeight(),
168        wH = $nc(window).height(),
169        wS = $nc(this).scrollTop();
170    if (wS > (hT + hH - wH)) {
171        if ($nc('#divoffrs').html() != '' && pdt_flag == true) {
172            BindOffers();
173            pdt_flag = false;
174        }
175    }
176    var hT1 = $nc('.headings1').offset().top,
177        hH1 = $nc('.headings1').outerHeight(),
178        wH1 = $nc(window).height(),
179        wS1 = $nc(this).scrollTop();
180    if (wS1 > (hT1 + hH1 - wH1)) {
181        if (($nc('.trend_sec1 img').attr('data-src') == '' || $nc('.trend_sec1 img').attr('data-src') == null) && img_flag == true) {         
182            ShowTrendImages();
183            img_flag = false;
184        }
185    }
186});
187
188function BindOffers() {
189    $nc.ajax({
190        type: 'get',
191        //contentType: "application/json; charset=utf-8",
192        url: $nc('#hdnpth').val() + "/default.aspx?callback=offrs",
193        data: "",
194        dataType: "html",
195        //async: false,
196        success: function (result) {
197            $nc('#divoffrs').html(result);
198            $nc('.headings').html('<span>»</span>  ' + $nc('#divoffrs .new_products:first').attr('data-value') + '  <span>«</span>');
199	    if ('loading' in HTMLImageElement.prototype) {
200                const images = document.querySelectorAll('#divoffrs img[loading="lazy"]');
201                images.forEach(img => {
202                    img.src = img.dataset.src;
203                });
204            } else {
205                // Dynamically import the LazySizes library
206                const script = document.createElement('script');
207                script.src =
208                    $nc('#hdnpth').val() + '/js/lazysizes.min.js';
209                document.body.appendChild(script);
210            }
211            $nc("#flexiselDemo5").flexisel({
212                visibleItems: 4,
213                itemsToScroll: 1,
214                autoPlay: {
215                    enable: true,
216                    interval: 3000,
217                    pauseOnHover: true
218                }
219            });
220        },
221        error: function (result) {
222            //dhtmlx.alert("An error occured");
223        }
224    });
225}
226
227function ShowTrendImages() {
228    $nc.ajax({
229        type: "Get",
230        contentType: "application/json; charset=utf-8",
231        url: $nc('#hdnpth').val() + "/default.aspx?callback=img",
232        data: "",
233        dataType: "json",
234        async: false,
235        success: function (data) {
236            for (var i = 0; i < data.length; i++) {
237                $nc('.headings1').html('<span>»</span>  ' + data[0].bnr_title + '  <span>«</span>');
238                $nc('#beautyimg' + data[i].bnr_priority).attr('src', $nc('#hdnimg').val() + '/UserFiles/Pharmacy/' + data[i].bnr_image);
239		$nc('#beautyimg' + data[i].bnr_priority).attr('alt', data[i].bnr_alt);
240                $nc('#beautyimg' + data[i].bnr_priority).parent().attr('href', data[i].bnr_url);
241           // if ('loading' in HTMLImageElement.prototype) {
242            //    const images = document.querySelectorAll('#beautyimg' + data[i].bnr_priority+' img[loading="lazy"]');
243             //   images.forEach(img => {
244              //      img.src = img.dataset.src;
245             //   });
246           // } else {
247                // Dynamically import the LazySizes library
248              //  const script = document.createElement('script');
249              //  script.src =
250              //      $nc('#hdnpth').val() + '/js/lazysizes.min.js';
251               // document.body.appendChild(script);
252               // }
253            }
254        },
255        error: function (result) {
256
257        }
258    });
259}
260

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.