20 lines
585 B
JavaScript
20 lines
585 B
JavaScript
jQuery(document).ready( function($) {
|
|
alert('pointer.js loaded');
|
|
console.log('pointerContent', pointerContent);
|
|
|
|
$('#menu-comments').pointer({
|
|
content: pointerContent,
|
|
position: {
|
|
edge: 'left', // arrow direction
|
|
align: 'center' // vertical alignment
|
|
},
|
|
pointerWidth: 350,
|
|
close: function() {
|
|
$.post(ajaxurl, {
|
|
pointer: 'disqus_settings_pointer', // pointer ID
|
|
action: 'dismiss-wp-pointer'
|
|
});
|
|
}
|
|
}).pointer('open');
|
|
});
|