Categories: Trending

પરિમિતિ અને ક્ષેત્રફળ

📐 પરિમિતિ-ક્ષેત્રફળ ક્વિઝ

Quiz Details

Quiz Code:

Quiz Name:

Teacher: ()

School:

Quiz Marks:


Student Details

Student Code:

Student Name:

Student School:

Class:

✅ ટેસ્ટ પૂર્ણ

ક્વિઝ નામ: ${quizData.name}
શિક્ષક: ${quizData.teacherName} (${quizData.teacher})
શાળા: ${quizData.school}
વિદ્યાર્થી કોડ: ${studentData.code}
વિદ્યાર્થી નામ: ${studentData.name}
વિદ્યાર્થી શાળા: ${studentData.school}
વર્ગ: ${studentData["class"] ?? ""}
કુલ પ્રશ્ન: ${totalQuestions}   |   સ્કોર: ${score}   |   ક્વિઝ તારીખ અને સમય: ${quizDateTime}
પ્રશ્નવાર વિગતો: `; const list = attemptLog.map((it,i)=>{ const isCorrect = (it.selected && it.correct && it.selected.replace(/\s+/g,'').startsWith(it.correct.replace(/\s+/g,''))); return `
  • ${i+1})${it.question}

    ✔ સાચો જવાબ: ${it.correct} ✎ પસંદ કર્યું: ${it.selected || '---'}
  • `; }).join(""); c.innerHTML = metaTop + `
      ${list}
    `; // Typeset Math, wait for fonts, then rasterize compactly if (window.MathJax && window.MathJax.typesetPromise) { await MathJax.typesetPromise([c]); } await document.fonts.ready; const canvas = await html2canvas(c,{scale:2,backgroundColor:'#ffffff', windowWidth:800}); const { jsPDF } = window.jspdf; const pdf = new jsPDF('p','mm','a4'); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = pdf.internal.pageSize.getHeight(); const imgWidthPx = canvas.width; const imgHeightPx = canvas.height; const pxPerMm = imgWidthPx / pdfWidth; const pageHeightPx = Math.floor(pdfHeight * pxPerMm); let position = 0, pageCount=0; while(position < imgHeightPx){ const sliceHeight = Math.min(pageHeightPx, imgHeightPx - position); const pageCanvas = document.createElement('canvas'); pageCanvas.width = imgWidthPx; pageCanvas.height = sliceHeight; const ctx = pageCanvas.getContext('2d'); ctx.fillStyle="#fff"; ctx.fillRect(0,0,pageCanvas.width,pageCanvas.height); ctx.drawImage(canvas,0,position,imgWidthPx,sliceHeight,0,0,pageCanvas.width,pageCanvas.height); const imgData = pageCanvas.toDataURL('image/png',1.0); const imgHeightMm = pageCanvas.height / pxPerMm; if(pageCount>0) pdf.addPage(); pdf.addImage(imgData,'PNG',0,0,pdfWidth,imgHeightMm); position += sliceHeight; pageCount++; } pdf.save(`QuizReport_${quizData.code}_${studentCode}.pdf`); } })();

    Share
    Published by
    vitalkhabar

    Recent Posts

    Std 12 Manovigyan IMP Paper Solution Board Exam ||

    Std 12 Manovigyan IMP Paper Solution Board Exam બોર્ડ પરીક્ષા ધોરણ 12 મનોવિજ્ઞાન IMP પેપર…

    3 weeks ago

    STD 12 Tatvgyan IMP Board Exam

    STD 12 Tatvgyan IMP Board Exam ધોરણ 12 તત્વજ્ઞાન  MOST VIRAL પ્રશ્નો વિભાગ - C…

    3 weeks ago

    Std 12 Samajshastra IMP Paper Solution 1 Board Exam

    Std 12 Samajshastra IMP Paper Solution 1 Board Exam   બોર્ડ પરીક્ષા ધોરણ 12 સમાજશાસ્ત્ર…

    4 weeks ago

    Std 12 Manovigyn Imp Section D ધોરણ 12 મનોવિજ્ઞાન

    Std 12 Manovigyn Imp Section D ધોરણ 12 મનોવિજ્ઞાન વિભાગ D માટે IMP * છેલ્લા…

    1 month ago

    Std 12 Bhugol Imp paper Solution 2 Board Exam / ધોરણ ૧૨ ભૂગોળ IMP પેપર સોલ્યુસન

    Std 12 Bhugol Imp paper Solution 2 Board Exam / ધોરણ ૧૨ ભૂગોળ IMP પેપર…

    1 month ago

    std 9 All Subjects Blueprint PDF || ધોરણ 9 બધાજ વિષયની બ્લુપ્રિન્ટ

    std 9 All Subjects Blueprint PDF || ધોરણ 9 બધાજ વિષયની બ્લુપ્રિન્ટ નમસ્કાર વહાલા વિદ્યાર્થી…

    2 months ago