function getQueryParam(name) { const urlParams = new URLSearchParams(window.location.search); return urlParams.get(name); } document.addEventListener("DOMContentLoaded", function () { const jenis = getQueryParam("jenis"); if (jenis) { fetch(`/WebNew/Layanan/GetData?jenis=${jenis}`) .then(res => res.json()) .then(data => { document.getElementById("content").innerHTML = `