مسابقة الاكسبيرت

 <!DOCTYPE html>

<html lang="ar">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>مسابقة فلاتر خبراء MT5</title>

    <style>

        body {

            font-family: 'Cairo', sans-serif;

            background-color: #f4f4f4;

            text-align: center;

            padding: 20px;

        }

        .quiz-container {

            background: #fff;

            padding: 20px;

            border-radius: 10px;

            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);

            max-width: 600px;

            margin: auto;

        }

        h2 {

            color: #0073e6;

        }

        .question {

            font-size: 18px;

            font-weight: bold;

            color: #333;

            margin: 15px 0;

        }

        .options label {

            display: block;

            background: #e3e3e3;

            padding: 10px;

            border-radius: 5px;

            margin: 5px;

            cursor: pointer;

            transition: 0.3s;

        }

        .options input {

            display: none;

        }

        .options label:hover {

            background: #d1ecff;

        }

        .btn {

            background: #0073e6;

            color: #fff;

            border: none;

            padding: 10px 20px;

            border-radius: 5px;

            cursor: pointer;

            font-size: 16px;

            margin-top: 10px;

        }

        .btn:hover {

            background: #005bb5;

        }

        .result {

            font-size: 20px;

            font-weight: bold;

            margin-top: 20px;

            color: #0073e6;

        }

        .correct-answers {

            background: #f9f9f9;

            padding: 15px;

            border-radius: 5px;

            margin-top: 10px;

            text-align: left;

        }

        .correct-answers p {

            margin: 5px 0;

        }

    </style>

</head>

<body>


<div class="quiz-container">

    <h2>مسابقة فلاتر خبراء MT5</h2>

    <form id="quiz-form">

        <div class="question">1. ما هو الدور الأساسي لفلاتر الخبراء في MT5؟</div>

        <div class="options">

            <label><input type="radio" name="q1" value="a"> تقليل استهلاك الموارد عند تشغيل المستشارين الخبراء</label>

            <label><input type="radio" name="q1" value="b"> تحسين دقة إشارات التداول عبر تصفية الإشارات غير المرغوب فيها</label>

            <label><input type="radio" name="q1" value="c"> منع تشغيل المستشار الخبير تمامًا</label>

            <label><input type="radio" name="q1" value="d"> إغلاق جميع الصفقات تلقائيًا</label>

        </div>


        <div class="question">2. أي من الفلاتر التالية يمكن استخدامه لمنع تنفيذ التداولات أثناء الأخبار الهامة؟</div>

        <div class="options">

            <label><input type="radio" name="q2" value="a"> فلتر متوسط التحرك</label>

            <label><input type="radio" name="q2" value="b"> فلتر زمني</label>

            <label><input type="radio" name="q2" value="c"> فلتر الأخبار الاقتصادية</label>

            <label><input type="radio" name="q2" value="d"> فلتر الحجم</label>

        </div>


        <!-- يمكنك تكرار نفس النمط للأسئلة الأخرى -->


        <button type="button" class="btn" onclick="calculateScore()">تحقق من النتيجة</button>

    </form>


    <div class="result" id="result"></div>

    <div class="correct-answers" id="answers" style="display:none;">

        <h3>الإجابات الصحيحة:</h3>

        <p>1- تحسين دقة إشارات التداول عبر تصفية الإشارات غير المرغوب فيها</p>

        <p>2- فلتر الأخبار الاقتصادية</p>

        <!-- أكمل باقي الإجابات هنا -->

    </div>

</div>


<script>

    function calculateScore() {

        let answers = {

            q1: "b",

            q2: "c"

            // أضف باقي الإجابات هنا بنفس النمط

        };


        let score = 0;

        let totalQuestions = Object.keys(answers).length;


        for (let question in answers) {

            let selected = document.querySelector(`input[name="${question}"]:checked`);

            if (selected && selected.value === answers[question]) {

                score++;

            }

        }


        let resultText = `لقد حصلت على ${score} من ${totalQuestions}`;

        document.getElementById("result").innerText = resultText;


        // عرض الإجابات الصحيحة

        document.getElementById("answers").style.display = "block";

    }

</script>


</body>

</html>

إرسال تعليق

أحدث أقدم

نموذج الاتصال

نموذج الاتصال