bugfix250107.1
全站通知:

Widget:CardSelectTrExt

来自恋与深空WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

<script> (function() {

   console.log("CardSelectTrExt.js loaded");
 
   function addClickEvent() {
       const filterButtons = document.querySelectorAll('.filterTableBt');
       filterButtons.forEach(button => {
           button.addEventListener('click', function(e) {
             setTimeout(()=>{ waterfall('.waterfall-container') },100)
           });
       });
   }
   function addResizeEvent(){
     window.addEventListener('resize', function() {
       setTimeout(()=>{ waterfall('.waterfall-container') },100)
     })
   }
   if (document.readyState !== 'loading') {
       addClickEvent();
       addResizeEvent();
   } else {
       document.addEventListener('DOMContentLoaded', addClickEvent);
       document.addEventListener('DOMContentLoaded', addResizeEvent);
   }

})();

</script>