HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/locationdebateau/wp-content/plugins/easy-google-fonts/src/scripts/pointer.js
/**
 * External Dependancies
 */
import $ from 'jquery';

/**
 * WordPress Dependancies
 */
import { __ } from '@wordpress/i18n';
import apiFetch from '@wordpress/api-fetch';

$(function () {
  const content = `
     <h3>${__('Easy Google Fonts', 'easy-google-fonts')}</h3>
     <p>${__('Create and manage your customizer font controls in the Settings menu.', 'easy-google-fonts')}</p>
   `;

  $('#menu-settings')
    .pointer({
      content,
      close: () => {
        apiFetch({
          path: '/easy-google-fonts/v1/hide-pointer',
          method: 'POST'
        });
      }
    })
    .pointer('open');
});