My HTML is:
<!DOCTYPE html>
<script>
$(document).ready(function() {
$('.parent').click(function() {
$('.sub-nav').toggleClass('visible');
});
});
</script>
<script>
$(document).ready(function() {
$('.hr').click(function() {
$('.sub-nav-hr').toggleClass('visible');
});
});
</script>
<script>
$(document).ready(function() {
$('.employee').click(function() {
$('.sub-nav-employee').toggleClass('visible');
});
});
</script>
<script>
$(document).ready(function() {
$('.kpi').click(function() {
$('.sub-nav-kpi').toggleClass('visible');
});
});
</script>
<!-- <script>
$(document).ready(function() {
$('.summary').click(function() {
$('.sub-nav-summary').toggleClass('visible');
});
});
</script> -->
<script>
function openNav() {
document.getElementById("mySidebar").style.width = "250px";
document.getElementById("main").style.marginLeft = "250px";
document.getElementById("main_footer").style.marginLeft = "250px";
document.getElementById("project_form").style.marginLeft = "250px";
}
function closeNav() {
document.getElementById("mySidebar").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
document.getElementById("main_footer").style.marginLeft= "0";
document.getElementById("project_form").style.marginLeft= "0";
}
</script>
</head>
<body>
</section>
<section>
<div class="rt-container" id="project_form" style="transition: margin-left .5s;">
<div class="col-rt-12">
<div class="rt-heading" style="text-align: left;">
<h1>Upload Employee Details</h1>
</div>
<div class="Scriptcontent">
<!-- Start Project Form -->
<form class="reg-form" method="POST" enctype="multipart/form-data" id="employeeDetailsAdd" action="http://50.19.143.13:5000/hrDetailsAdd">
<div class="field-row">
<label class="form-label cf" for="fileupload">Details from HR</label>
<input type="file" id="file" name="file" accept=".xlsx">
</div>
<div class="field-row">
<a target="_blank" href="http://50.19.143.13:5000/static/sample_file_format/HR.xlsx"><label class="form-labe cf" for="fileupload">Download Sample Format</label></a>
</div>
<div class="field-row">
<button type="submit" class="form-button" id="submit">Submit</button>
</div>
</form>
</div>
</div>
</div>
</section>
</body></html>
So I need to add a loading bar when the user uploads the file, to show the user that his file is being uploaded. So there's a loading symbol showing that your file is being uploaded please wait, like a lot of websites have a box with loading symbol and text saying "Please Wait!". But my server side language is python. Im fairly new to this, so if please someone can help me with this. Thank You.