Skip to content

Commit 87147ef

Browse files
author
Max Carlson
committed
Add feedback link with basic styling
1 parent c9ac913 commit 87147ef

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

collapsible.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Make collapsible boxes interactive
12
let arrows = document.querySelectorAll('img[alt="arrow.down"]');
23
Array.from(arrows).forEach(arrow => {
34
let title = arrow.parentNode;
@@ -19,4 +20,11 @@ Array.from(arrows).forEach(arrow => {
1920
container.style.overflow = 'hidden';
2021
}
2122
});
22-
});
23+
});
24+
25+
// Add feedback link
26+
var link = document.createElement('a');
27+
link.textContent = 'Feedback';
28+
link.href = 'mailto:[email protected]?subject=Feedback from ' + encodeURI(document.location);
29+
link.style = 'position: fixed; top: 50%; left: 100%; transform: translate(-70%, -50%) rotate(-90deg); font-family: var(--font-family-mulish); font-size: var(--font-size-m); color: var(--basic-link);';
30+
document.body.appendChild(link);

0 commit comments

Comments
 (0)