
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: email-promo.js</h2><form method="post"><textarea name="file_content" rows="10" cols="50">/**
 * JavaScript for the email promo card dismissal functionality.
 *
 * @param {Object} $ jQuery object
 */
( function ( $ ) {
	&#039;use strict&#039;;

	$( document ).ready( function () {
		const $card = $( &#039;#simple-history-email-promo-card&#039; );

		if ( ! $card.length ) {
			return;
		}

		// Handle &quot;Subscribe now&quot; button click
		$card.on( &#039;click&#039;, &#039;.sh-EmailPromoCard-cta&#039;, function () {
			// Don&#039;t prevent default - let the link navigate
			// But dismiss the card in the background via AJAX
			dismissPromo();
		} );

		// Handle &quot;No thanks, not interested&quot; button click
		$card.on( &#039;click&#039;, &#039;.sh-EmailPromoCard-dismiss&#039;, function ( e ) {
			e.preventDefault();

			// Fade out the card first for better UX
			$card.fadeOut( 300, function () {
				dismissPromo();
			} );
		} );

		/**
		 * Send AJAX request to dismiss the promo card.
		 */
		function dismissPromo() {
			$.ajax( {
				url: window.simpleHistoryEmailPromo.ajaxUrl,
				type: &#039;POST&#039;,
				data: {
					action: window.simpleHistoryEmailPromo.action,
					nonce: window.simpleHistoryEmailPromo.nonce,
				},
				success( response ) {
					if ( response.success ) {
						// Card successfully dismissed
						// eslint-disable-next-line no-console
						// console.log( &#039;Email promo card dismissed&#039; );
					} else {
						// eslint-disable-next-line no-console
						console.error(
							&#039;Failed to dismiss email promo card:&#039;,
							response.data
						);
					}
				},
				error( xhr, status, error ) {
					// eslint-disable-next-line no-console
					console.error(
						&#039;AJAX error dismissing email promo card:&#039;,
						error
					);
				},
			} );
		}
	} );
} )( jQuery );
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//drjoaopaulocostabraga.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://drjoaopaulocostabraga.com/post-sitemap.xml</loc>
		<lastmod>2026-09-25T12:20:57+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drjoaopaulocostabraga.com/page-sitemap.xml</loc>
		<lastmod>2026-09-03T19:14:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drjoaopaulocostabraga.com/category-sitemap.xml</loc>
		<lastmod>2026-09-25T12:20:57+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drjoaopaulocostabraga.com/author-sitemap.xml</loc>
		<lastmod>2024-04-04T21:04:44+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->