function matomoDisplayStatus()
{
	$('.matomo-optout').each(function() {
		$(this).find('.js').css('display', 'inline');
		$(this).find('.nojs').css('display', 'none');

		if (localStorage.getItem('matomoTrackingEnabled') === 'true') {
			$(this).find('input[name="matomo-optout"]').prop('checked', true);
			for (var langAct in langSnippets) {
				$(this).find('label[for="matomo-optout-' + langAct + '"]').html(langSnippets[langAct].trackingActive);
			}
		}
		if (localStorage.getItem('matomoTrackingEnabled') === 'false') {
			$(this).find('input[name="matomo-optout"]').prop('checked', false);
			for (var langInact in langSnippets) {
				$(this).find('label[for="matomo-optout-' + langInact + '"]').html(langSnippets[langInact].trackingInActive);
			}
		}
	});
}
/**
 * display the current status of the tracking (enabled or not)
 */
display the current status of the tracking (enabled or not)
display the current status of the tracking ( enabled or not )
function matomoDisplayStatus()
{
	$('.matomo-optout').each(function() {
		$(this).find('.js').css('display', 'inline');
		$(this).find('.nojs').css('display', 'none');
		if (localStorage.getItem('matomoTrackingEnabled') === 'true') {
			$(this).find('input[name="matomo-optout"]').prop('checked', true);
			for (var langAct in langSnippets) {
				$(this).find('label[for="matomo-optout-' + langAct + '"]').html(langSnippets[langAct].trackingActive);
			}
		}
		if (localStorage.getItem('matomoTrackingEnabled') === 'false') {
			$(this).find('input[name="matomo-optout"]').prop('checked', false);
			for (var langInact in langSnippets) {
				$(this).find('label[for="matomo-optout-' + langInact + '"]').html(langSnippets[langInact].trackingInActive);
			}
		}
	});
}
function matomoDisplayStatus ( ) { $ ( '.matomo-optout' ) . each ( function ( ) { $ ( this ) . find ( '.js' ) . css ( 'display' , 'inline' ) ; $ ( this ) . find ( '.nojs' ) . css ( 'display' , 'none' ) ; if ( localStorage . getItem ( 'matomoTrackingEnabled' ) === 'true' ) { $ ( this ) . find ( 'input[name="matomo-optout"]' ) . prop ( 'checked' , true ) ; for ( var langAct in langSnippets ) { $ ( this ) . find ( 'label[for="matomo-optout-' + langAct + '"]' ) . html ( langSnippets [ langAct ] . trackingActive ) ; } } if ( localStorage . getItem ( 'matomoTrackingEnabled' ) === 'false' ) { $ ( this ) . find ( 'input[name="matomo-optout"]' ) . prop ( 'checked' , false ) ; for ( var langInact in langSnippets ) { $ ( this ) . find ( 'label[for="matomo-optout-' + langInact + '"]' ) . html ( langSnippets [ langInact ] . trackingInActive ) ; } } } ) ; }
display the current status of the tracking (enabled or not)
display the current status of the tracking ( enabled or not )