Trying to publish a little bit of Javascript on the homepage AND at the bottom

<script type=”text/javascript”> function toggleDiv() { var triggeredDiv = document.querySelector(‘.triggeredDiv’); if (document.getElementById(‘myonoffswitch’).checked) { triggeredDiv.classList.remove(‘shown’); } else { triggeredDiv.classList.add(‘shown’); } } document.getElementById(‘myonoffswitch’).addEventListener(“change”,…