Site URL: https://brine-demo.squarespace.com/ How would you rewrite this script so it works despite the Ajax loading on the Brine template? Right now it only works if you refresh the page.
<script> $(document).ready(function(){
$('.markdown-block .sqs-block-content h3').css('cursor','pointer');
$(".markdown-block .sqs-block-content h3").nextUntil("h3").slideToggle();
$(".markdown-block .sqs-block-content h3").click(function()
{$(this).nextUntil("h3").slideToggle();}); }); </script>