<script>
	function validerPaiement(typePaiement) {
		var montant = document.getElementById('Ecran').innerHTML;
		if (montant !== '') {
			if (confirm('Validez un paiement en ' + typePaiement + ' de ' + montant + '€ ?')) {
				envoi_execute_ajax('
				253f7c89b6', 'caisse_enreg_caisse2', 'crea', montant, \'3', '', '', '', '');
				var i = 0;
				while (document.getElementById('qq_bonchoix' + i)) {
					document.getElementById('qq_bonchoix' + i).value = 0;
					document.getElementById('tt_bonchoix' + i).value = 0;
					i++;
				}
				document.getElementById('Ecran2').innerHTML = '';
			}
		}
	}
</script>
{"id":365,"date":"2024-10-29T23:59:39","date_gmt":"2024-10-29T22:59:39","guid":{"rendered":"https:\/\/lamarelleenchantee.ovh\/wordpress\/?page_id=365"},"modified":"2024-10-29T23:59:41","modified_gmt":"2024-10-29T22:59:41","slug":"jeu-des-multiplications","status":"publish","type":"page","link":"https:\/\/lamarelleenchantee.ovh\/wordpress\/jeu-des-multiplications\/","title":{"rendered":"Jeu des multiplications"},"content":{"rendered":"<p><!DOCTYPE html><br \/>\n<html lang=\"fr\"><br \/>\n<head><br \/>\n    <meta charset=\"UTF-8\"><br \/>\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><br \/>\n    <title>Jeu des Multiplications<\/title><\/p>\n<style>\n        body {\n            font-family: Arial, sans-serif;\n            background-color: #f9f9f9;\n            text-align: center;\n        }\n        #quiz {\n            margin-top: 20px;\n        }\n        input[type=\"number\"] {\n            width: 50px;\n        }\n        button {\n            margin-top: 10px;\n            padding: 10px 20px;\n            font-size: 16px;\n        }\n        #result {\n            margin-top: 20px;\n            font-size: 20px;\n            font-weight: bold;\n        }\n    <\/style>\n<p><\/head><br \/>\n<body><\/p>\n<h1>Testez vos Tables de Multiplication !<\/h1>\n<p>Choisissez un nombre et essayez de r\u00e9pondre aux questions !<\/p>\n<p><label for=\"number\">Choisissez un nombre (1-10) :<\/label><br \/>\n<select id=\"number\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><\/select><\/p>\n<div id=\"quiz\"><\/div>\n<p><button onclick=\"startQuiz()\">Commencer le Quiz<\/button><\/p>\n<div id=\"result\"><\/div>\n<p><script>\n    let currentQuestion = 0;\n    let score = 0;\n    let number;<\/p>\n<p>    function startQuiz() {\n        number = document.getElementById(\"number\").value;\n        currentQuestion = 0;\n        score = 0;\n        document.getElementById(\"result\").innerText = \"\";\n        generateQuestion();\n    }<\/p>\n<p>    function generateQuestion() {\n        if (currentQuestion < 5) {\n            const multiplier = Math.floor(Math.random() * 10) + 1;\n            const answer = prompt(`Quel est ${number} x ${multiplier} ?`);\n            if (parseInt(answer) === number * multiplier) {\n                score++;\n                alert(\"Correct !\");\n            } else {\n                alert(`Incorrect ! La bonne r\u00e9ponse \u00e9tait ${number * multiplier}.`);\n            }\n            currentQuestion++;\n            generateQuestion();\n        } else {\n            document.getElementById(\"result\").innerText = `Votre score final est ${score} sur 5 !`;\n        }\n    }\n<\/script><\/p>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jeu des Multiplications Testez vos Tables de Multiplication ! Choisissez un nombre et essayez de r\u00e9pondre aux questions ! Choisissez un nombre (1-10) : 12345678910 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","footnotes":""},"class_list":["post-365","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lamarelleenchantee.ovh\/wordpress\/wp-json\/wp\/v2\/pages\/365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamarelleenchantee.ovh\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamarelleenchantee.ovh\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamarelleenchantee.ovh\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lamarelleenchantee.ovh\/wordpress\/wp-json\/wp\/v2\/comments?post=365"}],"version-history":[{"count":1,"href":"https:\/\/lamarelleenchantee.ovh\/wordpress\/wp-json\/wp\/v2\/pages\/365\/revisions"}],"predecessor-version":[{"id":366,"href":"https:\/\/lamarelleenchantee.ovh\/wordpress\/wp-json\/wp\/v2\/pages\/365\/revisions\/366"}],"wp:attachment":[{"href":"https:\/\/lamarelleenchantee.ovh\/wordpress\/wp-json\/wp\/v2\/media?parent=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}