t>
<script>
  // 获取关闭按钮和悬浮窗元素
  const announcementNotice = document.getElementById('announcementNotice');
  const announcementBtn = document.getElementById('announcementBtn');

  // 关闭悬浮窗
  function closeannouncementNotice() {
    announcementNotice.style.animation = 'fadeOut 1s';
    setTimeout(() => {
      announcementNotice.style.display = 'none';
    }, 1000);
  }

  // 设置关闭按钮的点击事件
  announcementBtn.addEventListener('click', setLocalStorage);

  /