Pattern Lock that I've made in
About
Pattern Lock that I've made in 2017
OverviewIt's a Pattern Lock from Xiaomi Phone
I've made it in purpose of practicing and getting some experience in programming field so don't ask the question why I made it on PC
circles.js
you can find the following local variable:
this.lock = [1, 5, 9,
6, 3, 2,
4, 7, 8];
lock is an array of the correct sequence of dots you should connect. After connecting dots displaying on canvas lock
is comparing with checked
var, which contains the sequence of dots user has connected. If the value of checked
is equal to the value of lock
then lock grants access, otherwise the error is displaying on the top of the screen. You can change the value of this variable if you want other lock code to be set.
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。