Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Remove other cases of the loading function
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Jun 30, 2023
1 parent 35247cc commit fb27e56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,29 @@
<div class="container">
<div class="row justify-content-lg-center">
<div class="d-flex justify-content-center">
<button
type="button"
class="btn btn-primary"
style="margin-left: 0%"
onclick="showReportDiv()"
>
<button type="button" class="btn btn-primary" style="margin-left: 0%" onclick="showReportDiv()">
Generate Reports
</button>
</div>
</div>
<br />
<div class="row justify-content-lg-center">
<div class="d-flex justify-content-center">
<button
type="button"
class="btn btn-primary"
style="margin-left: 0%"
onclick="showBulletinDiv()"
>
<button type="button" class="btn btn-primary" style="margin-left: 0%" onclick="showBulletinDiv()">
Generate Cybersixgill Bulletin
</button>
</div>
</div>
<br />
<div class="row justify-content-lg-center">
<div class="d-flex justify-content-center">
<button
type="button"
class="btn btn-primary"
style="margin-left: 0%"
onclick="showCredsDiv()"
>
<button type="button" class="btn btn-primary" style="margin-left: 0%" onclick="showCredsDiv()">
Generate Credential Bulletin
</button>
</div>
</div>
<br />
<div
id="ReportDiv"
class="row justify-content-lg-center"
style="display: none"
>
<div id="ReportDiv" class="row justify-content-lg-center" style="display: none">
<div class="d-flex justify-content-center">
<div class="card" id="content">
<div class="card-header text-white bg-primary mb-3">
Expand All @@ -65,11 +46,7 @@
</div>
</div>
</div>
<div
id="BulletinDiv"
class="row justify-content-lg-center"
style="display: none"
>
<div id="BulletinDiv" class="row justify-content-lg-center" style="display: none">
<div class="d-flex justify-content-center">
<div class="card" id="content">
<div class="card-header text-white bg-primary mb-3">
Expand All @@ -94,11 +71,7 @@
</div>
</div>
</div>
<div
id="CredsDiv"
class="row justify-content-lg-center"
style="display: none"
>
<div id="CredsDiv" class="row justify-content-lg-center" style="display: none">
<div class="d-flex justify-content-center">
<div class="card" id="content">
<div class="card-header text-white bg-primary mb-3">
Expand Down Expand Up @@ -169,22 +142,14 @@
if (C.style.display == "" && B.style.display == "") showBulletinDiv();
}

function loading() {
$("#loading").show();
$("#content").hide();
}

$(document).ready(function () {
console.log("Im ready ");

setTimeout(function () {
$("#messageDiv").fadeOut("fast");
}, 5000);
$(window).load(function () {
$("#loading").hide();
});
});
</script>

{% endblock %}
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
{% extends "base.html" %} {% block content %}

<div class="container">
<img
src="{{ url_for('static', filename='CISAImage.png') }}"
alt="CISA seal image"
width="200"
height="200"
/>
<img src="{{ url_for('static', filename='CISAImage.png') }}" alt="CISA seal image" width="200" height="200" />
<div id="loading" class="justify-content-lg-center"></div>
<div class="row justify-content-lg-center">
<div class="row col-lg-6 offset-lg-3">
<input
type="hidden"
value="{% block title %} Stakeholder {% endblock%}"
/>
<input type="hidden" value="{% block title %} Stakeholder {% endblock%}" />

<button type="button" class="btn btn-primary" onclick="showDiv()">
Add External Stakeholder
Expand Down Expand Up @@ -55,11 +47,6 @@
T.style.display = displayValue;
}

function loading() {
$("#loading").show();
$("#content").hide();
}

$(document).ready(function () {
console.log("Im ready ");

Expand All @@ -68,11 +55,8 @@
setTimeout(function () {
$("#messageDiv").fadeOut("fast");
}, 5000);
$(window).load(function () {
$("#loading").hide();
});
});
</script>

{% endblock %}
</div>
</div>
17 changes: 2 additions & 15 deletions src/pe_reports/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
<div class="container">
<div class="row">
<div class="col-lg-3">
<img
src="{{ url_for('static', filename='CISAImage.png') }}"
alt="CISA seal image"
width="200"
height="200"
/>
<img src="{{ url_for('static', filename='CISAImage.png') }}" alt="CISA seal image" width="200" height="200" />
</div>
<input type="hidden" value="{% block title %} Home {% endblock%}" />

Expand All @@ -32,11 +27,6 @@
T.style.display = displayValue;
}

function loading() {
$("#loading").show();
$("#content").hide();
}

$(document).ready(function () {
console.log("Im ready ");

Expand All @@ -45,11 +35,8 @@
setTimeout(function () {
$("#messageDiv").fadeOut("fast");
}, 5000);
$(window).load(function () {
$("#loading").hide();
});
});
</script>

{% endblock %}
</div>
</div>

0 comments on commit fb27e56

Please sign in to comment.