security.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <script>
  6. window.NVC_Opt = {
  7. appkey: "FFFF0N00000000009342",
  8. scene: "ic_message_h5",
  9. trans: { "key1": "code0", "nvcCode": 200 },
  10. elements: [
  11. "https://img.alicdn.com/tfs/TB17cwllsLJ8KJjy0FnXXcFDpXa-50-74.png",
  12. "https://img.alicdn.com/tfs/TB17cwllsLJ8KJjy0FnXXcFDpXa-50-74.png"
  13. ],
  14. bg_back_prepared: "https://img.alicdn.com/tps/TB1skE5SFXXXXb3XXXXXXXXXXXX-100-80.png",
  15. bg_front: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABQCAMAAADY1yDdAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAADUExURefk5w+ruswAAAAfSURBVFjD7cExAQAAAMKg9U9tCU+gAAAAAAAAAIC3AR+QAAFPlUGoAAAAAElFTkSuQmCC",
  16. obj_ok: "https://img.alicdn.com/tfs/TB1rmyTltfJ8KJjy0FeXXXKEXXa-50-74.png",
  17. bg_back_pass: "https://img.alicdn.com/tfs/TB1KDxCSVXXXXasXFXXXXXXXXXX-100-80.png",
  18. obj_error: "https://img.alicdn.com/tfs/TB1q9yTltfJ8KJjy0FeXXXKEXXa-50-74.png",
  19. bg_back_fail: "https//img.alicdn.com/tfs/TB1w2oOSFXXXXb4XpXXXXXXXXXX-100-80.png",
  20. upLang: {
  21. "cn": {
  22. _ggk_guide: "请在屏幕上滑动,刮出两面盾牌",
  23. _ggk_success: "恭喜您成功刮出盾牌<br/>继续下一步操作吧",
  24. _ggk_loading: "加载中",
  25. _ggk_fail: ["呀,盾牌不见了<br/>请", "javascript:noCaptcha.reset()", "再来一次", "或", "https://survey.taobao.com/survey/QgzQDdDd?token=%TOKEN", "反馈问题"],
  26. _ggk_action_timeout: ["我等得太久啦<br/>请", "javascript:noCaptcha.reset()", "再来一次", "或", "https://survey.taobao.com/survey/QgzQDdDd?token=%TOKEN", "反馈问题"],
  27. _ggk_net_err: ["网络实在不给力<br/>请", "javascript:noCaptcha.reset()", "再来一次", "或", "https://survey.taobao.com/survey/QgzQDdDd?token=%TOKEN", "反馈问题"],
  28. _ggk_too_fast: ["您刮得太快啦<br/>请", "javascript:noCaptcha.reset()", "再来一次", "或", "https://survey.taobao.com/survey/QgzQDdDd?token=%TOKEN", "反馈问题"]
  29. }
  30. }
  31. }
  32. </script>
  33. <script src="https://g.alicdn.com/sd/nvc/1.1.112/guide.js"></script>
  34. <script>
  35. window.onload = function () {
  36. var ic = new smartCaptcha({
  37. renderTo: '#sc',
  38. width: 300,
  39. height: 50,
  40. default_txt: "点击按钮开始智能验证",
  41. success_txt: "验证成功",
  42. fail_txt: "验证失败,请在此点击按钮刷新",
  43. scaning_txt: "智能检测中",
  44. success: function (data) {
  45. console.log(NVC_Opt.token)
  46. console.log(data.sessionID);
  47. console.log(data.sig);
  48. },
  49. });
  50. ic.init();
  51. }
  52. </script>
  53. <style type="text/css">
  54. .nc_scale {
  55. background: #e8e8e8 !important;
  56. }
  57. .nc_scale div.bc_bg {
  58. background: #7ac23c !important;
  59. }
  60. .nc_scale .scale_text2 {
  61. color: #fff !important;
  62. }
  63. .nc_scale span {
  64. border: 1px solid #ccc !important;
  65. }
  66. .errloading {
  67. border: #faf1d5 1px solid !important;
  68. color: #ef9f06 !important;
  69. }
  70. </style>
  71. </head>
  72. <body>
  73. <script src="https://g.alicdn.com/sd/smartCaptcha/0.0.1/index.js"></script>
  74. <div id="sc">
  75. </div>
  76. </body>
  77. </html>