Skip to content

Commit

Permalink
Update Pentest-Wording-UI.html
Browse files Browse the repository at this point in the history
  • Loading branch information
xchopath authored Oct 6, 2023
1 parent 29e7604 commit e2c80cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/Pentest-Wording-UI.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
<body>
<div class="container">
<h1 class="text-warning text-center fw-bolder pt-5">Pentest Wording Database UI</h1>
<p class="pb-5 text-center text-monospace">Data Source: <a href="https://github.com/zerobyte-id/Pentest-Wording-Database-Indonesia" class="text-info" style="text-decoration:none;">https://github.com/zerobyte-id/Pentest-Wording-Database-Indonesia</a></p>
<p class="pb-5 text-center text-monospace">Data Source: <a href="https://github.com/zerobyte-id/Pentest-Wording-Database-Indonesia" class="text-info" style="text-decoration:none;">https://github.com/zerobyte-id/Pentest-Wording-Database-Indonesia</a> (Bahasa Indonesia)</p>
<div class="input-group mb-3">
<input type="text" class="form-control border border-warning" placeholder="Finding?" id="searchInput" required>
<button class="btn btn-warning border border-warning" type="button" id="searchButton">Search</button>
</div>
<div id="searchResult"></div>

<div class="modal" id="myModal">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Details</h4>
<h4 class="modal-title text-warning" id="modalTitle">Details</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
Expand Down Expand Up @@ -82,11 +81,12 @@ <h4 class="text-warning text-center">CVSS 3.1 Calculator</h4>
fetch(item.download_url)
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
throw new Error('Fetch data failed.');
}
return response.text();
})
.then(content => {
$("#modalTitle").text(item.name.replace(".yaml", ""));
$("#reportDetails").html(content);
})
.catch(error => {
Expand Down

0 comments on commit e2c80cf

Please sign in to comment.