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 9 All Subjects Blueprint PDF || ધોરણ 9 બધાજ વિષયની બ્લુપ્રિન્ટ

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

    4 weeks ago

    std 11 All Subjects Blueprint PDF AllExam

    std 11 All Subjects Blueprint PDF Second Exam નમસ્કાર વિધાર્થી મિત્રો આજના લેખમાં હું તમને…

    1 month ago

    SIR ઝુંબેશ બાદ ગુજરાતમાં 4.34 કરોડ મતદારો નોંધાયા, ડ્રાફ્ટ મતદાર યાદીમાંથી 73.73 લાખ નામ દૂર

    SIR ઝુંબેશ બાદ ગુજરાતમાં 4.34 કરોડ મતદારો નોંધાયા, ડ્રાફ્ટ મતદાર યાદીમાંથી 73.73 લાખ નામ દૂર…

    1 month ago

    Dhurandhar’s World Collection: વિશ્વભરમાં ધુરંધરનો દબદબો, 14 દિવસમાં પાર કર્યો 700 કરોડનો આંક

    Dhurandhar’s World Collection: વિશ્વભરમાં ધુરંધરનો દબદબો, 14 દિવસમાં પાર કર્યો 700 કરોડનો આંક આદિત્ય ધરના…

    1 month ago

    સૂર્યકુમાર યાદવ કેપ્ટનશીપ ગુમાવી શકે છે? ટીમ ઈન્ડિયાની આજે જાહેરાત, હાર્દિક પંડ્યા પર સૌની નજર

    સૂર્યકુમાર યાદવ કેપ્ટનશીપ ગુમાવી શકે છે? ટીમ ઈન્ડિયાની આજે જાહેરાત, હાર્દિક પંડ્યા પર સૌની નજર…

    1 month ago

    સ્માર્ટફોન સહાય યોજના હેઠળ મળશે 6000 રૂપિયા ની સહાય

    ભારતમાં ખેડૂતોનો કલ્યાણ માટે ઘણી બધી યોજનાઓ ચલાવવામાં આવી રહી છે જેમાં કેન્દ્ર સરકાર દ્વારા…

    1 month ago