PageSourceSearch

https://www.hketousa.gov.hk/js/personnel.js

js hketousa.gov.hk collected 2026-10-02 19:10:19 UTC 1,804 bytes, 50 lines download raw bytes

1function getPersonnel(){	
2    $.ajax({
3        type: "GET",
4        url: "data/personnel.xml",
5        dataType: "xml",
6        cache: false,
7        success: function(xml) {
8			
9            $(xml).find('employee').each(function(i){            	
10            	var data = {
11            		name: $(this).find('name').text(),
12            		boss: $(this).find('boss').text(),
13            		position: $(this).find('position').html(),
14	            	phone: $(this).find('phone').text(),
15	            	email: $(this).find('email').text(),
16	            	image: $(this).find('image').text(),
17                bio: $(this).find('bio').text(),
18	            	row: i
19            	};
20              
21            	if(isIE()){
22            		data.position = $(this).find('position').text();
23            	}
24              
25              let eName = data.name;
26              if(data.bio && data.bio != ''){
27                eName = data.name + " <a href='" + data.bio + "'><span class='badge badge-director'><i class='fas fa-user'></i> BIO</span></a>";
28              }
29            	
30            	if(data.boss === '1'){
31            		$('.card-director .employee-img img').attr('src', data.image);
32            		$('.card-director .employee-name').html(eName);
33            		$('.card-director .employee-position').html(data.position);
34            		$('.card-director .employee-email').text(data.email);
35            		$('.card-director').addClass('card-employee-show');
36            	}
37            	
38            	$('#employeeTemplate').tmpl(data).appendTo('#personnelContainer');
39            	$('#personnel-section').show();
40            });
41        },
42        error: function() {
43            console.warn('ERROR');
44        }
45    });
46}
47
48$(document).ready(function(){
49	getPersonnel();
50});

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.