chart.min.js
2 years ago
jquery.dataTables.min.js
2 years ago
moment.min.js
2 years ago
sweetalert2.min.js
2 years ago
tooltipster.bundle.min.js
2 years ago
wpcaptcha-pointers.js
4 months ago
wpcaptcha.js
4 months ago
wpcaptcha-pointers.js
34 lines
| 1 | /** |
| 2 | * WP Captcha |
| 3 | * Backend GUI pointers |
| 4 | * (c) WebFactory Ltd, 2022 - 2026, www.webfactoryltd.com |
| 5 | */ |
| 6 | |
| 7 | jQuery(document).ready(function($){ |
| 8 | if (typeof wpcaptcha_pointers == 'undefined') { |
| 9 | return; |
| 10 | } |
| 11 | |
| 12 | $.each(wpcaptcha_pointers, function(index, pointer) { |
| 13 | if (index.charAt(0) == '_') { |
| 14 | return true; |
| 15 | } |
| 16 | $(pointer.target).pointer({ |
| 17 | content: '<h3>WP Captcha</h3><p>' + pointer.content + '</p>', |
| 18 | pointerWidth: 380, |
| 19 | position: { |
| 20 | edge: pointer.edge, |
| 21 | align: pointer.align |
| 22 | }, |
| 23 | close: function() { |
| 24 | $.get(ajaxurl, { |
| 25 | action: "wpcaptcha_run_tool", |
| 26 | tool: "wpcaptcha_dismiss_pointer", |
| 27 | notice_name: index, |
| 28 | _ajax_nonce: wpcaptcha_pointers.run_tool_nonce |
| 29 | }); |
| 30 | } |
| 31 | }).pointer('open'); |
| 32 | }); |
| 33 | }); |
| 34 |