PageSourceSearch

https://www.hwunion.com/stylesheet/hw/profile25.js?v=73

js hwunion.com collected 2026-10-02 08:09:25 UTC 7,171 bytes, 166 lines download raw bytes

1$( document ).ready(function() {
2    
3    if ($("#profile-list").length > 0) {
4        $(".profile-card").addClass("show-item show-item-dept")
5        $( ".profile-card" ).each(function( index ) {
6            //if ($(this).data("grouping").length > 0) {
7            if ($(this).data("grouping")) {
8                grArr = $(this).data("grouping").split(",");
9                for (i=0;i<grArr.length;i++) {
10                    $(this).addClass(grArr[i]);
11                }
12                $(this).addClass("show-item");
13            }
14            //if ($(this).data("department").length > 0) {
15            if ($(this).data("department")) {
16                grArr = $(this).data("department").split(",");
17                for (i=0;i<grArr.length;i++) {
18                    $(this).addClass(grArr[i]);
19                }
20                $(this).addClass("show-item-dept");
21            }
22        });
23        
24        $('#profile-filters li:not(#all)').click(function () {
25				if ($(this).hasClass('active')) {
26				    // Click filter that isn't ALL and is currently active
27					$('#all').addClass('active'); //make ALL active
28					$(this).removeClass("active"); //make this not active
29					$("#profile-list .profile-card").addClass("show-item");
30					console.log("OK");
31				}
32				else {
33				    // Click filter that isn't ALL and isn't currently active
34				    $("#profile-list .profile-card").removeClass("show-item");
35					$('#profile-filters li').removeClass('active');
36					$(this).toggleClass('active');
37					cat = $(this).attr('id');
38                    $("#profile-list .profile-card." + cat).addClass("show-item");
39                    console.log("OK");
40				}
41		});
42		$('#profile-filters #all').click(function () {
43			if (!$(this).hasClass('active')) {
44				$('#profile-filters li').removeClass('active');
45				$(this).addClass('active');
46				$("#profile-list .profile-card").addClass("show-item");
47				console.log("OK");
48			}
49		});
50		
51		$('#profile-filters-dept li:not(#all-dept)').click(function () {
52				if ($(this).hasClass('active')) {
53				    // Click filter that isn't ALL and is currently active
54					$('#all-dept').addClass('active'); //make ALL active
55					$(this).removeClass("active"); //make this not active
56					$("#profile-list .profile-card").addClass("show-item-dept");
57					console.log("OK");
58				}
59				else {
60				    // Click filter that isn't ALL and isn't currently active
61				    $("#profile-list .profile-card").removeClass("show-item-dept");
62					$('#profile-filters-dept li').removeClass('active');
63					$(this).toggleClass('active');
64					cat = $(this).attr('id');
65                    $("#profile-list .profile-card." + cat).addClass("show-item-dept");
66                    console.log("OK");
67				}
68		});
69		$('#profile-filters-dept #all-dept').click(function () {
70			if (!$(this).hasClass('active')) {
71				$('#profile-filters-dept li').removeClass('active');
72				$(this).addClass('active');
73				$("#profile-list .profile-card").addClass("show-item-dept");
74				console.log("OK");
75			}
76		});
77		$("#prev-next").remove();
78        var urlcat = location.hash.match(/^#?(.*)$/)[1];
79        if (urlcat) {
80            $("#" + urlcat).trigger("click");
81        }
82    }
83    
84    if ($(".new-profile-container").length > 0) {
85        
86        $( ".profile-name" ).each(function( index ) {
87            titlesplit = $(this).html().split(",");
88            titlename = titlesplit[0];
89            titlerole = titlesplit[1];
90            $(this).html("<strong>" + titlename + "</strong>, " + titlerole);
91        });
92        
93        
94        
95        curpath = window.location.pathname;
96        
97        let x = Math.floor((Math.random() * 3) + 1);
98        var mainCol = "blue";
99        var subCol = "blue-light";
100        
101        switch (x) {
102            case 1:
103                mainCol = "pink";
104                subCol = "pink-light";
105                break;
106            case 2:
107                mainCol = "blue";
108                subCol = "blue-light";
109                break;
110            case 3:
111                mainCol = "grey";
112                subCol = "grey-light";
113                break;
114        }
115        
116        $(".breakout").addClass(mainCol);
117        $(".profile-image").addClass(subCol);
118        
119        //$("#breakout").append("<div class='col-12 px-0'><div class='row'><div class='col-6 text-left' id='nav-prev'><a class='nav-btn' href='#'></a></div><div clsas='col-6 text-right' id='nav-next'><a class='nav-btn' href='#'></a></div></div></div>");
120        
121        if ($(".profile-pic25")) {
122
123            picpatharr = $(".profile-pic25 img").attr("src").split("?");
124            picpath = picpatharr[0];
125            $(".profile-image").css("background-image","url('" + picpath + "");
126            $(".profile-pic25 img").attr("src",picpath)
127            //$(".profile-pic25").remove();
128        }
129        
130        $( "#prev-next li a" ).each(function( index ) {
131            if ($(this).attr("href") == curpath) {
132                $(this).parent().addClass("me-nav");
133                $(this).parent().parent().addClass("root-nav");
134                
135                $( ".root-nav li" ).each(function( index ) {
136                    if ($(this).hasClass("me-nav")) {
137                        if ($(this).prev().length > 0) {
138                            prevTitle = $(this).prev().children("a").html();
139                            pTitleArr = prevTitle.split(",");
140                            pTitleNew = "<strong>" + pTitleArr[0] + "</strong>, " + pTitleArr[1];
141                            //$("#nav-prev a").html("<i class='fa-sharp fa-solid fa-circle-chevron-left'></i><span class='d-none d-lg-block'>&nbsp;" + pTitleNew + "</span>");
142                            $("#nav-prev a").html("<i class='fa-sharp fa-solid fa-circle-chevron-left'></i><span class='d-none2 d-lg-inline2'>&nbsp;" + pTitleNew + "</span>");
143                            $("#nav-prev a").attr("href",$(this).prev().children("a").attr("href"));
144                        } else {
145                            $("#nav-prev").remove();
146                        }
147    
148                        if($(this).next().length > 0) {
149                            nextTitle = $(this).next().children("a").html();
150                            nTitleArr = nextTitle.split(",");
151                            nTitleNew = "<strong>" + nTitleArr[0] + "</strong>, " + nTitleArr[1];
152                            //$("#nav-next a").html("<span class='d-none d-lg-block'>" + nTitleNew + "&nbsp;</span><i class='fa-sharp fa-solid fa-circle-chevron-right'></i>");
153                            $("#nav-next a").html("<span class='d-none2 d-lg-inline2'>" + nTitleNew + "&nbsp;</span><i class='fa-sharp fa-solid fa-circle-chevron-right'></i>");
154                            $("#nav-next a").attr("href",$(this).next().children("a").attr("href"));
155                        } else {
156                            $("#nav-next").remove();
157                        }
158                    }
159                });
160                
161            }
162        });
163        
164    }
165    
166});

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.