PluginProbe
Maintenance / 4.30
Maintenance v4.30
4.32 4.31 4.30 4.19 4.20 4.21 trunk 1.0 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 2.0 2.0.1 2.1 2.1.1 2.1.2 2.2 2.2.1 2.3 2.4 2.5 2.6 All 66 releases
maintenance / js / pointers.js

pointers.js in Maintenance 4.30, at js/pointers.js

33 lines 900 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Maintenance
3 * https://wpmaintenancemode.com/
4 * (c) WebFactory Ltd, 2026
5 */
6
7 jQuery(document).ready(function($){
8 if (typeof mtnc_pointers == 'undefined') {
9 return;
10 }
11
12 $.each(mtnc_pointers, function(index, pointer) {
13 if (index.charAt(0) == '_') {
14 return true;
15 }
16 $(pointer.target).pointer({
17 content: '<h3>Maintenance</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 notice_name: index,
26 _ajax_nonce: mtnc_pointers._nonce_dismiss_pointer,
27 action: 'maintenance_dismiss_notice'
28 });
29 }
30 }).pointer('open');
31 });
32 });
33