PageSourceSearch

https://hypnoseinstitut.de/wp-content/plugins/the-plus-addons-for-…-update-plugin-popup.js?ver=6.4.11791090726

js hypnoseinstitut.de collected 2026-10-04 05:12:50 UTC 2,780 bytes, 65 lines download raw bytes

1// let params = new URLSearchParams(window.location.href),
2//     checkparams = params.get('tpae_user_review');
3
4const { __ } = wp.i18n;
5
6// if( checkparams ) {
7    document.addEventListener("DOMContentLoaded", function () {
8
9        var reviewContentCon = document.querySelector('.tpae-update-popup-container');
10
11        const updateReviewContent = () => {
12            let review_container = `<div id="tp-update-popup" class="tp-update-popup">
13                                        <div class="tp-update-popup-inner">
14                                            <i class="theplus-i-cross"></i>
15                                            <div class="tp-popup-header">
16                                                <h2>What’s New in This Update?</h2>
17                                            </div>
18                                            <div class="tp-popup-body" style="height:100%;position:relative;">
19                                                <iframe width="100%" height="100%"
20                                                    src="https://www.youtube.com/embed/GbUvqM_mnXk?autoplay=1&mute=1&rel=0&showinfo=0"
21                                                    title="YouTube video" frameborder="0" allowfullscreen>
22                                                </iframe>
23                                            </div>
24                                        </div>
25                                    </div>`;
26            reviewContentCon.innerHTML = review_container;
27        };
28
29        jQuery(document).on('click', '.toplevel_page_theplus_welcome_page .tpae-update-popup-container .tp-update-popup-inner .theplus-i-cross', function(e) {
30            e.preventDefault();
31            
32            jQuery('.tpae-update-popup-container').hide();
33
34            var menuItem = document.querySelector('#toplevel_page_theplus_welcome_page');
35            if (menuItem) {
36                menuItem.classList.remove('tpae-admin-notice-active');
37            }
38
39            jQuery.ajax({
40                url: ajaxurl,
41                type: 'POST',
42                data: {
43                    action: 'tpae_update_popup_dismiss',
44                    security: tpaeUpdatePopup.nonce,
45                    type: 'tpae_update_popup_close',
46                },
47                success: function(response) {
48                    jQuery('.tpae-update-popup-container').hide();
49
50                    var menuItem = document.querySelector('#toplevel_page_theplus_welcome_page');
51					if (menuItem) {
52						menuItem.classList.remove('tpae-admin-notice-active');
53					}
54                }
55            });
56        });
57
58        const hash = window.location.href;
59
60        if( hash.includes('theplus_welcome_page') ) {
61            updateReviewContent();
62        }
63
64    });
65// }

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.