<?php
// Inclure la configuration
require_once '../includes/config.php';

// Définir le type de contenu en JavaScript
header('Content-Type: application/javascript');
?>
window.addEventListener("load", () => {
  const mastodonTimeline = new MastodonTimeline.Init({
    instanceUrl: '<?php echo MASTODON_INSTANCE_URL; ?>',
    dateFormatLocale: '<?php echo MASTODON_DATE_FORMAT; ?>',
    btnSeeMore: "<?php echo MASTODON_BTN_SEE_MORE; ?>",
    btnReload: "<?php echo MASTODON_BTN_RELOAD; ?>",
    maxNbPostFetch: '<?php echo MASTODON_MAX_POST_FETCH; ?>',
    maxNbPostShow: '<?php echo MASTODON_MAX_POST_SHOW; ?>'
  });
}); 