Khảo sát
!DOCTYPE html>
<html lang="vi">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Đang chuyển hướng đến Google Form...</title>
</head>
<body>
    <p>Hệ thống đang chuyển hướng bạn đến biểu mẫu khảo sát, vui lòng chờ trong giây lát...</p>

    <script>
        // BƯỚC 1: Thay thế 2 đường link Google Form của bạn vào đây
        const formA = "https://docs.google.com/forms/d/e/1FAIpQLSc74kWK-l4wkL-x1pk9NUIAB8FoWka6s6LACFXNgEQaSaMI0g/viewform?usp=header";
        const formB = "https://docs.google.com/forms/d/e/1FAIpQLSfD3T_IJilFxco6arnJVWOYaulJPqrixhwK5NnJAa67bQt7jA/viewform?usp=header";

        // BƯỚC 2: Logic kiểm tra lượt click trước đó để chia đều chuẩn xác 50/50
        // Kiểm tra xem lượt bấm cuối cùng thuộc về Form nào
        let lastVisited = localStorage.getItem("lastVisitedForm");
        let targetLink = "";

        if (lastVisited === "A") {
            targetLink = formB;
            localStorage.setItem("lastVisitedForm", "B");
        } else {
            targetLink = formA;
            localStorage.setItem("lastVisitedForm", "A");
        }

        // BƯỚC 3: Tự động chuyển hướng người dùng sang Google Form đích
        window.location.href = targetLink;
    </script>
</body>
</html>