123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790 |
- <template>
- <div v-if="exam && examQuestion()" :key="exam.id" class="container">
- <div class="header">
- <RemainTime></RemainTime>
- <OverallProgress :exam-question-list="examQuestionList"></OverallProgress>
- <div>
- {{ this.$store.state.user.displayName }} -
- {{ this.$store.state.user.studentCodeList.join(",") }}
- </div>
- <QuestionFilters :exam-question-list="examQuestionList"></QuestionFilters>
- <i-button class="qm-primary-button" @click="submitPaper">交卷</i-button>
- </div>
- <div id="examing-home-question" class="main">
- <QuestionView :exam-question="examQuestion()"></QuestionView>
- <ArrowNavView
- :previous-question-order="previousQuestionOrder"
- :next-question-order="nextQuestionOrder"
- ></ArrowNavView>
- </div>
- <div :class="['side', 'side-row-size']">
- <div :class="['question-nav', !faceEnable && 'question-nav-long']">
- <QuestionNavView :paper-struct="paperStruct" />
- </div>
- <div v-if="faceEnable" class="camera">
- <FaceRecognition
- v-if="faceEnable"
- width="400"
- height="300"
- :show-recognize-button="false"
- />
- </div>
- </div>
- <Modal
- v-model="showFaceId"
- :mask-closable="false"
- :closable="false"
- width="800"
- :styles="{ top: '10px' }"
- >
- <FaceId v-if="showFaceId" @closeFaceId="closeFaceId" />
- <p slot="footer"></p>
- </Modal>
- <FaceTracking v-if="faceEnable && PRODUCTION" />
- </div>
- <div v-else>
- 正在等待数据返回...
- <i-button v-if="timeouted" class="qm-primary-button" @click="reloadPage">
- 重试
- </i-button>
- </div>
- </template>
- <script>
- import RemainTime from "./RemainTime.vue";
- import OverallProgress from "./OverallProgress.vue";
- import QuestionFilters from "./QuestionFilters.vue";
- import QuestionView from "./QuestionView.vue";
- import ArrowNavView from "./ArrowNavView.vue";
- import QuestionNavView from "./QuestionNavView.vue";
- import FaceTracking from "./FaceTracking.vue";
- import FaceId from "./FaceId.vue";
- import FaceRecognition from "../../../components/FaceRecognition/FaceRecognition";
- import { openWS, closeWsWithoutReconnect } from "./ws.js";
- import { createNamespacedHelpers } from "vuex";
- const { mapState, mapMutations } = createNamespacedHelpers("examingHomeModule");
- import { DOMAINS_CAN_UPLOAD_PHOTOS } from "@/constants/constants";
- export default {
- name: "ExamingHome",
- components: {
- RemainTime,
- OverallProgress,
- QuestionFilters,
- QuestionView,
- ArrowNavView,
- QuestionNavView,
- FaceRecognition,
- FaceId,
- FaceTracking,
- },
- data() {
- return {
- showFaceId: false,
- faceEnable: false,
- timeouted: false,
- PRODUCTION: process.env.NODE_ENV === "production",
- };
- },
- computed: {
- ...mapState([
- "exam",
- "paperStruct",
- "examQuestionList",
- "snapNow",
- "snapProcessingCount",
- "shouldSubmitPaper",
- "remainTime",
- "questionAnswerFileUrl",
- "uploadModalVisible",
- ]),
- previousQuestionOrder: vm => {
- if (vm.examQuestion().order > 1) {
- return vm.examQuestion().order - 1;
- } else {
- return null;
- }
- },
- nextQuestionOrder: vm => {
- if (vm.examQuestion().order < vm.examQuestionList.length) {
- return vm.examQuestion().order + 1;
- } else {
- return null;
- }
- },
- },
- watch: {
- $route: function() {
- this.examQuestion();
- },
- shouldSubmitPaper() {
- this.realSubmitPaper();
- },
- questionAnswerFileUrl(value) {
- // console.log(this.examQuestion.studentAnswer);
- // console.log("watch", value);
- const examRecordDataId = this.$route.params.examRecordDataId;
- const that = this;
- for (const q of value) {
- if (!q.saved) {
- let acknowledgeStatus = "CONFIRMED";
- // 目前只针对音频题有丢弃的可能
- if (
- q.transferFileType === "PIC" &&
- (q.order != this.$route.params.order || !this.uploadModalVisible)
- ) {
- acknowledgeStatus = "DISCARDED";
- }
- this.$http
- .post(
- "/api/ecs_oe_student/examControl/saveUploadedFileAcknowledgeStatus",
- {
- examRecordDataId,
- filePath: q.fileUrl,
- order: q.order,
- acknowledgeStatus,
- }
- )
- .then(() => {
- if (q.transferFileType === "AUDIO") {
- that.updateExamQuestion({
- order: q.order,
- studentAnswer: q.fileUrl,
- });
- } else if (
- acknowledgeStatus === "CONFIRMED" &&
- q.transferFileType === "PIC"
- ) {
- that.updatePicture(q);
- }
- q.saved = true;
- if (acknowledgeStatus === "CONFIRMED")
- this.$Message.info({
- content: "小程序作答已更新",
- duration: 5,
- closable: true,
- });
- })
- .catch(() => {
- this.$Message.error({
- content: "更新小程序答案失败!",
- duration: 15,
- closable: true,
- });
- });
- }
- }
- },
- // examQuestionList(val, oldVal) {
- // // console.log(val, oldVal);
- // }
- },
- async created() {
- this.timeoutTimeout = setTimeout(() => (this.timeouted = true), 30 * 1000);
- // 仅在线上使用活体检测
- if (
- process.env.NODE_ENV === "production" &&
- /^\d+$/.test(this.$route.query.faceVerifyMinute)
- ) {
- const enoughTimeForFaceId = this.remainTime // 如果remainTime取到了的话
- ? this.remainTime / (60 * 1000) - 1 > this.$route.query.faceVerifyMinute
- : true;
- if (!enoughTimeForFaceId) return;
- this.faceIdMsgTimeout = setTimeout(() => {
- // this.serverLog("debug/S-002001", "活体检测前抓拍");
- this.toggleSnapNow();
- this.$Message.info({
- content: "30秒后开始活体检测",
- duration: 15,
- closable: true,
- });
- }, this.$route.query.faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
- this.faceIdDivTimeout = setTimeout(() => {
- // this.serverLog("debug/S-003001", "准备弹出活体检测框");
- this.showFaceId = true;
- }, this.$route.query.faceVerifyMinute * 60 * 1000); // 定时做活体检测
- // }, 1 * 1000); // 定时做活体检测
- }
- // for test
- // setTimeout(() => {
- // this.showFaceId = true;
- // // this.$Modal.remove();
- // // }, this.$route.query.faceVerifyMinute * 60 * 1000); // 定时做活体检测
- // }, 5 * 1000); // 定时做活体检测
- let faceEnable;
- try {
- faceEnable = await this.$http.get(
- "/api/ecs_exam_work/exam/examOrgPropertyFromCache4StudentSession/" +
- this.$route.params.examId +
- `/IS_FACE_ENABLE`
- );
- } catch (error) {
- this.$Message.error({
- content: "获取人脸检测设置失败",
- duration: 15,
- closable: true,
- });
- this.logout("?LogoutReason=获取人脸检测设置失败");
- return;
- }
- if (
- faceEnable.data.IS_FACE_ENABLE &&
- JSON.parse(faceEnable.data.IS_FACE_ENABLE)
- ) {
- this.faceEnable = true;
- // setTimeout(() => {
- // this.serverLog("debug/S-002001", "进入考试后60秒内抓拍");
- // this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
- // }, 60 * 1000); // 60内秒钟后抓拍
- let initSnapshotTrialTimes = 0;
- this.initSnapInterval = setInterval(() => {
- if (this.exam || initSnapshotTrialTimes > 12) {
- clearInterval(this.initSnapInterval);
- this.serverLog(
- "debug/S-002001",
- "进入考试后60秒内抓拍" + `(${(initSnapshotTrialTimes + 1) * 5}秒)`
- );
- this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
- } else {
- initSnapshotTrialTimes++;
- }
- }, 15 * 1000);
- // let initSnapshotTrialTimes = 0;
- // const initSnapshot = setTimeout(() => {
- // if (this.exam || initSnapshotTrialTimes < 6) {
- // this.serverLog("debug/S-002001", "进入考试后60秒内抓拍");
- // this.toggleSnapNow(); // 开启抓拍才在进入考试时抓拍一张
- // } else {
- // setTimeout(() => initSnapshot(), 5 * 1000);
- // }
- // }, 5 * 1000); // 60内秒钟后抓拍
- try {
- const snapshotInterval = await this.$http.get(
- "/api/ecs_exam_work/exam/examOrgPropertyFromCache4StudentSession/" +
- this.$route.params.examId +
- `/SNAPSHOT_INTERVAL`
- );
- if (snapshotInterval.data) {
- // 考务设置抓拍间隔
- this.snapInterval = setInterval(() => {
- this.serverLog(
- "debug/S-002001",
- "根据抓拍间隔抓拍:抓拍间隔=" +
- snapshotInterval.data.SNAPSHOT_INTERVAL +
- "分钟"
- );
- this.toggleSnapNow();
- }, snapshotInterval.data.SNAPSHOT_INTERVAL * 60 * 1000);
- }
- } catch (error) {
- this.$Message.error({
- content: "获取人脸抓拍间隔设置失败",
- duration: 15,
- closable: true,
- });
- this.logout("?LogoutReason=获取人脸抓拍间隔设置失败");
- return;
- }
- }
- try {
- await this.initData();
- } catch (error) {
- this.$Message.error({
- content: "获取试卷信息失败,退出登录",
- duration: 15,
- closable: true,
- });
- this.logout("?LogoutReason=获取试卷信息失败");
- return;
- }
- this.submitInterval = setInterval(
- () => this.answerAllQuestions(),
- 5 * 1000 // 10秒检查是否有更改需要提交答案
- );
- },
- async mounted() {
- // iview bug: https://github.com/iview/iview/issues/4061
- // document.body.style = "";
- window._hmt.push(["_trackEvent", "正在考试页面", "进入页面"]);
- if (typeof nodeRequire != "undefined") {
- try {
- var fs = window.nodeRequire("fs");
- if (fs.existsSync("multiCamera.exe")) {
- await new Promise((resolve, reject) => {
- window.nodeRequire("node-cmd").get("multiCamera.exe", () => {
- try {
- let cameraInfos = fs.readFileSync("CameraInfo.txt", "utf-8");
- if (cameraInfos && cameraInfos.trim()) {
- cameraInfos = cameraInfos.trim();
- cameraInfos = cameraInfos.replace(/\r\n/g, "");
- cameraInfos = cameraInfos.replace(/\n/g, "");
- console.log(cameraInfos);
- this.serverLog("debug/S-001001", cameraInfos);
- }
- resolve();
- } catch (error) {
- reject("读取摄像头列表失败");
- }
- });
- });
- }
- } catch (error) {
- console.log(error);
- }
- }
- },
- beforeRouteUpdate(from, to, next) {
- window._hmt.push(["_trackEvent", "正在考试页面", "题目切换"]);
- if (process.env.NODE_ENV === "development") {
- console.log("beforeRouteUpdate from: " + this.$route.fullPath);
- }
- this.answerAllQuestions();
- next();
- },
- beforeDestroy() {
- clearTimeout(this.timeoutTimeout);
- clearInterval(this.submitInterval);
- clearInterval(this.initSnapInterval);
- clearInterval(this.snapInterval);
- clearTimeout(this.faceIdMsgTimeout);
- clearTimeout(this.faceIdDivTimeout);
- closeWsWithoutReconnect();
- this.updateExamState({
- exam: null,
- paperStruct: null,
- examQuestionList: null,
- questionAnswerFileUrl: [],
- pictureAnswer: {},
- });
- this.$Modal.remove();
- },
- // beforeRouteUpdate(to, from, next) {
- // this.updateQuestion(next);
- // },
- methods: {
- ...mapMutations([
- "updateExamState",
- "updateExamQuestion",
- "toggleSnapNow",
- "updateExamResult",
- "resetExamQuestionDirty",
- "updatePicture",
- ]),
- async initData() {
- const [
- examData,
- paperStructData,
- examQuestionListData,
- ] = await Promise.all([
- this.$http.get("/api/ecs_exam_work/exam/" + this.$route.params.examId),
- this.$http.get(
- "/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
- this.$route.params.examRecordDataId
- ),
- this.$http.get("/api/ecs_oe_student/examQuestion/findExamQuestionList"),
- ]);
- const [exam, paperStruct] = [examData.data, paperStructData.data];
- let examQuestionList = examQuestionListData.data;
- if (
- exam === undefined ||
- paperStruct === undefined ||
- examQuestionListData === undefined
- ) {
- this.$Message.error({
- content: "获取试卷信息失败",
- duration: 15,
- closable: true,
- });
- this.logout("?LogoutReason=获取试卷信息失败");
- return;
- }
- if (exam.examType === "PRACTICE") {
- const practiceType = (await this.$http.get(
- "/api/ecs_exam_work/exam/examOrgPropertyFromCache4StudentSession/" +
- this.$route.params.examId +
- `/PRACTICE_TYPE`
- )).data;
- this.practiceType = practiceType.PRACTICE_TYPE; // IN_PRACTICE NO_ANSWER
- exam.practiceType = practiceType.PRACTICE_TYPE;
- }
- try {
- let freezeTimeData = await this.$http.get(
- "/api/ecs_exam_work/exam/examOrgPropertyFromCache4StudentSession/" +
- this.$route.params.examId +
- `/FREEZE_TIME`
- );
- exam.freezeTime =
- freezeTimeData.data.FREEZE_TIME &&
- JSON.parse(freezeTimeData.data.FREEZE_TIME);
- } catch (error) {
- console.log("获取考试冻结时间失败--忽略");
- }
- // parentQuestionBody
- // questionUnitWrapperList
- // questionBody => from examQuestionList
- // questionUnitList =>
- // studentAnswer
- // rightAnswer
- // init subNumber
- let questionId = null;
- let i = 1;
- examQuestionList = examQuestionList.map(eq => {
- if (questionId == eq.questionId) {
- eq.subNumber = i++;
- } else {
- i = 1;
- questionId = eq.questionId;
- eq.subNumber = i++;
- }
- return eq;
- });
- let groupOrder = 1;
- let mainNumber = 0;
- examQuestionList = examQuestionList.map(eq => {
- if (mainNumber == eq.mainNumber) {
- eq.groupOrder = groupOrder++;
- } else {
- mainNumber = eq.mainNumber;
- groupOrder = 1;
- eq.groupOrder = groupOrder++;
- }
- const questionWrapperList =
- paperStruct.defaultPaper.questionGroupList[eq.mainNumber - 1]
- .questionWrapperList;
- const groupName =
- paperStruct.defaultPaper.questionGroupList[eq.mainNumber - 1]
- .groupName;
- const groupTotal = questionWrapperList.reduce(
- (accumulator, questionWrapper) =>
- accumulator + questionWrapper.questionUnitWrapperList.length,
- 0
- );
- eq.groupName = groupName;
- eq.groupTotal = groupTotal;
- return eq;
- });
- examQuestionList = examQuestionList.map(eq => {
- const paperStructQuestion = paperStruct.defaultPaper.questionGroupList[
- eq.mainNumber - 1
- ].questionWrapperList.find(q => q.questionId === eq.questionId);
- return Object.assign(eq, {
- limitedPlayTimes: paperStructQuestion.limitedPlayTimes,
- });
- });
- this.updateExamState({
- exam: exam,
- paperStruct: paperStruct,
- examQuestionList: examQuestionList,
- allAudioPlayTimes: JSON.parse(examQuestionList[0].audioPlayTimes) || [],
- questionAnswerFileUrl: [],
- pictureAnswer: {},
- });
- // console.log(examQuestionList);
- // console.log(examQuestionList.find(v => v.answerType === "SINGLE_AUDIO"));
- const shouldOpenWS =
- examQuestionList.find(v => v.answerType === "SINGLE_AUDIO") ||
- DOMAINS_CAN_UPLOAD_PHOTOS.includes(this.$store.state.user.schoolDomain);
- if (shouldOpenWS) {
- // console.log("have single");
- const examRecordDataId = this.$route.params.examRecordDataId;
- openWS({ examRecordDataId });
- }
- },
- updateQuestion: async function(next) {
- // 初始化套题的答案,为回填部分选项做准备
- // for (let q of this.examQuestionList) {
- // if (q.subQuestionList.length > 0) {
- // q.studentAnswer = [];
- // for (let sq of q.subQuestionList) {
- // q.studentAnswer.push(sq.studentAnswer);
- // }
- // }
- // }
- next && next();
- if (!this.exam) return;
- },
- closeFaceId() {
- this.showFaceId = false;
- },
- async answerAllQuestions(ignoreDirty) {
- const answers = this.examQuestionList
- .filter(eq => (ignoreDirty ? true : eq.dirty))
- .filter(eq => eq.getQuestionContent)
- .map(eq => {
- return Object.assign(
- {
- order: eq.order,
- studentAnswer: eq.studentAnswer,
- },
- eq.audioPlayTimes && { audioPlayTimes: eq.audioPlayTimes },
- eq.isSign && { isSign: eq.isSign }
- );
- });
- if (answers.length > 0) {
- try {
- await this.$http.post(
- "/api/ecs_oe_student/examQuestion/submitQuestionAnswer",
- answers
- );
- this.resetExamQuestionDirty();
- // 提交成功,返回true,供最后提交时判断。自动提交失败,不暂停。
- return true;
- } catch (error) {
- console.log(error);
- this.$Message.error({
- content: "提交答案失败",
- duration: 15,
- closable: true,
- });
- window._hmt.push([
- "_trackEvent",
- "正在考试页面",
- "提交答案失败",
- error.message +
- " |||| " +
- (((error.response || {}).data || {}).desc || ""),
- ]);
- this.serverLog(
- "debug/S-008001",
- `提交答案失败 => 考试剩余时间:${this.remainTime / 1000}`
- );
- }
- }
- },
- async submitPaper() {
- try {
- // 交卷前强制提交所有答案
- const ret = await this.answerAllQuestions(true);
- if (!ret) {
- // 提交答案失败,停止交卷逻辑。
- return;
- }
- } catch (error) {
- return;
- }
- if (
- this.exam.freezeTime &&
- this.remainTime >
- (this.exam.duration - this.exam.freezeTime) * 60 * 1000
- ) {
- this.$Message.info({
- content: `考试开始${this.exam.freezeTime}分钟后才允许交卷。`,
- duration: 5,
- closable: true,
- });
- return;
- }
- const answered = this.examQuestionList.filter(
- q => q.studentAnswer !== null
- ).length;
- const unanswered = this.examQuestionList.filter(
- q => q.studentAnswer === null
- ).length;
- const signed = this.examQuestionList.filter(q => q.isSign).length;
- const showConfirmTime = Date.now();
- this.$Modal.confirm({
- title: "确认交卷",
- content: `<p>已答题目:${answered}</p><p>未答题目:${unanswered}</p><p>标记题目:${signed}</p>`,
- onOk: () => {
- this.realSubmitPaper(showConfirmTime);
- },
- });
- },
- async realSubmitPaper(showConfirmTime = 0) {
- this.$Spin.show({
- render: () => {
- return <div style="font-size: 44px">正在交卷,请耐心等待...</div>;
- },
- });
- if (this.faceEnable) {
- this.serverLog("debug/S-002001", "交卷前抓拍");
- this.toggleSnapNow();
- }
- // 确保抓拍指令在交卷前执行,同时确保5秒间隔提交答案的指令执行了
- let delay = 5 - (Date.now() - showConfirmTime) / 1000;
- if (delay < 0) {
- // 如果用户已经看确认框超过5秒,或者不是由确认框进来的,不延迟
- delay = 0;
- }
- // 给抓拍照片多一秒处理时间
- delay = delay + 1;
- setTimeout(() => this.realSubmitPaperStep2(), delay * 1000);
- this.submitCount = 1;
- },
- async realSubmitPaperStep2() {
- if (this.snapProcessingCount > 0) {
- this.submitCount++;
- if (this.submitCount < 200) {
- // 一分钟后,强制交卷
- setTimeout(() => this.realSubmitPaperStep2(), 300);
- return;
- }
- }
- if (this.submitLock) {
- return;
- } else {
- this.submitLock = true;
- }
- if (this.$route.name !== "OnlineExamingHome") {
- // 非考试页,不在交卷
- this.$Spin.hide();
- return;
- }
- try {
- const examId = this.$route.params.examId;
- const examRecordDataId = this.$route.params.examRecordDataId;
- const res = await this.$http.get(
- "/api/ecs_oe_student/examControl/endExam"
- );
- if (res.status === 200) {
- this.$router.replace({
- path: `/online-exam/exam/${examId}/examRecordData/${examRecordDataId}/end`,
- });
- // 确保交卷成功后,不会再次交卷
- this.submitLock = true;
- this.$Spin.hide();
- return;
- } else {
- this.$Message.error({
- content: "交卷失败",
- duration: 15,
- closable: true,
- });
- }
- this.submitLock = false;
- } catch (e) {
- this.$Message.error({
- content: "交卷失败",
- duration: 15,
- closable: true,
- });
- console.log(e);
- }
- this.submitLock = false;
- this.$Spin.hide();
- },
- examQuestion() {
- return (
- this.examQuestionList &&
- this.examQuestionList.find(
- eq => eq.order == this.$route.params.order // number == string
- )
- );
- },
- reloadPage() {
- window._hmt.push([
- "_trackEvent",
- "正在考试页面",
- "页面加载失败",
- "reload",
- ]);
- window.location.reload();
- },
- },
- };
- </script>
- <style scoped>
- .container {
- display: grid;
- grid-template-areas:
- "header header"
- "main side";
- grid-template-rows: 80px minmax(0, 1fr);
- grid-template-columns: 1fr 400px;
- height: 100vh;
- width: 100vw;
- }
- .header {
- display: grid;
- align-items: center;
- justify-items: center;
- grid-template-columns: 200px 280px 1fr 300px 100px;
- grid-area: header;
- height: 80px;
- background-color: #f5f5f5;
- }
- .main {
- display: grid;
- grid-area: main;
- grid-template-rows: 1fr 50px;
- }
- .side {
- display: grid;
- grid-area: side;
- grid-template-rows: 1fr 250px;
- background-color: #f5f5f5;
- }
- .side-row-size {
- grid-template-rows: 1fr;
- }
- .question-nav {
- overflow-y: scroll;
- max-height: calc(100vh - 300px);
- }
- .question-nav-long {
- max-height: calc(100vh - 100px);
- }
- .camera {
- align-self: flex-end;
- justify-self: flex-end;
- }
- @media screen and (max-height: 768px) {
- .container {
- grid-template-rows: 50px minmax(0, 1fr);
- }
- .header {
- height: 50px;
- }
- .side {
- grid-template-rows: minmax(0, 1fr) 200px;
- }
- }
- </style>
- <style>
- #examing-home-question img {
- max-width: 100%;
- height: auto !important;
- }
- </style>
|