用户:Salt lovely/user.js:修订间差异

删除98字节 、​ 2020年12月16日 (星期三)
// Edit via Wikiplus
(.)
(// Edit via Wikiplus)
第67行: 第67行:
         yesBtn.addEventListener('click', () => {
         yesBtn.addEventListener('click', () => {
             if (safe) {
             if (safe) {
                 safe = false
                 safe = false // 安全锁
                 callback(true)
                 callback(true)
                 selfRemove() // 移除确认框
                 selfRemove() // 移除确认框
第91行: 第91行:
         container.style.opacity = '0'
         container.style.opacity = '0'
         container.style.top = '-100%'
         container.style.top = '-100%'
        container.style.transitionTimingFunction = 'ease-out'
         document.body.appendChild(container)
         document.body.appendChild(container)
         // 调整位置
         // 调整位置
第98行: 第97行:
         container.style.opacity = '1'
         container.style.opacity = '1'
         container.style.top = '50%'
         container.style.top = '50%'
        container.style.transitionTimingFunction = 'ease-in'
         /**移除自己 */
         /**移除自己 */
         function selfRemove() {
         function selfRemove() {
             container.style.top = '-100%'
             container.style.top = '-100%'
             container.style.opacity = '1'
             container.style.opacity = '1'
             setTimeout(container.remove, 500)
             setTimeout(() => { container.remove() }, 500)
         }
         }
     }
     }