Skip to content
Nine Box —— 九宫格密码锁,css3 || canvas
Branch: gh-pages
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js
lib
snapshot
README.md
index.html

README.md

NineBox

Nine Box —— 九宫格密码锁(css3 or canvas)

###options###

mode: "css3",// 渲染方式,css3 || canvas
showMoveLine: true,//是否显示鼠标移动路径
zindex: 100,//九宫格z-index属性
radius: 25,//圆环半径
backgroundColor: "#333",//背景色
color: "#FFFFFF",//圆环颜色
pwd: "123",//密码串,索引从1开始
encrypt: false, //是否加密密码(需要引入box.encrypt.js), 控制栏 CryptoJS.SHA3("your pwd").toString() 获得密码串
errorColor: '#FF0000',//解锁失败锁环颜色
boxTimer: 1000,//错误时清除记录间隔
lineColor: '#5B8FEF',//线颜色
lineWidth: 26,//线宽度
width: 240,//容器宽度
height: 240,//容器高度
onError: function () {
},//密码错误执行的操作
onSuc: function () {
}//成功解锁执行的操作

###snapshot### image

You can’t perform that action at this time.