Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #333

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update README.md #333

wants to merge 1 commit into from

Conversation

Zaksama
Copy link

@Zaksama Zaksama commented Nov 26, 2024

La santé publique avec zak sama

La santé publique avec zak sama
@goldsunday77
Copy link

<title>La Santé Publique avec Zak Sama</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f5f5f5; color: #333; } header { background: #0077b6; color: white; text-align: center; padding: 20px 0; } main { max-width: 900px; margin: 20px auto; padding: 20px; background: white; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } h1, h2 { color: #0077b6; } .question { margin-bottom: 15px; } .exam-type { margin: 20px 0; text-align: center; } .exam-type button { background: #0077b6; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; } .exam-type button:hover { background: #005f87; } .exam-content { display: none; } footer { background: #0077b6; color: white; text-align: center; padding: 10px 0; margin-top: 20px; } </style>

La Santé Publique avec Zak Sama

Sélectionnez le type d'examen

Examen par Discipline Examen Global

Votre Examen

© 2024 La Santé Publique avec Zak Sama. Tous droits réservés.

<script> // Données des QCM et QCD const qcmData = [ { question: "Exemple QCM 1 ?", options: ["Option A", "Option B", "Option C", "Option D"], answer: "B" }, { question: "Exemple QCM 2 ?", options: ["Option A", "Option B", "Option C", "Option D"], answer: "C" }, // Ajoute 98 autres questions ici ];
    const qcdData = [
        { question: "Expliquez ce qu'est la santé publique." },
        { question: "Décrivez les rôles principaux de l'épidémiologie." },
        // Ajoute 58 autres questions ici
    ];

    // Générer un examen
    function generateExam(type) {
        const examContent = document.getElementById("examContent");
        const questionsDiv = document.getElementById("questions");
        questionsDiv.innerHTML = ""; // Réinitialiser les questions

        let selectedQCM = [];
        let selectedQCD = [];

        if (type === "discipline") {
            selectedQCM = getRandomQuestions(qcmData, 20);
            selectedQCD = getRandomQuestions(qcdData, 10);
        } else if (type === "global") {
            selectedQCM = getRandomQuestions(qcmData, 40);
            selectedQCD = getRandomQuestions(qcdData, 20);
        }

        // Afficher les QCM
        questionsDiv.innerHTML += "<h3>Questions à Choix Multiples (QCM)</h3>";
        selectedQCM.forEach((q, index) => {
            questionsDiv.innerHTML += `
                <div class="question">
                    <p><strong>${index + 1}. ${q.question}</strong></p>
                    ${q.options.map((opt, i) => `<p>${String.fromCharCode(65 + i)}. ${opt}</p>`).join("")}
                </div>
            `;
        });

        // Afficher les QCD
        questionsDiv.innerHTML += "<h3>Questions à Choix Développées (QCD)</h3>";
        selectedQCD.forEach((q, index) => {
            questionsDiv.innerHTML += `
                <div class="question">
                    <p><strong>${index + 1}. ${q.question}</strong></p>
                    <p>Réponse attendue : ________________</p>
                </div>
            `;
        });

        // Afficher la section de l'examen
        examContent.style.display = "block";
    }

    // Fonction pour sélectionner des questions aléatoires
    function getRandomQuestions(data, count) {
        const shuffled = data.sort(() => 0.5 - Math.random());
        return shuffled.slice(0, count);
    }
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants