Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reposition the inputs
  • Loading branch information
ntn16104 committed Jan 23, 2021
1 parent ca0c228 commit 3b17b56
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions templates/temp_index.html
Expand Up @@ -38,7 +38,8 @@
<div id="mySidebar" class="sidebar">
<div id="UserInputCol" style="float:left">
<form style="padding-top: 30px; padding-left: 30px;"">
<div stye="float:top">
<div style="float:top">
<div id ="firstColumn" style ="float:left">
<label>Attacker Tranmission Rate (MB per seconds):</label>
<input type="number" id="attackerSendRate" name="attackerSendRate" value=3><br>

Expand Down Expand Up @@ -85,7 +86,10 @@

<label>Number of SynAck resends:</label>
<input type="number" id="numbSynAckResends" name="numbSynAckResends" value=3><br>
</div>


<div id="secondColumn" style ="float:right">
<label>Client to Router Bandwidth (MB/s):</label>
<input type="number" id="clienttoRouter" name="clienttoRouter" value=3><br>

Expand Down Expand Up @@ -114,8 +118,11 @@
<input type="checkbox" id="DDDstate" name="DDDstate" ,="" checked="true">

<input style="padding-left: 20px; padding-top:10px" type="file" id ="myFile" multiple size="50" onchange="openFile()">
</div>

</div>


<div id="checkboxRowOne" style="float:bottom">
<div style="float:left; padding-top: 10px">
<label>Skip Animation</label><br>
Expand Down Expand Up @@ -169,8 +176,8 @@
}
function showUI(){
$("#UserInputCol").show();
document.getElementById("mySidebar").style.height = "750px";
document.getElementById("main").style.marginTop = "750px";
document.getElementById("mySidebar").style.height = "600px";
document.getElementById("main").style.marginTop = "600px";
}
</script>
</div>
Expand Down Expand Up @@ -246,12 +253,12 @@

<script>
function openNav() {
if(document.getElementById("mySidebar").style.height == "750px"){
if(document.getElementById("mySidebar").style.height == "600px"){
closeNav();
}
else{
document.getElementById("mySidebar").style.height = "750px";
document.getElementById("main").style.marginTop = "750px";
document.getElementById("mySidebar").style.height = "600px";
document.getElementById("main").style.marginTop = "600px";

}
}
Expand Down

0 comments on commit 3b17b56

Please sign in to comment.