/* * Sticky Anything * Backend GUI pointers * (c) WebFactory Ltd, 2015 - 2022 */ jQuery(document).ready(function($){ if (typeof sticky_pointers == 'undefined') { return; } $.each(sticky_pointers, function(index, pointer) { if (index.charAt(0) == '_') { return true; } $(pointer.target).pointer({ content: '

Sticky Menu (or Anything!) on Scroll

' + pointer.content + '

', position: { edge: pointer.edge, align: pointer.align }, width: 320, close: function() { $.post(ajaxurl, { notice_name: index, _ajax_nonce: sticky_pointers._nonce_dismiss_notice, action: 'sticky_dismiss_notice' }); } }).pointer('open'); }); });