Skip to content

Commit

Permalink
Merge pull request #3 from virtual-labs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jnipun1994 authored Jan 14, 2025
2 parents 1803e4f + 81ed5d6 commit 7806694
Show file tree
Hide file tree
Showing 13 changed files with 639 additions and 364 deletions.
5 changes: 3 additions & 2 deletions experiment/simulation/css/task10.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,16 @@ color: #0f69cd;

#jog_dial_one,#jog_dial_two {
position: relative;
width: 30px;
height: 30px;
width: 40px;
height: 40px;
margin: 5px auto;
background: #0f69cd;
-webkit-border-radius: 150px;
-moz-border-radius: 150px;
-ms-border-radius: 150px;
-o-border-radius: 150px;
border-radius: 150px;
cursor:not-allowed;
}
#jog_dial_3,#jog_dial_4,#jog_dial_5,#jog_dial_6{
position: relative;
Expand Down
5 changes: 3 additions & 2 deletions experiment/simulation/css/task7.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,16 @@ color: #0f69cd;

#jog_dial_one,#jog_dial_two {
position: relative;
width: 30px;
height: 30px;
width: 40px;
height: 40px;
margin: 5px auto;
background: #0f69cd;
-webkit-border-radius: 150px;
-moz-border-radius: 150px;
-ms-border-radius: 150px;
-o-border-radius: 150px;
border-radius: 150px;
cursor:not-allowed;
}
#jog_dial_3,#jog_dial_4,#jog_dial_5,#jog_dial_6{
position: relative;
Expand Down
5 changes: 3 additions & 2 deletions experiment/simulation/css/task9.css
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,16 @@ html,body{

#jog_dial_one,#jog_dial_two {
position: relative;
width: 30px;
height: 30px;
width: 40px;
height: 40px;
margin: 5px auto;
background: #0f69cd;
-webkit-border-radius: 150px;
-moz-border-radius: 150px;
-ms-border-radius: 150px;
-o-border-radius: 150px;
border-radius: 150px;
cursor:not-allowed;
}
#jog_dial_3,#jog_dial_4,#jog_dial_5,#jog_dial_6{
position: relative;
Expand Down
10 changes: 4 additions & 6 deletions experiment/simulation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@
<td>

<div id="exph">
<h2 id="expm"> To Study The Characteristics Of Multihole Directional Coupler &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <button ondblclick="hide()" onclick="hov()" id="help">INSTRUCTIONS</button>
<h2 id="expm"> Directional Coupler Characteristics &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
&nbsp; &nbsp; &nbsp; &nbsp; <button style="font-family: 'Times New Roman', Times, serif;" ondblclick="hide()" onclick="hov()" id="help">INSTRUCTIONS</button>
</h2>


Expand Down Expand Up @@ -203,7 +203,7 @@ <h2 id="expm"> To Study The Characteristics Of Multihole Directional Coupler &nb
</div>
<div class="carousel-item ">

As soon as you observe square waveform on CRO, count the division covered by the square waveform.
As soon as you observe square waveform(at 150, 164, 199, 233) on CRO, count the division covered by the square waveform.
</div>
<div class="carousel-item ">

Expand Down Expand Up @@ -622,8 +622,6 @@ <h5 class="heading4">Frequency</h5>
<td> <input value="90" id="P3" onclick="cal()">
&nbsp; <output></output><sup>o</sup></td>
</tr>


</table>

<div>
Expand All @@ -645,7 +643,7 @@ <h5 class="heading4">Frequency</h5>



<script src="js/JogDial.js"></script>
<script src="js/jogDial.js"></script>
<script src="js/jsplumb1.js"></script>
<!-- /JS -->

Expand Down
11 changes: 8 additions & 3 deletions experiment/simulation/js/demo1.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var rightconnection=false;
var datapoints1 = [];
var knobFlag=false;
jsPlumb.ready(function () {

var instance,
Expand Down Expand Up @@ -221,11 +222,15 @@ document.getElementById("check11").addEventListener("click", function () {
container: 'position-absolute',
popup:"swal2-popup"
},
title:"Good Job",
text:"Correct Connection",
title:"Correct Connection!!",
text:"Connection established",
icon:'success',
});

knobFlag=true;
document.getElementById('jog_dial_one').style.cursor='pointer';
document.getElementById('jog_dial_two').style.cursor='pointer';

document.getElementById("name").style.visibility = "visible";
document.getElementById("cch").disabled= false;
document.getElementById("check").disabled= true;
Expand Down Expand Up @@ -286,7 +291,7 @@ document.getElementById("check11").addEventListener("click", function () {
container: 'position-absolute',
popup:"swal2-popup"
},
title:'Incomplete connections',
title:'Incomplete connections!!',
icon:'warning',
});
return;
Expand Down
11 changes: 8 additions & 3 deletions experiment/simulation/js/demo2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var rightconnection=false;
var datapoints1 = [];
var knobFlag=false;
jsPlumb.ready(function () {

var instance,
Expand Down Expand Up @@ -221,11 +222,15 @@ document.getElementById("check11").addEventListener("click", function () {
container: 'position-absolute',
popup:"swal2-popup"
},
title:"Good Job",
text:"Correct Connection",
title:"Correct Connection!!",
text:"Connection established",
icon:'success',
});

knobFlag=true;
document.getElementById('jog_dial_one').style.cursor='pointer';
document.getElementById('jog_dial_two').style.cursor='pointer';

document.getElementById("name").style.visibility = "visible";
document.getElementById("cch").disabled= false;
document.getElementById("check").disabled= true;
Expand Down Expand Up @@ -288,7 +293,7 @@ document.getElementById("check11").addEventListener("click", function () {
container: 'position-absolute',
popup:"swal2-popup"
},
text:'Incomplete connections',
text:'Incomplete connections!!',
icon:'warning',
});
return;
Expand Down
13 changes: 9 additions & 4 deletions experiment/simulation/js/demo3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var rightconnection=false;
var datapoints1 = [];
var knobFlag=false;
jsPlumb.ready(function () {

var instance,
Expand Down Expand Up @@ -221,11 +222,15 @@ document.getElementById("check11").addEventListener("click", function () {
container: 'position-absolute',
popup:"swal2-popup"
},
title:"Good Job",
text:"Correct Connection",
title:"Correct Connection!!",
text:"Connection established",
icon:'success',
});

knobFlag=true;
document.getElementById('jog_dial_one').style.cursor='pointer';
document.getElementById('jog_dial_two').style.cursor='pointer';

document.getElementById("name").style.visibility = "visible";
document.getElementById("cch").disabled= false;
document.getElementById("check").disabled= true;
Expand Down Expand Up @@ -272,7 +277,7 @@ document.getElementById("check11").addEventListener("click", function () {
container: 'position-absolute',
popup:"swal2-popup"
},
title:'No wires connected!',
title:'No wires connected!!',
html:'Please connect <b style="color:red">A</b> &harr; <b style="color:red">D</b> and <b style="color:red">B</b> &harr; <b style="color:red">E</b>.',
icon:'warning',
});
Expand All @@ -290,7 +295,7 @@ document.getElementById("check11").addEventListener("click", function () {
container: 'position-absolute',
popup:"swal2-popup"
},
text:'Incomplete connections',
text:'Incomplete connections!!',
icon:'warning',
});
return;
Expand Down
Loading

0 comments on commit 7806694

Please sign in to comment.