File tree 1 file changed +10
-0
lines changed
quartz/components/scripts
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,16 @@ export async function fetchCanonical(url: URL): Promise<Response> {
44
44
return redirect ? fetch ( `${ new URL ( redirect , url ) } ` ) : res
45
45
}
46
46
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
+ */
47
57
export function assignActiveClassToDrawerButton ( isactive : boolean ) {
48
58
const hamburgersvg = document . querySelector ( ".hamburger" )
49
59
const cross = document . querySelector ( ".cross" )
You can’t perform that action at this time.
0 commit comments