* Adds back to top button Signed-off-by: Fanit Kolchina <[email protected]> * Makes sidebar sticky Signed-off-by: Fanit Kolchina <[email protected]> * Gives more real estate to the main pane Signed-off-by: Fanit Kolchina <[email protected]> * Adds copy button Signed-off-by: Fanit Kolchina <[email protected]> * Adds copy button to code snippets Signed-off-by: Fanit Kolchina <[email protected]> * Adds copy as curl Signed-off-by: Fanit Kolchina <[email protected]> * Moved copy buttons to the bottom right of snippets Signed-off-by: Fanit Kolchina <[email protected]> * Moved edit page footer to the bottom of the page Signed-off-by: Fanit Kolchina <[email protected]> * Implemented scrolling to the active link in navbar on reload Signed-off-by: Fanit Kolchina <[email protected]> * Adds feedback buttons Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]>
14 lines
412 B
JavaScript
14 lines
412 B
JavaScript
const feedbackButtons = document.querySelectorAll('.feedback-button');
|
|
|
|
feedbackButtons.forEach((button) => {
|
|
button.addEventListener('click', function onClick(event) {
|
|
var url = window.location.href;
|
|
console.log(url);
|
|
console.log(button.value);
|
|
gtag('event', 'feedback', {
|
|
'event_category': url,
|
|
'event_action': button.value
|
|
});
|
|
});
|
|
});
|