`; let buttonElem = document.createElement("div"); buttonElem.innerHTML = emailButton; TOC.append(buttonElem); $('.gutentoc-toc__list').click(function(event) { $('#selected_section').removeAttr('id'); $(event.target).attr('id', 'selected_section'); let toc_sidebar = $('#toc-sidebar'); let list_item_pipes = $('#selected_section::before'); if(toc_sidebar && list_item_pipes){ $('head').append(``); } }); } } function styleVotes(){ const helpful = document.getElementsByClassName("helpful")[0] const helpfulHeader = document.getElementsByClassName("helpful-header")[0] const thumbsUp = document.getElementsByClassName("helpful-pro")[0] const thumbsDown = document.getElementsByClassName("helpful-contra")[0] const hasVoted = document.getElementsByClassName("helpful-exists")[0] if(helpful){ helpfulHeader? helpfulHeader.innerHTML = "