document.addEventListener('DOMContentLoaded', function() {
    document.querySelectorAll('.footer-case-link').forEach(link => {
      link.addEventListener('click', function(e) {
        e.preventDefault();
        window.name = this.dataset.index + '|scroll';
        window.location.href = this.href;
      });
    });
  });