// source --> https://www.labellemaison.fr/wp-content/plugins/link-juice-optimizer/public/js/link-juice-optimizer.js?ver=2.3.2 
(function ($) {
	'use strict';

	function ljo_decode(str) {
		return unescape(window.atob(decodeURIComponent(str)));
	}

	$(document).ready(function () {
		var ljo_clase = php_vars.ljo_clase;
		$("." + ljo_clase + " span, span." + ljo_clase + ", a." + ljo_clase).click(function (event) {
			if ($(this).attr("data-loc") !== undefined && $(this).attr("data-loc") !== false) {
				if ($(this).attr("data-window") == 'new') {
					window.open(ljo_decode($(this).attr("data-loc")), '_blank');
				} else {
					window.location.href = ljo_decode($(this).attr("data-loc"));
				}
			}
		});
	});

})(jQuery);

function ljo_open(str, target) {
	if (target == 'new') {
		window.open(str, '_blank');
	} else {
		window.location.href = str;
	}
};
// source --> https://www.labellemaison.fr/wp-content/plugins/simple-tags/assets/frontend/js/frontend.js?ver=3.50.0 
jQuery(document).ready(function($) {
    // -------------------------------------------------------------
    //   Show More / Close Table Functions
    // -------------------------------------------------------------
    function showMore() {
        var rows = $(".taxopress-table-row");
        rows.each(function (index, row) {
            if (index >= 6) {
                $(row).show();
            }
        });
        $(".taxopress-see-more-link").hide();
        $(".taxopress-close-table-link").show();
    }
    
    function closeTable() {
        var rows = $(".taxopress-table-row");
        rows.each(function (index, row) {
            if (index >= 6) {
                $(row).hide();
            }
        });
        $(".taxopress-close-table-link").hide();
        $(".taxopress-see-more-link").show();
    }
    
    // Event listeners for Show More and Close Table
    $(document).on('click', '.taxopress-see-more-link', function (e) {
        e.preventDefault();
        showMore();
    });

    $(document).on('click', '.taxopress-close-table-link', function (e) {
        e.preventDefault();
        closeTable();
    });
});