()
| 27 | |
| 28 | } |
| 29 | function webstudent() |
| 30 | { var t=document.getElementById('table2'); |
| 31 | if( document.getElementsByClassName("student")[0].textContent==="Generate Data Student"){ |
| 32 | var webstudent={ |
| 33 | student:[] |
| 34 | } |
| 35 | webstudent.student.push({'name':'Ritik Gupta','batch':'A2','RollNo':'2K19/SE/99','CGPA':'7.2'}) |
| 36 | webstudent.student.push({'name':'Riya Bansal','batch':'A2','RollNo':'2K19/SE/101','CGPA':'7.9'}) |
| 37 | webstudent.student.push({'name':'Abheek Kaushal','batch':'A5','RollNo':'2K20/CO/97','CGPA':' '}) |
| 38 | webstudent.student.push({'name':'Harshit Aggarwal','batch':'A5','RollNo':'2K19/CO/97','CGPA':'8.5'}) |
| 39 | webstudent.student.push({'name':'Deepanshu Tamta','batch':'A2','RollNo':'2K19/SE/99','CGPA':'7.2'}) |
| 40 | webstudent.student.push({'name':'Kushagra Kesarwani','batch':'A2','RollNo':'2K19/IT/101','CGPA':'8.2'}) |
| 41 | webstudent.student.push({'name':'Naveen Yadav','batch':'A5','RollNo':'2K19/IT/97','CGPA':'7'}) |
| 42 | webstudent.student.push({'name':'Rishav Sinha','batch':'A6','RollNo':'2K19/CO/97','CGPA':'8.5'}) |
| 43 | webstudent.student.push({'name':'Sohil Khan','batch':'A5','RollNo':'2K19/CO/97','CGPA':'8.5'}) |
| 44 | webstudent.student.push({'name':'Shashank Negi','batch':'A5','RollNo':'2K19/CO/97','CGPA':'8.5'}) |
| 45 | webstudent.student.push({'name':'Abhishek Kashyap','batch':'A5','RollNo':'2K19/CO/97','CGPA':'8.5'}) |
| 46 | webstudent.student.push({'name':'Yash Prasad','batch':'A5','RollNo':'2K19/CO/97','CGPA':'8.5'}) |
| 47 | |
| 48 | for(var i=0;i<webstudent.student.length;++i){ |
| 49 | t.innerHTML+='<tr><td>'+webstudent.student[i].name+'</td>'+'<td>'+webstudent.student[i].batch+'</td>'+'<td>'+webstudent.student[i].RollNo+'</td><td>'+webstudent.student[i].CGPA+'</td></tr>' } |
| 50 | t.disabled=true; |
| 51 | document.getElementsByClassName("student")[0].textContent="hide data"; |
| 52 | }else{ |
| 53 | for(let i=0;i<=12;i++) |
| 54 | {if(i!=0) |
| 55 | {t.innerHTML=" "; |
| 56 | } |
| 57 | t.innerHTML='<tr><td>'+"Name"+'</td>'+'<td>'+"Batch"+'</td>'+'<td>'+"RollNo"+'</td><td>'+"CGPA"+'</td></tr>' |
| 58 | |
| 59 | |
| 60 | } document.getElementsByClassName("student")[0].textContent="Generate Data Student"; |
| 61 | } |
| 62 | |
| 63 | } |
nothing calls this directly
no outgoing calls
no test coverage detected