当前位置:网站首页>Get verification code
Get verification code
2022-06-13 04:23:00 【Twinkle, twinkle, twinkle, twinkle, twinkle, twinkle, twinkle, 】
// Verification Code
var counts = 60;
function settime(val) {
console.log('val:',val)
if(counts == 0) {
val.style.color = '#F5B089';
val.innerHTML = " Recapture ";
counts = 60;
return false;
} else {
val.style.color = '#999';
val.innerHTML = `${counts} Reacquire after `
counts--;
}
setTimeout(function() {
settime(val);
}, 1000);
}
// Get verification code
function getValidCode(){
const validCodeBtn = document.getElementById("validCodeBtn")
if(validCodeBtn.innerHTML == ' Get verification code ' || validCodeBtn.innerHTML == ' Recapture ' ){
this.settime(validCodeBtn)
}
}
边栏推荐
- MVP framework for personal summary
- R: Employee turnover forecast practice
- Introduction to MCU peripherals: temperature sensor DS18B20
- Koa file upload and download
- Hugo blog building tutorial
- Analyse du principe de mise en œuvre d'un éditeur de texte open source markdown - to - rich
- Dagger2学习之Module的应用(二)
- SQL advanced challenge (1 - 5)
- Get parameters on link
- 建模雜談系列143 數據處理、分析與决策系統開發的梳理
猜你喜欢
Unity shader learning 004 shader debugging platform difference third-party debugging tools
Express scaffold creation
Interpretation of usb-if bc1.2 charging protocol
[zeloengine] localization process /imgui Chinese culture
Explanation of line segment tree
Introduction and use of ES6
Differences and relations between three-tier architecture and MVC
Value of line height
How to use debounce in lodash to realize anti shake
Principle, composition and functions of sensors of Dajiang UAV flight control system
随机推荐
[test development] basic concepts related to testing
Billions of data to determine whether the element exists
Zoom and move the H5 part of the mobile end
Value of line height
Filter and listener
Single chip microcomputer: d/a output
ET框架-22 创建ServerInfo实体及事件
[sword finger offer] interview question 24 Reverse linked list
[automated test] what you need to know about unittest
十亿数据量 判断元素是否存在
Common encryption and decryption function encapsulation - AES encryption and decryption
7-289 tag count (300 points)
Ultra quicksort reverse sequence pair
记录一次排查问题的经过——视频通话无法接起
MCU: RS485 communication and Modbus Protocol
Online audio adjustment technology summary
Simple static web page + animation (small case)
How to use debounce in lodash to realize anti shake
The could not find com scwang. smart:refresh-layout-kernel:2.0.3. Required by: project: the app cannot load the third-party package
MCU: pcf8591 hardware interface