PageSourceSearch

https://ascomycete.org/Portals/_default/skins/garden/Scripts/CustomScript.js

js ascomycete.org collected 2026-10-02 07:51:21 UTC 11,264 bytes, 366 lines download raw bytes

1
2jQuery(window).load(function () {
3    jQuery("#Container").css("opacity", "1");
4});
5
6
7jQuery(document).ready(function(e) {
8
9    //Start Rotating Card code
10    jQuery().ready(function () {
11        $('[rel="tooltip"]').tooltip();
12    });
13
14    function rotateCard(btn) {
15        var $card = $(btn).closest('.card-container');
16        console.log($card);
17        if ($card.hasClass('hover')) {
18            $card.removeClass('hover');
19        } else {
20            $card.addClass('hover');
21        }
22    } //close Rotating Card code
23
24    jQuery('.counter').counterUp({
25        delay: 10,
26        time: 1000
27    });
28
29    jQuery(function () {
30        $('.chart').easyPieChart({    
31            barColor: '#999',
32            trackColor: '#fff',
33            lineWidth: 5,
34            trackWidth: 4,
35            animate: 2000,
36            onStep: function (from, to, percent) {
37                $(this.el).find('.percent').text(Math.round(percent));
38            }
39        });
40    });
41
42
43    /*---------------------------------------------------- */
44    /* Final Countdown Settings
45	------------------------------------------------------ */
46    var finalDate = '2018/12/12';
47    jQuery('div#counter').countdown(finalDate)
48   	.on('update.countdown', function (event) {
49   	    jQuery(this).html(event.strftime('<span>%D <em>days</em></span>' +
50   										 	 '<span>%H <em>hours</em></span>' +
51   										 	 '<span>%M <em>minutes</em></span>' +
52   										 	 '<span>%S <em>seconds</em></span>'));
53   	});
54
55
56    /*-------  All Slider Start  ------*/
57    jQuery('.flexslider').flexslider({ animation: "slide" }); 
58    jQuery('#slider').nivoSlider();
59
60    jQuery('.bxslider').bxSlider({
61        mode: 'fade'
62    });
63
64    jQuery('.bxsliderCaption').bxSlider({
65        mode: 'horizontal'
66    });
67
68    jQuery('.bxslider_slide').bxSlider({
69        mode: 'horizontal'
70    });
71
72    jQuery('.bxTweets').bxSlider({
73        mode: 'horizontal',
74        speed: 1000,
75        adaptiveHeightSpeed: 2000,
76        auto: true 
77    });
78
79    /*------- Footer Top Carousel  ------*/
80    jQuery('.carousel').slick({
81      slidesToShow: 4,
82      slidesToScroll: 1,
83      autoplay: true,
84      autoplaySpeed: 5000,
85      responsive: [
86        {
87            breakpoint: 1024,
88            settings: {
89                slidesToShow: 3,
90                slidesToScroll: 1,
91                infinite: true,
92                dots: true
93            }
94        },
95        {
96            breakpoint: 767,
97            settings: {
98                slidesToShow: 2,
99                slidesToScroll: 1
100            }
101        }
102    ]
103    });
104
105
106    /*-------  Recent Works Carousel  ------*/
107
108    jQuery('.carouselRW').slick({
109        slidesToShow: 5,
110        slidesToScroll: 1,
111        autoplay: true,
112        autoplaySpeed: 5000,
113        responsive: [
114        {
115        breakpoint: 1024,
116        settings: {
117            slidesToShow: 4,
118            slidesToScroll: 1,
119            infinite: true,
120            dots: true
121            }
122        },
123        {
124        breakpoint: 767,
125        settings: {
126            slidesToShow: 1,
127            slidesToScroll: 1
128            }
129        }
130    ]
131    });
132
133
134/*-------  Meet Our Team Carousel  ------*/
135
136    jQuery('.carouselMOT').slick({
137        slidesToShow: 4,
138        slidesToScroll: 1,
139        autoplay: true,
140        autoplaySpeed: 3400,
141        responsive: [
142            {
143                breakpoint: 1024,
144                settings: {
145                    slidesToShow: 4,
146                    slidesToScroll: 1,
147                    infinite: true,
148                    dots: true
149                }
150            },
151            {
152                breakpoint: 767,
153                settings: {
154                    slidesToShow: 1,
155                    slidesToScroll: 1
156                }
157            }
158        ]
159     });
160    /*-------  All Slider Close  ------*/
161
162    jQuery("#accordion").accordion({ active: false, collapsible: true, autoHeight: false });
163
164    jQuery(".player").mb_YTPlayer();
165
166
167    /*-------  Photo Gallery Start  ----*/
168
169    jQuery(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({ animation_speed: 'normal', theme: 'light_square', slideshow: 3000, autoplay_slideshow: true });
170    jQuery(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({ animation_speed: 'fast', slideshow: 10000, hideflash: true });
171
172    /*-------  Photo Gallery Close  ----*/
173
174
175    /*-------  Testimonials Start  ----*/
176    jQuery('ul#quotes').quote_rotator();
177    jQuery('ul#button_quotes').quote_rotator({
178        buttons: { next: '>>', previous: '<<' }
179    });
180    /*-------  Testimonials Close  ----*/
181
182
183
184    /*-------  Search Start  ----------*/
185    jQuery(".MainSearchIcon").click(function () {
186        jQuery(".SlideSearchButton").slideToggle("first");
187    });
188
189    /*-------  Search Close  ----------*/
190
191
192    jQuery('#da-slider').cslider({
193        autoplay: true,
194        bgincrement: 450
195    });
196
197
198    /*-------  Touch Layer Slider Start  ----------*/
199
200    jQuery('#example1').sliderPro({
201        width: '100%',
202        height: 400,
203        arrows: true,
204        buttons: false,
205        waitForLayers: true,
206        thumbnailWidth: 200,
207        thumbnailHeight: 100,
208        thumbnailPointer: true,
209        autoplay: true,
210        autoScaleLayers: false,
211        breakpoints: {
212            500: {
213                thumbnailWidth: 120,
214                thumbnailHeight: 50
215            }
216        }
217    });
218
219
220    /*-------  Touch Layer Slider Option 2  ----------*/
221
222    jQuery('#example2').sliderPro({
223        width: '50%',
224        height: 500,
225        aspectRatio: 1.5,
226        visibleSize: '100%',
227        forceSize: 'fullWidth'
228    });
229
230    // instantiate fancybox when a link is clicked
231    jQuery('#example2 .sp-image').parent('a').on('click', function (event) {
232        event.preventDefault();
233
234        // check if the clicked link is also used in swiping the slider
235        // by checking if the link has the 'sp-swiping' class attached.
236        // if the slider is not being swiped, open the lightbox programmatically,
237        // at the correct index
238        if (jQuery('#example2').hasClass('sp-swiping') === false) {
239            jQuery.fancybox.open($('#example2 .sp-image').parent('a'), { index: $(this).parents('.sp-slide').index() });
240        }
241    });
242
243
244    /*-------  Touch Layer Slider Option 3  ----------*/
245
246
247    /*-------  Carousel Start  --------*/
248    jQuery("#flexiselDemo3").flexisel({
249        visibleItems: 5,
250        animationSpeed: 1000,
251        autoPlay: true,
252        autoPlaySpeed: 3000,
253        pauseOnHover: true,
254        enableResponsiveBreakpoints: true,
255        responsiveBreakpoints: {
256            portrait: {
257                changePoint: 480,
258                visibleItems: 1
259            },
260            landscape: {
261                changePoint: 640,
262                visibleItems: 2
263            },
264            tablet: {
265                changePoint: 768,
266                visibleItems: 3
267            }
268        }
269    });
270
271    /*-------  Carousel Close  --------*/
272
273
274    /*-------  Scroll Start  ----------*/
275    jQuery(window).scroll(function () {
276        if (jQuery(this).scrollTop() > 200) {
277            jQuery('.totop:hidden').stop(true, true).fadeIn();
278        }
279        else {
280            jQuery('.totop').stop(true, true).fadeOut();
281        }
282    });
283    jQuery('.totop span').click(function () {
284        jQuery('html,body').animate({ scrollTop: 0 }, 'medium');
285        return false;
286    });
287
288    /*-------  Scroll Close  --------*/
289
290
291
292    /*-------  StickyHeader Start  --*/
293    jQuery(window).scroll(function () {
294        if (jQuery(this).scrollTop() > 250) {
295            jQuery('#logoPart').addClass('sticky');
296            jQuery('#Logo').addClass('SmallLogo');
297            jQuery('.MainSearchIcon').addClass('LittleSearch');
298            jQuery('.Menu').addClass('SmallMenu');
299        }
300        else {
301            jQuery('#logoPart').removeClass('sticky');
302            jQuery('#Logo').removeClass('SmallLogo');
303            jQuery('.MainSearchIcon').removeClass('LittleSearch');
304            jQuery('.Menu').removeClass('SmallMenu');
305        }
306    }); 
307
308    /*-------  StickyHeader Close  --*/
309
310
311    /*-------  Main Menu Start ------*/
312    jQuery(".mmenu").hide();
313    jQuery(".mtoggle").click(function () {
314        jQuery(".mmenu").slideToggle(500);
315    });
316
317
318    /*-------  Close Main Menu  -----*/
319
320
321
322    /*-------  Start horizontalTab  -----*/
323
324    jQuery('#horizontalTab').easyResponsiveTabs({
325        type: 'default', //Types: default, vertical, accordion           
326        width: 'auto', //auto or any width like 600px
327        fit: true,   // 100% fit in a container
328        closed: 'accordion', // Start closed if in accordion view
329        activate: function (event) { // Callback function if tab is switched
330            var $tab = $(this);
331            var $info = $('#tabInfo');
332            var $name = $('span', $info);
333
334            $name.text($tab.text());
335
336            $info.show();
337        }
338    });
339
340    /*-------  Close horizontalTab  -----*/
341
342
343
344    /*-------  Start verticalTab  -----*/
345    jQuery('#verticalTab').easyResponsiveTabs({
346        type: 'vertical',
347        width: 'auto',
348        fit: true
349    });
350
351    /*-------  Close verticalTab  -----*/
352
353
354    var initialWidth=0; var windowWidth=0; var subMenu; function megaHoverOver() { $(this).addClass('mmItemHover').find(".megaborder").stop().show(); windowWidth=$(window).width(); subMenu=$(this).find(".megaborder"); setDimensions($(this)); } function megaHoverOut() { $(this).removeClass('mmItemHover').find(".megaborder").stop().fadeOut('fast', function () { $(this).hide(); }); }
355    function setDimensions(obj) { maxWidth=0;maxHeight=0;numColumns=0;maxColumns=3; obj.find("li.category").each(function(){numColumns++; if (initialWidth == 0) initialWidth = $(this).width() + 10; maxWidth = (initialWidth > maxWidth) ? initialWidth : maxWidth; }); maxWidth = (numColumns > maxColumns) ? (maxWidth * maxColumns) : (maxWidth * numColumns); obj.find("li.category").each(function () { maxHeight = ($(this).height() > maxHeight) ? $(this).height() : maxHeight; }); obj.find(".megaborder").css({ 'width':maxWidth-22 }); var rightPos=subMenu.offset().left+subMenu.width(); console.log(rightPos + " " + windowWidth); if (rightPos > windowWidth) { $(subMenu).css("margin-left",-rightPos+windowWidth-22); } obj.find("li.category").each(function () { var thisPosition=$(this).index()+1; if (thisPosition % 3 == 0) { $(this).addClass("mmRightColumn"); } }); }
356    var config = { sensitivity: 2, interval: 100, over: megaHoverOver, timeout: 0, out: megaHoverOut }; $("ul.dnnmega li.mmHasChild").hoverIntent(config); var firstTouch = true; $("ul.dnnmega li.mmHasChild").bind("touchstart", function () { if (firstTouch) { firstTouch = false; setDimensions($(this)); $(this).find(".megaborder").stop().show(); return false; } });
357
358
359}); // Colse DR Script //
360
361
362// Reveal Animations When Scrolling
363new WOW().init();
364
365
366

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.