微件:SaltVoteContainer:修订间差异

添加124字节 、​ 2024年3月5日 (星期二)
一些问题修复 // 维基盐编辑器
(用于展示投票箱)
 
(一些问题修复 // 维基盐编辑器)
第21行: 第21行:
     const len = arr.length;
     const len = arr.length;
     if (len) {
     if (len) {
       if (index > len) {
       if (index >= len) {
         index -= Math.ceil((index - len + 1) / len) * len;
         index -= Math.ceil((index - len + 1) / len) * len;
       }
       }
第105行: 第105行:
     }
     }
     console.log(collect, renderBar(collect, color));
     console.log(collect, renderBar(collect, color));
     el.classList.remove('not-init')
     el.classList.remove("not-init");
   };
   };
   getAllNotInitContainer().forEach((el) => main(el));
   setTimeout(() => {
    getAllNotInitContainer().forEach((el) => main(el));
  }, 0);
  setInterval(() => {
    getAllNotInitContainer().forEach((el) => main(el));
  }, 1000);
})(window);
})(window);
</script></includeonly>
</script></includeonly>