PageSourceSearch

https://www.shoptruepills.com/js/main.js

js shoptruepills.com collected 2026-10-05 03:17:38 UTC 8,371 bytes, 333 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10 AOS.init({
11 	duration: 800,
12 	easing: 'slide'
13 });
14
15(function($) {
16
17	"use strict";
18
19	
20	var isMobile = {
21		Android: function() {
22			return navigator.userAgent.match(/Android/i);
23		},
24			BlackBerry: function() {
25			return navigator.userAgent.match(/BlackBerry/i);
26		},
27			iOS: function() {
28			return navigator.userAgent.match(/iPhone|iPad|iPod/i);
29		},
30			Opera: function() {
31			return navigator.userAgent.match(/Opera Mini/i);
32		},
33			Windows: function() {
34			return navigator.userAgent.match(/IEMobile/i);
35		},
36			any: function() {
37			return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
38		}
39	};
40
41
42	$(window).stellar({
43    responsive: true,
44    parallaxBackgrounds: true,
45    parallaxElements: true,
46    horizontalScrolling: false,
47    hideDistantElements: false,
48    scrollProperty: 'scroll'
49  });
50
51
52	var fullHeight = function() {
53
54		$('.js-fullheight').css('height', $(window).height());
55		$(window).resize(function(){
56			$('.js-fullheight').css('height', $(window).height());
57		});
58
59	};
60	fullHeight();
61
62	// loader
63	var loader = function() {
64		setTimeout(function() { 
65			if($('#ftco-loader').length > 0) {
66				$('#ftco-loader').removeClass('show');
67			}
68		}, 1);
69	};
70	loader();
71
72	var sitePlusMinus = function() {
73	$('.js-btn-minus').on('click', function (e) {
74 			e.preventDefault();
75 			if ($(this).closest('.input-group').find('.form-control').val() != 0) {
76 				var context = parseInt($(this).closest('.input-group').find('.form-control').val()) - 1;
77 				if(context != 0) {
78					$(this).closest('.input-group').find('.form-control').val(context);
79				 } else {
80					$(this).closest('.input-group').find('.form-control').val(1);
81				 }
82 			} else {
83 				$(this).closest('.input-group').find('.form-control').val(parseInt(2));
84 			}
85 		});
86		$('.js-btn-plus').on('click', function(e){
87			e.preventDefault();
88			$(this).closest('.input-group').find('.form-control').val(parseInt($(this).closest('.input-group').find('.form-control').val()) + 1);
89		});
90	};
91	sitePlusMinus();
92
93	// Scrollax
94  $.Scrollax();
95
96	var carousel = function() {
97		$('.carousel-testimony').owlCarousel({
98			autoplay: true,
99			loop: true,
100			items:1,
101			margin: 30,
102			stagePadding: 0,
103			dots: false,
104			mouseDrag: false,
105			nav: true,
106			navText: ['<span class="ion-ios-arrow-back">', '<span class="ion-ios-arrow-forward">'],
107			responsive:{
108				0:{
109					items: 1,
110 					nav: false
111				},
112				600:{
113					items: 2,
114					nav: false
115				},
116				1000:{
117					items: 3
118				}
119			}
120		});
121
122
123	};
124	carousel();
125
126	// $('nav .dropdown').hover(function(){
127	// 	var $this = $(this);
128	// 	// 	 timer;
129	// 	// clearTimeout(timer);
130	// 	$this.addClass('show');
131	// 	$this.find('> a').attr('aria-expanded', true);
132	// 	// $this.find('.dropdown-menu').addClass('animated-fast fadeInUp show');
133	// 	$this.find('.dropdown-menu').addClass('show');
134	// }, function(){
135	// 	var $this = $(this);
136	// 		// timer;
137	// 	// timer = setTimeout(function(){
138	// 		$this.removeClass('show');
139	// 		$this.find('> a').attr('aria-expanded', false);
140	// 		// $this.find('.dropdown-menu').removeClass('animated-fast fadeInUp show');
141	// 		$this.find('.dropdown-menu').removeClass('show');
142	// 	// }, 100);
143	// });
144
145
146	// $('#dropdown04').on('show.bs.dropdown', function () {
147	//   console.log('show');
148	// });
149
150	// scroll
151	var scrollWindow = function() {
152		$(window).scroll(function(){
153			var $w = $(this),
154					st = $w.scrollTop(),
155					navbar = $('.ftco_navbar'),
156					sd = $('.js-scroll-wrap');
157
158			if (st > 150) {
159				if ( !navbar.hasClass('scrolled') ) {
160					navbar.addClass('scrolled');	
161				}
162			} 
163			if (st < 150) {
164				if ( navbar.hasClass('scrolled') ) {
165					navbar.removeClass('scrolled sleep');
166				}
167			} 
168			if ( st > 350 ) {
169				if ( !navbar.hasClass('awake') ) {
170					navbar.addClass('awake');	
171				}
172				
173				if(sd.length > 0) {
174					sd.addClass('sleep');
175				}
176			}
177			if ( st < 350 ) {
178				if ( navbar.hasClass('awake') ) {
179					navbar.removeClass('awake');
180					navbar.addClass('sleep');
181				}
182				if(sd.length > 0) {
183					sd.removeClass('sleep');
184				}
185			}
186		});
187	};
188	scrollWindow();
189
190	var isMobile = {
191		Android: function() {
192			return navigator.userAgent.match(/Android/i);
193		},
194			BlackBerry: function() {
195			return navigator.userAgent.match(/BlackBerry/i);
196		},
197			iOS: function() {
198			return navigator.userAgent.match(/iPhone|iPad|iPod/i);
199		},
200			Opera: function() {
201			return navigator.userAgent.match(/Opera Mini/i);
202		},
203			Windows: function() {
204			return navigator.userAgent.match(/IEMobile/i);
205		},
206			any: function() {
207			return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
208		}
209	};
210
211	
212	var counter = function() {
213		
214		$('#section-counter').waypoint( function( direction ) {
215
216			if( direction === 'down' && !$(this.element).hasClass('ftco-animated') ) {
217
218				var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',')
219				$('.number').each(function(){
220					var $this = $(this),
221						num = $this.data('number');
222						console.log(num);
223					$this.animateNumber(
224					  {
225					    number: num,
226					    numberStep: comma_separator_number_step
227					  }, 7000
228					);
229				});
230				
231			}
232
233		} , { offset: '95%' } );
234
235	}
236	counter();
237
238	var contentWayPoint = function() {
239		var i = 0;
240		$('.ftco-animate').waypoint( function( direction ) {
241
242			if( direction === 'down' && !$(this.element).hasClass('ftco-animated') ) {
243				
244				i++;
245
246				$(this.element).addClass('item-animate');
247				setTimeout(function(){
248
249					$('body .ftco-animate.item-animate').each(function(k){
250						var el = $(this);
251						setTimeout( function () {
252							var effect = el.data('animate-effect');
253							if ( effect === 'fadeIn') {
254								el.addClass('fadeIn ftco-animated');
255							} else if ( effect === 'fadeInLeft') {
256								el.addClass('fadeInLeft ftco-animated');
257							} else if ( effect === 'fadeInRight') {
258								el.addClass('fadeInRight ftco-animated');
259							} else {
260								el.addClass('fadeInUp ftco-animated');
261							}
262							el.removeClass('item-animate');
263						},  k * 50, 'easeInOutExpo' );
264					});
265					
266				}, 100);
267				
268			}
269
270		} , { offset: '95%' } );
271	};
272	contentWayPoint();
273
274
275	// navigation
276	var OnePageNav = function() {
277		$(".smoothscroll[href^='#'], #ftco-nav ul li a[href^='#']").on('click', function(e) {
278		 	e.preventDefault();
279
280		 	var hash = this.hash,
281		 			navToggler = $('.navbar-toggler');
282		 	$('html, body').animate({
283		    scrollTop: $(hash).offset().top
284		  }, 700, 'easeInOutExpo', function(){
285		    window.location.hash = hash;
286		  });
287
288
289		  if ( navToggler.is(':visible') ) {
290		  	navToggler.click();
291		  }
292		});
293		$('body').on('activate.bs.scrollspy', function () {
294		  console.log('nice');
295		})
296	};
297	OnePageNav();
298
299
300	// magnific popup
301// 	$('.image-popup').magnificPopup({
302//     type: 'image',
303//     closeOnContentClick: true,
304//     closeBtnInside: false,
305//     fixedContentPos: true,
306//     mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
307//      gallery: {
308//       enabled: true,
309//       navigateByImgClick: true,
310//       preload: [0,1] // Will preload 0 - before current, and 1 after the current image
311//     },
312//     image: {
313//       verticalFit: true
314//     },
315//     zoom: {
316//       enabled: true,
317//       duration: 300 // don't foget to change the duration also in CSS
318//     }
319//   });
320
321//   $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
322//     disableOn: 700,
323//     type: 'iframe',
324//     mainClass: 'mfp-fade',
325//     removalDelay: 160,
326//     preloader: false,
327
328//     fixedContentPos: false
329//   });
330})(jQuery);
331
332
333}

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.