From a40a064265e674973a42a0a2725e550107368765 Mon Sep 17 00:00:00 2001 From: Alireza khaji Date: Sun, 22 May 2022 15:15:57 +0430 Subject: [PATCH] Exam... --- src/App.js | 2 +- .../img/4bea9a991c6b23d3dcaf231513ee94bd.jpg | Bin 0 -> 18433 bytes src/view/Exam2/Exam.js | 13 +- src/view/Exam2/Header.js | 4 +- src/view/Exam2/Questions.js | 268 ++++++++++++++++++ 5 files changed, 280 insertions(+), 7 deletions(-) create mode 100644 src/assets/img/4bea9a991c6b23d3dcaf231513ee94bd.jpg create mode 100644 src/view/Exam2/Questions.js diff --git a/src/App.js b/src/App.js index f556de8..af7185d 100644 --- a/src/App.js +++ b/src/App.js @@ -768,7 +768,7 @@ function App() { /> } /> diff --git a/src/assets/img/4bea9a991c6b23d3dcaf231513ee94bd.jpg b/src/assets/img/4bea9a991c6b23d3dcaf231513ee94bd.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2e11a804d55986e67263c6c207f6cde78c8fb1a2 GIT binary patch literal 18433 zcmb69by!0sR#{=4Vwvz7#32L zNMFDpOIZ|AE`?<~lu22XKod#`46?zpjxnzav5(R$No-rK3bBk@TF@-1DCQFT<|XEK z|38!UK|WvsnXn5;d5YwS*b*@Xk?fS2Sdg(Qi49a(REQ%k6iCA7RFVMbt8P$IdEpcVe?284!j`hVmQp#VYFVu=5MVYz@ZL5Ngz1&T=ArT_@xLeG_X2oudWkyt@40vn_XXjgN0wud3K7PD=$OvEvRSeQ0)W~7Kk}Cob5n<;F z=?VZUiJ(kMt|(?o=&#B&RWTM=46+aua>*;vz*@c$S*&C!LST#)k@9yHfJY71XoC{7 zIk^K22K&Db3;2o!>FfZ=`V=V@5n*NXX>nwWB*g$p8aNA51dU$G=Exjc$zUBgV1g$dlMwXWMLWdjppz6e*P`i9lR*6FhX|KodS>4owhDezxoWVS{o? zgNvE<|H8_H0w4h-F`(fCVL^5pn!?0MO7g9`Ar32fJR?Qz>(!Dxlb^UY-5zh15~uq^ z_v^ILI5n{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tB@ie&V#Mm&p&Ns2&3JaW z;BKPAZncU|v@(<^&aqO}^AsF?Hi%JlZsQPIs}+}%#wOa|#xKqW&}vD}jjTiW!Ez{p@~v6oGX&8>3t;-wbm$9RKl zbX)HLP~^~Rd6WT?x6Y9TWu~_27+@l^&eFCRyT=e$mfgH-C`qoesth$wO>Svnbt=;o zwP^iBX!n60!YxwNQ&^%JR=xL^+=C2Qdh-@UE#4&+Z`8Y7Z0*_w#;?agZ zU|zK;DPL3P_W@l7 zkLCL!0+O|5U-vNv3%c6zxJn62txQwDcx$zG>A4VAp%@%|O99cYdc2+c-tkr!%?VCO}2*HYObU9mlw)GfYGU$ zdrMb%HrgpSwjJiEV-dlHswK|3q3aP-b(di7qXZoaW9TRqjV1+HN{$n)!FiTk z2StK2_eugW3xJmes?#ne^Q>ySHw?29yN15exZaK;zR9$TxS2_i8dDIdbF4yjj)V9`wvDR*94}2D4F- xsv6gNgIKmS+TxHGBEVX!#KL1j`^*#t$Z-e;IA$4>Lg|OknMf#hijm%b|JiToEGYm0 literal 0 HcmV?d00001 diff --git a/src/view/Exam2/Exam.js b/src/view/Exam2/Exam.js index f7dee24..b7091e5 100644 --- a/src/view/Exam2/Exam.js +++ b/src/view/Exam2/Exam.js @@ -1,14 +1,19 @@ import Header from "./Header"; +import Questions from "./Questions"; const Exam=()=>{ - return( -
-
+ return ( +
+
+
- ) + ); } export default Exam; \ No newline at end of file diff --git a/src/view/Exam2/Header.js b/src/view/Exam2/Header.js index 03e26f9..9d49931 100644 --- a/src/view/Exam2/Header.js +++ b/src/view/Exam2/Header.js @@ -4,7 +4,7 @@ import { RiTimerLine } from "react-icons/ri"; const Header=()=>{ return ( -
+
{
)} {showBtn && ( -
+
اتمام زمان
)} diff --git a/src/view/Exam2/Questions.js b/src/view/Exam2/Questions.js new file mode 100644 index 0000000..c3d0d18 --- /dev/null +++ b/src/view/Exam2/Questions.js @@ -0,0 +1,268 @@ +import { useEffect, useState } from "react"; +import { RiErrorWarningLine } from "react-icons/ri"; +import img1 from "../../assets/img/4bea9a991c6b23d3dcaf231513ee94bd.jpg"; + +let data = [ + { + id: 1, + text: "این سوال برای تست قرار داده می‌شود و ادامه پیدا می‌کند تا طول متن بلندتر شود و در پایان علامت سوال قرار میگیرد؟", + img: null, + choices: [ + "گزینه اول که درست نیست", + "گزینه دوم که این هم درست نیست", + "گزینه سوم", + "همه گزینه‌ها", + ], + guidance: null, + choiceWidth: null, + choiceHeight: null, + }, + { + id: 2, + text: "این سوال برای تست قرار داده می‌شود و ادامه پیدا می‌کند تا طول متن بلندتر شود و در پایان علامت سوال قرار میگیرد؟", + img: img1, + choices: ["11", "22", "33", "44"], + guidance: + "راهنمایی در مورد این سوال: در رابطه با سوال بالا سعی کنید دقت لازم را بعمل آورده و تمامی گذاره ها را در نظر بگیرید", + choiceWidth: null, + choiceHeight: null, + }, + { + id: 3, + text: null, + img: img1, + choices: [ + "گزینه کوتاه", + "گزینه متوسط", + "گزینه بلند", + "گزینه خیلی خیلی خیلی خیلی خیلی بلـــــــند", + ], + guidance: + "راهنمایی در مورد این سوال: در رابطه با سوال بالا سعی کنید دقت لازم را بعمل آورده و تمامی گذاره ها را در نظر بگیرید", + choiceWidth: null, + choiceHeight: null, + }, + { + id: 4, + text: "این سوال برای تست قرار داده می‌شود و ادامه پیدا می‌کند تا طول متن بلندتر شود و در پایان علامت سوال قرار میگیرد؟", + img: null, + choices: [ + "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است ", + "22", + "33", + "44", + ], + guidance: null, + choiceWidth: null, + choiceHeight: null, + }, + // { + // id: 5, + // text: "این سوال برای تست قرار داده می‌شود و ادامه پیدا می‌کند تا طول متن بلندتر شود و در پایان علامت سوال قرار میگیرد؟", + // img: "", + // choices: [ + // "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ ", + // "22", + // ], + // guidance:"", + // choiceWidth: null, + // choiceHeight: null, + // }, +]; + +//badgeList------------- +let badgeList = ["الف", "ب", "ج", "د"]; + +const Questions = () => { + const [Data, setData] = useState(data); + const [fake, setFake] = useState(0); + const [answerList, setAnswerList] = useState([]); + //choice layout setting-& default answer----------------- + useEffect(() => { + let newData = Data; + let defaultAnswers = []; + let Choice = document.querySelectorAll(".Choice"); + let examSize = document.querySelector(".Choice-container").offsetWidth - 58; + console.log(examSize); + for (let i = 0; i < data.length; i++) { + defaultAnswers.push(""); + console.log(i + 1 + ":-----------------------"); + //پیدا کردن تعداد گزینه ها + let choiceNumber = data[i].choices.length; + //پیدا کردن اندازه هر گزینه + let wList = []; + let hList = []; + for (let j = 0; j < data[i].choices.length; j++) { + let w = Choice[i * choiceNumber + j].offsetWidth; + wList.push(w); + let h = Choice[i * choiceNumber + j].offsetHeight; + hList.push(h); + } + console.log("wList:"); + console.log(wList); + wList.sort(function (a, b) { + return b - a; + }); + hList.sort(function (a, b) { + return b - a; + }); + console.log("wList:"); + console.log(wList); + //پیدا کردن بزرگ ترین گزینه + let wMax = wList[0]; + let hMax = hList[0]; + console.log("wMax:" + wMax); + //چک کردن اندازه بزرگ ترین عضو با توجه به تعداد گزینه ها و اندازه صفحه و اعمال تنظیمات اندازه + newData[i].choiceHeight = hMax; + if (wMax < 0.23 * examSize && choiceNumber === 4) { + newData[i].choiceWidth = 23; + console.log("o"); + } else if (wMax < 0.32 * examSize && choiceNumber === 3) { + newData[i].choiceWidth = 32; + console.log("oo"); + } else if (wMax < 0.47 * examSize && choiceNumber === 2) { + newData[i].choiceWidth = 48; + console.log("ooo"); + } else if (wMax < 0.48 * examSize && choiceNumber === 4) { + newData[i].choiceWidth = 48; + console.log("oooo"); + } else { + newData[i].choiceWidth = "full"; + console.log("ooooo"); + } + } + setData(newData); + setAnswerList(defaultAnswers); + setFake(fake + 1); + }, []); + + //choose choice----------------------------- + const [counter,setCounter]=useState(0); + const chooseHandler = (index, answer) => { + let list = answerList; + if (list[index] !== answer) { + if (list[index] === "") { + setCounter(counter + 1); + } + list[index] = answer; + } else { + list[index] = ""; + setCounter(counter-1); + } + setAnswerList(list); + setFake(fake + 1); + }; + + return ( +
+ {Data.map((item, index) => ( +
+ {/* -----question-text----------------------- */} +
+
+ {index + 1} +
+
+ {item.text && ( +
+ {item.text} +
+ )} + {/* -----question-img----------------------- */} + {item.img && ( +
+ question-img +
+ )} +
+
+ {/* -----choices----------------------------- */} +
+ {item.choices.map((choice, INDEX) => ( +
chooseHandler(index, INDEX)} + > +
+ {badgeList[INDEX]} +
+
+ {choice} +
+
+ ))} +
+ {item.guidance && ( +
+
+ +
+ {item.guidance} +
+
+
+ )} +
+ ))} +
+
+ +
+ شرکت کننده گرامی شما از {Data?.length} سوال آزمون به {counter} سوال + پاسخ داده اید. در صورت اطمینان روی گزینه ثبت پاسخ‌ها و اتمام آزمون + کلیک کنید +
+
+
+ ثبت پاسخ‌ها و اتمام آزمون +
+
+
+ ); +}; + +export default Questions;