js/navigation.js
/**
	 * Adds a new item to the navigation bar. Can be used either in root, or in a different UL.
	 * @param append_to_id - Which ID does this link belong too .
	 * @param a_href - Where does this link to.
	 * @param a_text - What text does this link have.
	 * @param a_hash - Optional hash to be appended to the base href
	 */
Adds a new item to the navigation bar. Can be used either in root, or in a different UL.
@param append_to_id - Which ID does this link belong too .
@param a_href - Where does this link to.
@param a_text - What text does this link have.
@param a_hash - Optional hash to be appended to the base href
Adds a new item to the navigation bar . Can be used either in root or in a different UL . @param append_to_id - Which ID does this link belong too . @param a_href - Where does this link to . @param a_text - What text does this link have . @param a_hash - Optional hash to be appended to the base href
function LI (append_to_id, a_href, a_text, a_hash) {
		const hashPart = a_hash ? `#${a_hash}`.toLowerCase() : "";
		document.querySelector(`#${append_to_id}`).innerHTML += `
			<li role="presentation" id="${a_text.toLowerCase().replace(/\s+/g, '')}" data-page="${a_href}${hashPart}">
				<a href="${a_href}${hashPart}">${a_text}</a>
			</li>
		`;
	}
function LI ( append_to_id , a_href , a_text , a_hash ) { const hashPart = a_hash ? ` ${ a_hash } ` . toLowerCase ( ) : "" ; document . querySelector ( ` ${ append_to_id } ` ) . innerHTML += ` ${ a_text . toLowerCase ( ) . replace ( / \s+ / g , '' ) } ${ a_href } ${ hashPart } ${ a_href } ${ hashPart } ${ a_text } ` ; }
Adds a new item to the navigation bar.
Adds a new item to the navigation bar .