PageSourceSearch

https://www.smiledoctor.com.au/wp-content/themes/smiledoctor/assets/js/custom.js?ver=01%3A11%3A01

js smiledoctor.com.au collected 2026-10-06 13:12:10 UTC 4,530 bytes, 167 lines download raw bytes

1jQuery( document ).ready(function() {
2	
3	/* Home page services tabbing */
4	if(jQuery('.TabsMainSection').length > 0 ){
5		jQuery(".TabsMainSection").each(function(){
6		  jQuery('.TabsMainSection .TabList li:first-child').addClass('current');
7		  jQuery('.TabsMainSection .TabContent:first-child').addClass('active');
8		  jQuery('.TabsMainSection .TabList li').on('click',function(e){
9			e.preventDefault();
10			var currLink = jQuery(this);
11			jQuery(this).addClass('current').siblings("li").removeClass('current');
12			var navi = jQuery(this).attr('data-name');
13			jQuery(this).closest('.TabsMainSection').find('.TabContent').removeClass('active');
14			jQuery(this).closest('.TabsMainSection').find('div.'+navi).addClass('active');
15		  });
16		});
17	}
18	
19	/* homepage team slider */
20	
21	jQuery("#team-slider").owlCarousel({
22	  autoplay: false,
23	  margin: 20,
24	  loop: true,
25	  center:false,
26	  responsiveClass: true,
27	  autoHeight: true,
28	  autoplayTimeout: 7000,
29	  smartSpeed: 800,
30	  nav: true,
31	  responsive: {
32		0: {
33		  items: 1.5
34		},
35
36		600: {
37		  items: 2.5
38		},
39
40		1024: {
41		  items: 3.5
42		},
43
44		1366: {
45		  items: 3.5
46		}
47	  }
48	});
49
50	/* add class on scroll */
51	jQuery(window).scroll(function() {    
52		var scroll = jQuery(window).scrollTop();
53
54		if (scroll >= 30) {
55			jQuery("div.header-postion").addClass("darkHeader");
56		} else {
57			jQuery("div.header-postion").removeClass("darkHeader");
58		}
59	});
60	
61	/* homepage accordion */
62	jQuery(".new_set > a").on("click", function() {
63		jQuery(".new_set > a").parent().removeClass("new_coler");
64
65		if (jQuery(this).hasClass("active")) {
66			jQuery(this).removeClass("active");
67			jQuery(this).parent().removeClass("new_coler");
68			jQuery(this).siblings(".tabbing_all_content").slideUp(200);
69			jQuery(".new_set > a i").removeClass("fa-minus").addClass("fa-plus");
70		} else {
71			jQuery(".new_set > a i").removeClass("fa-minus").addClass("fa-plus");
72			jQuery(this).find("i").removeClass("fa-plus").addClass("fa-minus");
73			jQuery(".new_set > a").removeClass("active");
74			jQuery(this).addClass("active");
75			jQuery(this).parent().addClass("new_coler");
76			jQuery(".tabbing_all_content").slideUp(200);
77			jQuery(this).siblings(".tabbing_all_content").slideDown(200);
78		}
79	});
80
81    // Collect FAQ data from your Elementor FAQ widget
82    var faqData = [];
83
84    jQuery('.elementor-accordion-item').each(function() {
85        var question = jQuery(this).find('.elementor-tab-title').text().trim();
86        var answer = jQuery(this).find('.elementor-tab-content').text().trim();
87
88        if (question && answer) {
89            faqData.push({
90                "@type": "Question",
91                "name": question,
92                "acceptedAnswer": {
93                    "@type": "Answer",
94                    "text": answer
95                }
96            });
97        }
98    });
99
100    if (faqData.length > 0) {
101        var schema = {
102            "@context": "https://schema.org",
103            "@type": "FAQPage",
104            "mainEntity": faqData
105        };
106
107        // Inject schema into <head>
108        var scriptTag = document.createElement('script');
109        scriptTag.type = "application/ld+json";
110        scriptTag.text = JSON.stringify(schema);
111        document.head.appendChild(scriptTag);
112    }
113
114
115});
116
117
118
119jQuery(document).ready(function ($) {
120  var $owl = $('#MiniMakeoverSlide > .e-con-inner');
121
122  function initOwl() {
123    if (window.innerWidth < 768) {
124      if (!$owl.hasClass('owl-loaded')) {
125        $owl.owlCarousel({
126          items: 1,
127          loop: true,
128          margin: 10,
129          dots: false,
130          nav: true,
131          navText: [
132            '<span class="owl-prev">&#10094;</span>',
133            '<span class="owl-next">&#10095;</span>'
134          ],
135          autoplay: false,
136          autoplayTimeout: 4000,
137          smartSpeed: 500,
138          onInitialized: moveNavInside,
139          onResized: moveNavInside
140        });
141      }
142    } else {
143      if ($owl.hasClass('owl-loaded')) {
144        $owl.trigger('destroy.owl.carousel');
145        $owl.find('.owl-stage-outer').children().unwrap();
146        $('#MiniMakeoverSlide .owl-nav').remove(); 
147      }
148    }
149  }
150  function moveNavInside() {
151    var $nav = $('#MiniMakeoverSlide .owl-nav');
152    if ($nav.length) {
153      $('#MiniMakeoverSlide .elementor-flip-box__layer__inner').each(function () {
154        if ($(this).find('.owl-nav').length === 0) {
155          $(this).append($nav.clone(true));
156        }
157      });
158      $nav.hide(); 
159    }
160  }
161  initOwl();
162  $(window).on('resize', function () {
163    initOwl();
164  });
165});
166
167

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.