Skip to main content

Hawaii Department of Commerce and Consumer Affairs, Office of Consumer Protection, Landlord Tenant Information Center

Citation
Hawaii Department of Commerce and Consumer Affairs, Office of Consumer Protection, Landlord Tenant Information Center
Jurisdiction
Hawaii (state)
Source
Official source

Related Parts of This Source

Full Text

1,722 chars
document.addEventListener("DOMContentLoaded", function() {
var currentDomain = window.location.hostname.replace(/^www\./,'');
var externalLinkSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-external-link-icon lucide-external-link" aria-hidden="true"><path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/></svg>';
document.querySelectorAll('.card-wrap .action a').forEach(function(link) {
var linkHost;
try {
var tempURL = new URL(link.href, window.location.origin);
linkHost = tempURL.hostname.replace(/^www\./,'');
} catch(e) {
return;
}
var isExternal = linkHost && linkHost !== currentDomain;
var iconEl = link.querySelector('svg.lucide-chevron-right, svg[data-lucide="chevron-right"]');
if (!iconEl) iconEl = link.querySelector('svg');
if (!iconEl) return;
if (isExternal) {
var wrap = document.createElement('i');
wrap.innerHTML = externalLinkSvg;
var newSvg = wrap.firstElementChild;
iconEl.parentNode.replaceChild(newSvg, iconEl);
}
// Internal link: keep current chevron-right icon (no change)
});
});
(function () {
function applyDateOrderAttribute() {
var dateCells = document.querySelectorAll('#tablepress-14 tbody td.column-3.dt-type-date');

dateCells.forEach(function (td) {
var text = td.textContent.trim(); // e.g. 06/15/1978
if (!text) return;

var parts = text.split('/');
if (parts.length !== 3) return;

var mm = parts[0].trim().padStart(2, '0');
var dd = parts[1].trim().padStart(2, '0');
var yyyy = parts[2].trim();

td.setAttribute('data-order', yyyy + '-' + mm + '-' + dd);
});
}