PageSourceSearch

https://www.lwb.gov.hk/js/general_header_footer.js

js lwb.gov.hk collected 2026-10-02 17:07:18 UTC 1,003 bytes, 31 lines download raw bytes

1		var curParentItemId = document.querySelector("#parentItemId").dataset.parentItemId;
2        var curItemId =document.querySelector("#itemId").dataset.itemId;
3		
4		var updateDateId="";
5		if (document.querySelector("#updateDateId") !== null)
6		{
7		  updateDateId = document.querySelector("#updateDateId").dataset.itemId;
8		}
9		$(document).ready(function() {
10			  let url_header_link;
11			  let url_footer_link;
12			  if (intLang == 0 ) {
13				url_header_link = "/en/header.html";
14				url_footer_link = "/en/footer.html";
15				
16			  } else if(intLang == 1 )   {
17				url_header_link = "/tc/header.html";
18				url_footer_link = "/tc/footer.html";
19			  }
20			   else  {
21				url_header_link = "/sc/header.html";
22				url_footer_link = "/sc/footer.html";
23			  }
24			  $("#header-wrapper").load(url_header_link, function() {
25				  initHeader();
26			  });
27			  $("#footer-wrapper").load(url_footer_link, function() {
28				  initFooter();
29				  updateDate(updateDateId);
30			  });
31        });

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.