sab-pointers.js
4 years ago
sab-preview.js
3 years ago
sab_gutenberg_editor_script.js
2 years ago
sabox-admin.js
4 years ago
sabox-editor.js
4 years ago
sabox-picker.js
4 years ago
sweetalert2.min.js
4 years ago
webfont.js
3 years ago
sab-pointers.js
32 lines
| 1 | /** |
| 2 | * SAB |
| 3 | * (c) WebFactory Ltd, 2016 - 2021 |
| 4 | */ |
| 5 | |
| 6 | jQuery(document).ready(function($){ |
| 7 | if (typeof sab_pointers != "undefined") { |
| 8 | $.each(sab_pointers, function (index, pointer) { |
| 9 | if (index.charAt(0) == "_") { |
| 10 | return true; |
| 11 | } |
| 12 | $(pointer.target) |
| 13 | .pointer({ |
| 14 | content: "<h3>" + sab_pointers.plugin_name + "</h3><p>" + pointer.content + "</p>", |
| 15 | pointerWidth: 380, |
| 16 | position: { |
| 17 | edge: pointer.edge, |
| 18 | align: pointer.align, |
| 19 | }, |
| 20 | close: function () { |
| 21 | $.get(ajaxurl, { |
| 22 | _ajax_nonce: sab_pointers._nonce_dismiss_pointer, |
| 23 | action: "sab_dismiss_pointer", |
| 24 | }); |
| 25 | }, |
| 26 | }) |
| 27 | .pointer("open"); |
| 28 | }); |
| 29 | } |
| 30 | |
| 31 | }); |
| 32 |