yeild / jigsaw Goto Github PK
View Code? Open in Web Editor NEWcanvas滑动验证码
License: MIT License
canvas滑动验证码
License: MIT License
可以实现网络图片库找不到从项目里的图片随机挑选吗?
在项目中实际运用的话,大佬有没有考虑过如何和后端交互才有用
I would like to incorporate your Captcha in a modified form in another project. Unfortunately, your Captcha does not have a license file, which means that I'm unable to use it. Would you be willing to add a license to your project? You did great work and it would be fantastic if other projects could use it too :)
你好,我想问下,我通过把jigsaw.js文件以及同文件夹内的jigsaw.css两个文件一起copy到自己项目中,并且在js文件内修改导出方式
// window.jigsaw = {
// init: function (opts) {
// return new Jigsaw(opts).init()
// }
// };
let ptOption = {
init: function (opts) {
return new Jigsaw(opts).init()
}
};
export default ptOption;
引用方式是在vue页面中import jigsaw.js文件然后在mounted中 jigsaw.init一样的配置方式后。发现在自己项目中的jigraw__xxxx--ccc的样式全部变成undefined。样式全部不生效。这个该怎么调整。我看你像是在webpack中配置。我感觉不能按你这原样的webpack配置,不然整个项目都挂了。
我想问:1,我该怎么调整这样加载能正常对应载入,2,这样式能改成不通过webpack这样配置吗,直接在js中对应的配置引入啥的
canvas 不是可以兼容到ie9么。为什么这个兼容到ie10?
canvas IE9就已经支持了,为什么这个要IE10以上?哪里不兼容?
怎么把图片获取源修改为本地图片,因为请求线上图片的耗时太长了。麻烦您了
如:
<div id="app">
<div class="container">
<div id="captcha"></div>
<div id="msg"></div>
</div>
...
</div>
container与app并列才能正常使用,好奇怪呀,控制台没有报错信息
web端拿来做单独的前端验证很好用!!不过小气的老板又说想让截取的小拼图也能按住拖拽实现滑动验证效果,在canvas里整了半天也没啥用,请问下大佬这个好实现吗?
1、我尝试在vue里面使用,可是失败了……所以想知道如何才能在vue里面调用使用??能否做成vue的组件呢?
2、demo是否可以添加一个没封装的,使用jigsaw.js文件调用的例子?
先谢谢作者啦,这个滑动验证码做的真棒!
加入了发请求的部分,但是目前只能在pc端使用了,我用模拟器或者手机打开,也可以看到图,也可以滑动,但是在移动端或者模拟器就无法发送数据了,发送的都是空,而且也不报错,但是pc端却正常,这是啥情况?
请看我部署的地址:http://www.zoux.xin:8085/api/static/
怎么集成到vue里面去啊?
试过了shadowColor喝shadowBlur那个属性.但是只能给缺陷的地方加.不能加到切块上
您好,我的项目在使用captcha时,需要让它悬浮到上面,不影响下面的HTML标记,所以需要用到positon:fixed属性,如何实现?
Originally posted by @Lucien0822 in #2 (comment)
请问,需要兼容ie,我看到class不支持ie浏览器,请问如何兼容
导出重新刷新图片功能,想直接调用jigsaw.reset_pic实现图片刷新,文件里面的return应该怎么写呀?
代码:
export default {
init: function(opts) {
return new Jigsaw(opts).init();
},
reset_pic: function() {
// 下面这个return应该怎么写呀?
return *****;
}
};
先谢谢作者大大啦~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.