PageSourceSearch

https://cannindah.com.au/wp-content/themes/cannindah-resources-ltd/js/custom.js?ver=1.0.0

js cannindah.com.au collected 2026-10-08 11:25:52 UTC 9,054 bytes, 276 lines download raw bytes

1jQuery(document).ready(function(){
2    jQuery(window).on("load",function(){
3        if (window.matchMedia('(max-width: 767PX)').matches) {
4            jQuery('.profile_block a').on('click',function () {
5                jQuery(this).parent().siblings().slideToggle('slide');
6                jQuery(this).parent().parent().toggleClass('active');                
7                jQuery(this).parent().parent().siblings().removeClass('active');
8                jQuery(this).parent().parent().siblings().children('.leadership_mobile_info').slideUp('medium');
9
10            });
11        }else{
12            jQuery('.profile_block a').on('click',function () {
13                var teamid = jQuery(this).attr('data-modalid');
14                jQuery(".team_modal .leadership_info").not("#"+teamid).hide();        
15                jQuery(this).parents(".leadership_profile").siblings('.team_modal').children('#'+teamid).slideToggle();
16            });
17        }
18    });
19    jQuery('.close_icon').on('click',function () { 
20        jQuery(this).parent().slideUp();
21    });
22
23    jQuery('header').addClass('fixed-header');
24
25    if (jQuery('.home').length) {         
26        jQuery('header').removeClass('fixed-header');
27        jQuery(window).scroll(function(){
28            if (jQuery(window).scrollTop() >= 100) {
29                jQuery('header').addClass('fixed-header');
30            } else {
31                jQuery('header').removeClass('fixed-header');
32            }
33        });
34    }
35
36    if (jQuery(window).scrollTop() >= 100) {
37        jQuery('header').addClass('fixed-header');
38    }      
39
40    jQuery(".toggle_nav, .close").click(function(){
41        jQuery("body").toggleClass("show_menu");
42    });
43
44    jQuery('.latest_project').owlCarousel({
45        loop:false,
46        margin:30,
47        nav:true,
48        center: false,
49        responsive : {
50            0 : {
51                items:1,
52            },
53            480 : {
54                items:2,
55            },
56            992 : {
57                items:2,
58            },
59            1200 : {
60                items:3,
61            }
62        }            
63    });
64
65    jQuery('.banner_background_slider').owlCarousel({
66        items: 1,
67        slideSpeed: 1000,
68        autoplayTimeout: 3000,
69        nav: false,
70        autoplay: true,
71        dots: false,
72        loop: true,
73        responsiveRefreshRate: 200,
74        animateOut: 'fadeOut'
75    });
76
77    jQuery('.accordion-wrapper .btn-wrapper button').click(function(){
78        jQuery(this).parent().siblings().slideToggle('slide');
79        jQuery(this).parent().parent().toggleClass('active');
80        jQuery(this).parent().parent().siblings().removeClass('active');
81        jQuery(this).parent().parent().siblings().children('.collepsing-div').slideUp('medium');
82    });
83
84    jQuery(".drop-icon").click(function() {
85        jQuery(".drodown_list").slideToggle(500);
86    });
87
88    jQuery('.videomain').click(function () {
89        if(jQuery(this).find('.video').get(0).paused){
90            jQuery(this).find('.video').get(0).play();
91            jQuery(this).find('.playpause').fadeOut();
92        }else{
93            jQuery(this).find('.video').get(0).pause();
94            jQuery(this).find('.playpause').fadeIn();
95        }
96    });
97
98    if(jQuery('#big').length){
99        var bigimage = jQuery("#big");
100        var thumbs = jQuery("#thumbs");
101        var syncedSecondary = true;
102        bigimage.owlCarousel({
103            items: 1,
104            slideSpeed: 2000,
105            nav: false,
106            autoplay: true,
107            dots: false,
108            loop: true,
109            responsiveRefreshRate: 200,
110        }).on("changed.owl.carousel", syncPosition);
111            
112        thumbs.on("initialized.owl.carousel", function() {
113            thumbs.find(".owl-item").eq(0).addClass("current");
114        }).owlCarousel({
115            dots: false,
116            nav: true,
117            items: 4,
118            margin:10,
119            smartSpeed: 200,
120            slideSpeed: 500,
121            slideBy: 1,
122            responsiveRefreshRate: 100
123        }).on("changed.owl.carousel", syncPosition2);
124
125        function syncPosition(el) {
126            var count = el.item.count - 1;
127            var current = Math.round(el.item.index - el.item.count / 2 - 0.5);
128            if (current < 0) {
129                current = count;
130            }
131            if (current > count) {
132                current = 0;
133            }
134
135            thumbs.find(".owl-item").removeClass("current").eq(current)
136            var onscreen = thumbs.find(".owl-item.active").length - 1;
137            var start = thumbs.find(".owl-item.active").first().index();
138            var end = thumbs.find(".owl-item.active").last().index();
139            if (current > end) {
140                thumbs.data("owl.carousel").to(current, 100, true);
141            }
142            if (current < start) {
143                thumbs.data("owl.carousel").to(current - onscreen, 100, true);
144            }
145        }
146
147        function syncPosition2(el) {
148            if (syncedSecondary) {
149                var number = el.item.index;
150                bigimage.data("owl.carousel").to(number, 100, true);
151            }
152        }
153
154        thumbs.on("click", ".owl-item", function(e) {
155            e.preventDefault();
156            var number = $(this).index();
157            bigimage.data("owl.carousel").to(number, 300, true);
158        });
159    }
160
161    /*Filter*/
162    jQuery('.post_tabing li a').on('click', function() {
163        jQuery(".post_tabing li a").removeClass('active');
164        jQuery(this).addClass('active');
165        pageNumber = 1;
166        var obj    = 'true';
167        var postcat =  jQuery(this).attr('data-value');
168        load_contents(postcat,obj);
169    });
170
171    /*Load More Button*/
172    jQuery(document).on("click", ".post_listing_wrap a.more_posts", function() {
173        var obj = '';
174        var postcat = jQuery(".post_tabing li a.active").attr('data-value');
175        if(postcat != '') { 
176            postcat = postcat; 
177        } else { 
178            postcat = 'All'; 
179        }
180        load_contents(postcat,obj);
181    });
182
183    //AOS.init();
184
185    AOS.init({
186		disable: 'mobile'
187    });
188    
189
190    jQuery(document).on('click', '.investors-left ul li a[href^="#"]', function (event) {
191        jQuery('.investors-left ul li a').removeClass('active');
192        jQuery(this).addClass('active');
193        event.preventDefault();
194        jQuery('html, body').animate({
195            scrollTop: jQuery(jQuery.attr(this, 'href')).offset().top-120
196        }, 1000);
197    });
198    
199    jQuery(window).scroll(function() {
200        var scrollDistance = jQuery(window).scrollTop();    
201        jQuery('.investors_title').each(function(i) {
202            if (jQuery(this).position().top <= scrollDistance) {
203                jQuery('.investors-left a.active').removeClass('active');
204                jQuery('.investors-left a').eq(i).addClass('active');
205            }
206        });
207    });
208    
209});
210
211/*Filter function*/
212var pageNumber = 2; 
213var gppp = 4;
214var ajax_running = 0;
215function load_contents(postcat,obj) {
216    jQuery('.loading-info').show();
217    if(obj == 'true'){
218        var dataString  = {
219            'postcat': postcat,
220            'action': 'loadmorepost'  
221        };
222    } else {
223        var dataString  = {
224            'pageNumber': pageNumber,
225            'ppp': gppp,
226            'postcat': postcat,
227            'action': 'loadmorepost'  
228        };
229    }
230    jQuery('.load-more-img').show();
231    var ajaxurl = admin_url;
232    jQuery.ajax({
233        type: "POST",
234        url: ajaxurl,
235        data: dataString,
236        success: function(data){
237            jQuery('.load-more-img').hide();
238            pageNumber++;
239            var json_obj = jQuery.parseJSON(data);
240            if(json_obj["data"] != '') {
241                jQuery('.show-more-data .no-post').hide();
242                if(json_obj["count"] >= 6) {
243                    jQuery('a.more_posts').show();
244                } else { 
245                    jQuery('a.more_posts').hide();
246                }
247                if(obj == 'true'){
248                    jQuery(".post_listing_wrap .our_work_slider-wrap").html(json_obj["data"]);
249                } else {
250                    jQuery(".post_listing_wrap .our_work_slider-wrap").append(json_obj["data"]);
251                }
252            } else {
253                if(obj == 'true'){
254                    jQuery(".post_listing_wrap .our_work_slider-wrap").html(json_obj["data"]);
255                } else {
256                    jQuery(".post_listing_wrap .our_work_slider-wrap").append(json_obj["data"]);
257                }
258
259                jQuery('.show-more-data .no-post').show();
260                jQuery('a.more_posts').hide();
261            }
262        }
263    });
264}
265
266
267jQuery(window).on("load",function(){    
268    checkPosition();
269});
270function checkPosition() {
271    jQuery('.navigation ul li.menu-item-has-children > a').append('<span class="dropdown_icon"></span>');
272    jQuery(".dropdown_icon").click(function(){
273        jQuery(this).parent().children('.sub-menu').toggleClass("open");
274        jQuery(this).toggleClass("btn-open");
275    });
276}

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.