Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aakarsh #77

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/lab/exp1/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -490,15 +490,13 @@ <h3><a href="sd.html" >Steepest Decent Method</a></h3>
Simple_harmonic_motion">http://en.wikipedia.org/wiki/Simple_harmonic_motion</a>
</li>
<li>
<a href="http://www.physics.uoguelph.ca/
tutorials/shm/Q.shm.html">http://www.physics.uoguelph.ca/tutorials/shm/Q.shm.html</a>
<a href="https://www.physics.uoguelph.ca/tutorials/shm/Q.shm.html">http://www.physics.uoguelph.ca/tutorials/shm/Q.shm.html</a>
</li>
<li>
Dynamics of structures by Anil K chopra.
</li>
<li>
<a href="http://surendranath.tripod.com/Applets/
Oscillations/SHM/SHMApplet.html">http://surendranath.tripod.com/Applets/Oscillations/SHM/SHMApplet.html</a>
<a href="http://www.surendranath.org/GPA/Oscillations/SHM/SHM.html">http://surendranath.tripod.com/Applets/Oscillations/SHM/SHMApplet.html</a>
</li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/lab/exp10/experiment/bottom.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<td style="padding-left:20px;font-size:13px;font-style: italic;" width="320px">
Many reactions occur in a single step if the reactants collide with a suffucient energy and specific orientation to form a product. However, many reactions do not occur in a single step but follows multi-steps where it goes through many intermediate levels in a half-way and finally leads to product. These intermediate levels are known as transition states ....
<br/><br/>
<a href="../index.html" target="_blank" style="font-size:14px;color:#FFCC00;text-decoration:none;float:right">Read More&gt;&gt;</a>
<a href="../_index.html" target="_blank" style="font-size:14px;color:#FFCC00;text-decoration:none;float:right">Read More&gt;&gt;</a>
</td>
</tr>
</table>
<img src="images/ma-hrline.jpg" style="padding-left:3px;width:1050px;height:4px;"/>
<img src="images/ma-hrline.jpg" style="padding-left:3px;width:1050px;height:4px;"/>
6 changes: 2 additions & 4 deletions src/lab/exp3/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,13 @@ <h3>Observation 1:</h3>
Simple_harmonic_motion">http://en.wikipedia.org/wiki/Simple_harmonic_motion</a>
</li>
<li>
<a href="http://www.physics.uoguelph.ca/
tutorials/shm/Q.shm.html">http://www.physics.uoguelph.ca/tutorials/shm/Q.shm.html</a>
<a href="https://www.physics.uoguelph.ca/tutorials/shm/Q.shm.html">https://www.physics.uoguelph.ca/tutorials/shm/Q.shm.html</a>
</li>
<li>
“Dynamics of structures” by Anil K chopra.
</li>
<li>
<a href="http://surendranath.tripod.com/Applets/
Oscillations/SHM/SHMApplet.html">http://surendranath.tripod.com/Applets/Oscillations/SHM/SHMApplet.html</a>
<a href="http://www.surendranath.org/GPA/Oscillations/SHM/SHM.html">http://surendranath.tripod.com/Applets/Oscillations/SHM/SHMApplet.html</a>
</li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/lab/exp4/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ <h2>Quiz</h2>
Always gives lower energy </font> <br>
<input name="q1" id="q1" value="2" type="radio"><font color="black">
Is optimized for small molecules </font> <br>
<input name="q1" id="q1" value="1" type="radio"> <font color="black">
<input name="q1" id="q1" value="1" type="radio" > <font color="black">
Contains one basis function for each atomic orbital </font> <br>
<input name="q1" id="q1" value="0" type="radio"><font color="black">
None of the above </font> <br>
Expand All @@ -359,7 +359,7 @@ <h2>Quiz</h2>
6-31G* </font> <br>
<input name="q2" id="q2" value="2" type="radio"><font color="black">
6-31G(d) </font> <br>
<input name="q2" id="q2" value="1" type="radio"> <font color="black">
<input name="q2" id="q2" value="1" type="radio" > <font color="black">
3-21G </font> <br>
<input name="q2" id="q2" value="0" type="radio"><font color="black">
None of the above </font> <br>
Expand Down
2 changes: 1 addition & 1 deletion src/lab/exp8/experiment/matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function changeVal(input,row,col){
<tr>
<td>use</td>
<td><img src="images/x_.png"></img></td>
<td><a href="../index.html">see in main theory.</a> </td>
<td><a href="http://ccnsb04-iiith.virtual-labs.ac.in/exp8/index.php?section=Theory">see in main theory.</a> </td>
</tr>
</table>
</li>
Expand Down
58 changes: 39 additions & 19 deletions src/lab/js/quiz.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,54 @@
function checkAns(form)
function checkAns(form)
{
wrong="";
correct="";
var flag=0;
var a=0;
var b=0;
var c=0;
for(i=1;i<=len;++i)
{
var ll = form["q"+i].length;
var sel=-1;
for(j=0;j<ll;++j)
{
if(form["q"+i][j].checked)
if(form["q"+i][j].checked){

sel=j;
}
if(Ans["q"+i]!=parseInt(sel)){
wrong+="Q"+i+", ";
flag++;
}
a++;

if(Ans["q"+i]==parseInt(sel)){

correct+="Q"+i+", ";
flag++;
c++;}
else if(Ans["q"+i]!=parseInt(sel)){
flag++;}
}


/*else if(!form["q"+i][j].checked){
b++;
}*/
}
}
wrong = wrong.substring(0,wrong.length-2);
if(flag>1){
if(wrong!="")
alert(wrong +" are wrong");
else
alert("all ans are correct.")


correct = correct.substring(0,correct.length-2);
if(flag>=1){
if(correct!="")
alert(correct+" correct");
else if(correct=="")
alert("None are correct");
return false;
}
else {
if(wrong!="")
alert(wrong +" is wrong");
else
alert("all ans are correct.")
if(a===0)
alert("Please attempt atleast one question");
if(c===len)
{alert('All Answers are correct');}
/*else
alert("all ans are correct.");*/
return false;
}
}

}