PageSourceSearch

https://www.mcul.org/templates/mcul_2026/js/main.js

js mcul.org collected 2026-09-26 02:39:24 UTC 3,125 bytes, 110 lines download raw bytes

1//toggle level 2 menus in mobile menu
2$("button.L1").click(function() {
3	let dd = $(this).attr("aria-controls")
4	$('#'+dd).slideToggle()
5	$(this).toggleClass("active")
6})
7//toggle level 3 menus in mobile menu
8$(".L2 button").click(function() {
9	let dd = $(this).attr("aria-controls")
10	$('#'+dd).slideToggle()
11	$(this).toggleClass("active")
12})
13
14//close menus
15$("section").click(function() {
16	if($(window).width() >= 1400) {
17		hideMenus();
18	}
19})
20
21function toggleSearch() {
22	$(".search-wrapper").toggleClass("open");
23	if($(".search-wrapper").hasClass("open")) {
24		$(".search-toggle").attr("aria-expanded", "true");
25	} else {
26		$(".search-toggle").attr("aria-expanded", "false");
27	}
28}
29
30function hideMenus() {
31	$(".ddcontent").each(function(){$(this).hide()})
32	$("button.CMitem.active").each(function() {$(this).removeClass("active")})
33}
34
35
36//open/close mobile menu
37function toggleMobileMenu() {
38	$("#mobile_menu").toggleClass("open");
39}
40
41$(".ddcontent .dd-close").click(function() {
42	$(this).parent().slideUp()
43})
44
45function applyAnimations() {
46    let x = 1;
47    $(".content_calendar_list li").each(function() {
48        let delay = x * .1;
49        $(this).addClass("wow fadeInUp").attr("data-wow-delay", "0."+x+"s");
50        x++;
51    });
52    $(".ddcontent .content_calendar_list li").each(function() {
53        $(this).removeClass("wow")
54    });
55    x = 1;
56    $(".news-link").each(function() {
57        let delay = x * .1;
58        $(this).addClass("wow fadeInUp").attr("data-wow-delay", "0."+x+"s");
59        x++;
60    });
61    x = 1;
62    $(".article-wrapper").each(function() {
63        let delay = x * .1;
64        $(this).addClass("wow slideInRight").attr("data-wow-delay", "0."+x+"s");
65        x++;
66    });
67    x = 1;
68    $(".home-solution-links>a").each(function() {
69        let delay = x * .1;
70        $(this).addClass("wow fadeInUp").attr("data-wow-delay", "0."+x+"s");
71        x++;
72    });
73    x = 1;
74    $(".solution-links>a").each(function() {
75        let delay = x * .1;
76        $(this).addClass("wow fadeInUp").attr("data-wow-delay", "0."+x+"s");
77        x++;
78    });
79    x = 1;
80    $(".solution-boxes>div").each(function() {
81        let delay = x * .1;
82        $(this).addClass("wow slideInRight").attr("data-wow-delay", "0."+x+"s");
83        x++;
84    });
85    x = 1;
86    $(".awards .photo-card").each(function() {
87        let delay = x * .1;
88        $(this).addClass("wow fadeInUp").attr("data-wow-delay", "0."+x+"s");
89        x++;
90    });
91    x = 1;
92    $(".two-card").each(function() {
93        let delay = x * .1;
94        $(this).addClass("wow fadeInUp").attr("data-wow-delay", "0."+x+"s");
95        x++;
96    });
97    x = 1;
98    $(".three-card").each(function() {
99        let delay = x * .1;
100        $(this).addClass("wow fadeInUp").attr("data-wow-delay", "0."+x+"s");
101        x++;
102    });
103    x = 1;
104    $(".four-card").each(function() {
105        let delay = x * .1;
106        $(this).addClass("wow fadeInUp").attr("data-wow-delay", "0."+x+"s");
107        x++;
108    });
109    $(".news-wrapper").addClass("wow fadeInUp");
110}

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.