{"id":1130,"date":"2025-03-23T03:02:45","date_gmt":"2025-03-23T02:02:45","guid":{"rendered":"https:\/\/www.indexall.org\/indexa\/?page_id=1130"},"modified":"2025-03-31T08:38:05","modified_gmt":"2025-03-31T06:38:05","slug":"simulator","status":"publish","type":"page","link":"https:\/\/www.indexall.org\/indexa\/simulator\/","title":{"rendered":"simulator"},"content":{"rendered":"<p><code>        <div id=\"metrics-indexa-simulator\" class=\"metrics-simulator\">\n            <h2>Simulateur Metrics Indexa<\/h2>\n            <p>Entrez vos donn\u00e9es pour estimer votre score Metrics Indexa avant soumission.<\/p>\n            <form id=\"simulator-form\" class=\"metrics-indexa-form\">\n                <div class=\"form-field\">\n                    <label for=\"sim_crossref_citations\">Nombre de citations Crossref :<\/label>\n                    <input type=\"number\" id=\"sim_crossref_citations\" name=\"crossref_citations\" min=\"0\" placeholder=\"Ex. 150\">\n                <\/div>\n                <div class=\"form-field\">\n                    <label for=\"sim_orcid_percentage\">Pourcentage d\u2019auteurs avec ORCID :<\/label>\n                    <input type=\"number\" id=\"sim_orcid_percentage\" name=\"orcid_percentage\" min=\"0\" max=\"100\" step=\"0.1\" placeholder=\"Ex. 75.5\">\n                <\/div>\n                <div class=\"form-field\">\n                    <label for=\"sim_reviewercredits_status\">Statut ReviewerCredits :<\/label>\n                    <select id=\"sim_reviewercredits_status\" name=\"reviewercredits_status\">\n                        <option value=\"\">Non membre<\/option>\n                        <option value=\"active\">Membre actif<\/option>\n                    <\/select>\n                <\/div>\n                <div class=\"form-field\">\n                    <label for=\"sim_doi_articles\">Nombre d\u2019articles avec DOI :<\/label>\n                    <input type=\"number\" id=\"sim_doi_articles\" name=\"doi_articles\" min=\"0\" placeholder=\"Ex. 200\">\n                <\/div>\n                <div class=\"form-field\">\n                    <label for=\"sim_quality_score\">Score de qualit\u00e9 des articles :<\/label>\n                    <input type=\"number\" id=\"sim_quality_score\" name=\"quality_score\" min=\"0\" max=\"100\" step=\"0.1\" placeholder=\"Ex. 85.0\">\n                <\/div>\n                <div class=\"form-field\">\n                    <label for=\"sim_editorial_diversity\">Diversit\u00e9 du comit\u00e9 (nombre de pays) :<\/label>\n                    <input type=\"number\" id=\"sim_editorial_diversity\" name=\"editorial_diversity\" min=\"0\" placeholder=\"Ex. 10\">\n                <\/div>\n                <div class=\"form-field\">\n                    <label for=\"sim_author_geo_distribution\">R\u00e9partition g\u00e9ographique des auteurs (nombre de pays) :<\/label>\n                    <input type=\"number\" id=\"sim_author_geo_distribution\" name=\"author_geo_distribution\" min=\"0\" placeholder=\"Ex. 20\">\n                <\/div>\n                <button type=\"button\" id=\"simulate-button\" class=\"metrics-button\">Simuler<\/button>\n                <p id=\"simulation-result\" style=\"margin-top: 15px; font-weight: bold;\"><\/p>\n            <\/form>\n        <\/div>\n        <script>\n            document.getElementById('simulate-button')?.addEventListener('click', function() {\n                const form = document.getElementById('simulator-form');\n                const formData = new FormData(form);\n                formData.append('action', 'simulate_metrics_indexa');\n                formData.append('nonce', '02418bacf8');\n\n                fetch('https:\/\/www.indexall.org\/indexa\/wp-admin\/admin-ajax.php', {\n                    method: 'POST',\n                    body: formData\n                })\n                .then(response => response.json())\n                .then(data => {\n                    const resultDiv = document.getElementById('simulation-result');\n                    if (data.success) {\n                        resultDiv.innerHTML = 'Score Metrics Indexa estim\u00e9 : ' + data.data.metrics_indexa.toFixed(2) + '\/100';\n                        resultDiv.style.color = 'green';\n                    } else {\n                        resultDiv.innerHTML = 'Erreur : ' + (data.data.message || 'Veuillez remplir tous les champs correctement.');\n                        resultDiv.style.color = 'red';\n                    }\n                })\n                .catch(error => {\n                    document.getElementById('simulation-result').innerHTML = 'Erreur lors de la simulation.';\n                    document.getElementById('simulation-result').style.color = 'red';\n                });\n            });\n        <\/script>\n        <style>\n            .metrics-simulator { max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 5px; }\n            .metrics-indexa-form .form-field { margin-bottom: 15px; }\n            .metrics-indexa-form label { display: block; margin-bottom: 5px; font-weight: bold; }\n            .metrics-indexa-form input, .metrics-indexa-form select { width: 100%; padding: 8px; box-sizing: border-box; }\n            .metrics-button { background: #0073aa; color: white; padding: 10px 20px; border: none; border-radius: 3px; cursor: pointer; }\n            .metrics-button:hover { background: #005d87; }\n        <\/style>\n        \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"signature_hash":"","ethics_level":"","footnotes":""},"class_list":["post-1130","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.indexall.org\/indexa\/wp-json\/wp\/v2\/pages\/1130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.indexall.org\/indexa\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.indexall.org\/indexa\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.indexall.org\/indexa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.indexall.org\/indexa\/wp-json\/wp\/v2\/comments?post=1130"}],"version-history":[{"count":2,"href":"https:\/\/www.indexall.org\/indexa\/wp-json\/wp\/v2\/pages\/1130\/revisions"}],"predecessor-version":[{"id":10000,"href":"https:\/\/www.indexall.org\/indexa\/wp-json\/wp\/v2\/pages\/1130\/revisions\/10000"}],"wp:attachment":[{"href":"https:\/\/www.indexall.org\/indexa\/wp-json\/wp\/v2\/media?parent=1130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}