PageSourceSearch

https://centenoschultz.com/wp-content/themes/centeno-schultz/paradox/js/script.js?ver=1790915206

js centenoschultz.com collected 2026-10-02 04:27:26 UTC 5,183 bytes, 141 lines download raw bytes

1// custom js
2jQuery(document).ready(function() {
3	// IP Address if custom, leave blank to lookup current IP Address
4	var ip = '';
5	// Pull IP Address and Display Live Chat for USA Visitors Only
6	jQuery.ajax({
7		method: 'GET',
8		contentType: 'application/json',
9		url: 'https://ipwho.is/' + ip,
10		dataType: 'json',
11		success: function(ipwhois) {
12			//console.log(ipwhois.country_code);
13			// Display Live Chat for USA Visitors Only
14			if (ipwhois.country_code == "US") {
15				window.__lc = window.__lc || {};
16				window.__lc.license = 15103269;
17				;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},init:function(){var n=t.createElement("script");n.async=!0,n.type="text/javascript",n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))
18			}
19		}
20	});
21
22	jQuery(window).scroll(function (event) {
23		// Show CTA Book Form when scroll reached at the top
24		var scroll = jQuery(window).scrollTop();
25		if (jQuery(window).width() >= 768) {
26			// check if content section exist
27			if (jQuery('.cg-content-section').length) {
28				if (scroll >= jQuery('.cg-content-section').offset().top) {
29					if (!jQuery('.csc-cta-book-form .dialog-widget-content').is(':hidden')) {
30						jQuery('.csc-cta-book-form .dialog-widget-content').removeClass('FadeIn');
31						jQuery('.csc-cta-book-form .dialog-widget-content').removeClass('csc-cta-show-popup');
32						jQuery('.csc-cta-book-form .dialog-widget-content').addClass('csc-cta-hide-popup');
33						jQuery('.csc-cta-book-form .dialog-widget-content').addClass('fadeOut');
34						setTimeout(function() { 
35							jQuery('.csc-cta-book-form .dialog-widget-content').hide();
36						}, 300);
37					}
38				}
39				else {
40					if (jQuery('.csc-cta-book-form .dialog-widget-content').is(':hidden')) {
41						jQuery('.csc-cta-book-form .dialog-widget-content').show();
42						jQuery('.csc-cta-book-form .dialog-widget-content').addClass('csc-cta-show-popup');
43						jQuery('.csc-cta-book-form .dialog-widget-content').addClass('FadeIn');	
44						jQuery('.csc-cta-book-form .dialog-widget-content').removeClass('fadeOut');
45						jQuery('.csc-cta-book-form .dialog-widget-content').removeClass('csc-cta-hide-popup');
46					}
47				}
48			}
49		}
50		// Scroll to Top
51		// check if scroll to top exist
52		if (jQuery('.csc-scroll-to-top').length) {
53			if (scroll >= 540) {
54				if (jQuery('.csc-scroll-to-top').is(':hidden')) {
55					jQuery('.csc-scroll-to-top').show();
56				}
57			}
58			else {
59				if (!jQuery('.csc-scroll-to-top').is(':hidden')) {
60					jQuery('.csc-scroll-to-top').hide();
61				}
62			}
63		}
64		
65		// add class to in the body element
66		if (jQuery(this).scrollTop() > 50) {
67			jQuery('body').addClass('fixed-scroll');
68		} else {
69			jQuery('body').removeClass('fixed-scroll');
70		}
71		
72	});
73	// trigger the scroll
74	jQuery(window).scroll();//ensure if you're in current position when page is refreshed
75	// When the user clicks on the button, scroll to the top of the document
76	jQuery('.csc-scroll-to-top').click(function() {
77		document.body.scrollTop = 0; // For Safari
78		document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
79	});
80	
81	
82//	$('.cci-redirection #inf_custom_PrimaryProblemArea').on('change', function() {
83//       var selectedValue = $(this).val();
84		
85// 		if (selectedValue === 'Craniocervical Instability (CCI)') {
86			
87// 			$('#infusion-submit').hide();  // Hide the button
88// 			$('#infusion-button-next').show();  // show next button
89			
90// 		} else {
91			
92// 			$('#infusion-submit').show();  // Show the button
93// 			$('#infusion-button-next').hide();  // Hide the button
94			
95// 		}
96			
97//     });
98
99	
100
101//     // Initial check in case a default value is set
102//     $('#inf_custom_PrimaryProblemArea').trigger('change');
103 
104});
105
106//START - Telemedicine Consultation Page
107document.addEventListener("DOMContentLoaded", function () {
108  const btnA = document.getElementById('cci-details-a');
109  const contentA = document.querySelector('.cci-details-a-class');
110
111  const btnB = document.getElementById('cci-details-b');
112  const contentB = document.querySelector('.cci-details-b-class');
113
114  btnA.addEventListener('click', function () {
115    // Toggle classes
116    btnA.classList.add('active');
117    btnA.classList.remove('inactive');
118
119    btnB.classList.remove('active');
120    btnB.classList.add('inactive');
121
122    // Toggle content
123    contentA.style.display = 'block';
124    contentB.style.display = 'none';
125  });
126
127  btnB.addEventListener('click', function () {
128    // Toggle classes
129    btnB.classList.add('active');
130    btnB.classList.remove('inactive');
131
132    btnA.classList.remove('active');
133    btnA.classList.add('inactive');
134
135    // Toggle content
136    contentB.style.display = 'block';
137    contentA.style.display = 'none';
138  });
139});
140//END - Telemedicine Consultation Page
141

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.