/**
 * Admin scripts for the Tarot and Horoscope plugin.
 *
 * Handles the API key and domain change functionality in the plugin's admin interface.
 *
 * @package TarotAndHoroscope
 */

document.addEventListener("DOMContentLoaded", function () {
    const changeButton = document.getElementById("change_api_key_domain");
    const editFields = document.getElementById("edit_fields");

    if (changeButton && editFields) {
        changeButton.addEventListener("click", function () {
            editFields.style.display = "block";
            changeButton.style.display = "none";
        });
    }
});