Skip to content

Commit 20a0f3b

Browse files
Merge branch 'docs' of https://github.com/PrathameshDhande22/Java-Tutorial into theme-change
2 parents ae770ac + c000293 commit 20a0f3b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

quartz/components/scripts/util.ts

+10
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ export async function fetchCanonical(url: URL): Promise<Response> {
4444
return redirect ? fetch(`${new URL(redirect, url)}`) : res
4545
}
4646

47+
/**
48+
* Toggles the active state of the drawer button and adjusts the document body style.
49+
* This function is used to manage the visual state of a hamburger menu or drawer interface.
50+
*
51+
* @param isactive - A boolean indicating whether the drawer should be in an active state.
52+
* If true, the cross icon is shown and the body scroll is disabled.
53+
* If false, the hamburger icon is shown and the body scroll is enabled.
54+
*
55+
* @returns void This function does not return a value.
56+
*/
4757
export function assignActiveClassToDrawerButton(isactive: boolean) {
4858
const hamburgersvg = document.querySelector(".hamburger")
4959
const cross = document.querySelector(".cross")

0 commit comments

Comments
 (0)