PageSourceSearch

https://techmkt.pro/wp-content/plugins/yaymail/assets/scripts/notice.js?ver=4.3.0

js techmkt.pro collected 2026-10-07 18:11:51 UTC 1,718 bytes, 57 lines download raw bytes

1jQuery(document).ready(function () {
2  /**
3   * Dismiss suggest addons
4   */
5  jQuery('#yaymail-suggest-addons-notice .yaymail-dismiss-suggest-addons-notice').on(
6    'click',
7    function () {
8      jQuery('#yaymail-suggest-addons-notice .notice-dismiss').trigger('click');
9    },
10  );
11  jQuery('#yaymail-suggest-addons-notice .yaymail-see-addons').on('click', function () {
12    jQuery('#yaymail-suggest-addons-notice .notice-dismiss').trigger('click');
13  });
14
15  /**
16   * Dismiss upgrade pro
17   */
18  jQuery('#yaymail-upgrade-notice .yaymail-dismiss-upgrade-notice').on('click', function () {
19    jQuery('#yaymail-upgrade-notice .notice-dismiss').trigger('click');
20  });
21  jQuery('#yaymail-upgrade-notice .yaymail-upgrade-pro').on('click', function () {
22    jQuery('#yaymail-upgrade-notice .notice-dismiss').trigger('click');
23  });
24
25  jQuery(document).on('click', '#yaymail-suggest-addons-notice .notice-dismiss', function () {
26    handleDismiss();
27  });
28
29  jQuery(document).on('click', '#yaymail-upgrade-notice .notice-dismiss', function () {
30    handleDismiss(true);
31  });
32
33  function handleDismiss(isUpgrade = false) {
34    jQuery
35      .ajax({
36        dataType: 'json',
37        url: yaymail_notice.admin_ajax,
38        type: 'post',
39        data: {
40          action: isUpgrade
41            ? 'yaymail_dismiss_upgrade_notice'
42            : 'yaymail_dismiss_suggest_addons_notice',
43          nonce: yaymail_notice.nonce,
44        },
45      })
46      .done(function (result) {
47        if (result.success) {
48          console.log('success hide notice');
49        } else {
50          console.log('Error', result.message);
51        }
52      })
53      .fail(function (res) {
54        console.log(res.responseText);
55      });
56  }
57});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.