Skip to content

Commit

Permalink
reformatting some js and html
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Sep 17, 2024
1 parent 60085e9 commit 8631453
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
8 changes: 4 additions & 4 deletions static/js/fetchurls.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function fetchUrls() {
// Clear loading message and append data
container.innerHTML = "";
data.Urls.forEach(url => {
// Update the speedElement for each URL
bar.style.width = url.progress + "%";
speedElement.innerText = url.data;
bar.innerText = url.progress.toFixed(0) + "%";
// Update the speedElement for each URL
bar.style.width = url.progress + "%";
speedElement.innerText = url.data;
bar.innerText = url.progress.toFixed(0) + "%";
if (url.status === 200) {
let urlDisplay;
// For other status codes (200), use the original path
Expand Down
37 changes: 19 additions & 18 deletions templates/ssl.page.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{{template "base" .}}

{{define "content"}}
<div class="container-fluid">
<div class="row">
<div class="col">
{{if .SSLInfo}}
{{range .SSLInfo}}
<div class="card bg-dark text-light mb-4">
<div class="card-body">
<div class="card-header bg-success">
<h5><i class="bi bi-search"></i> crt.sh ID: <a href="https://crt.sh/?id={{printf "%0.0f" .id}}" target="_blank" style="color: #003366;">{{printf "%0.0f" .id}}</a></h5>
</div>
<div class="mt-3">
<p class="text-break"><b>Common Name:</b> {{.common_name}}</p>
<p class="text-break"><b>Matching Identities:</b> {{.name_value}}</p>
<p class="text-break"><b>Issuer Name:</b> {{.issuer_name}}</p>
</div>
<div class="container-fluid">
<div class="row">
<div class="col">
{{if .SSLInfo}}
{{range .SSLInfo}}
<div class="card bg-dark text-light mb-4">
<div class="card-body">
<div class="card-header bg-success">
<h5><i class="bi bi-search"></i> crt.sh ID: <a href="https://crt.sh/?id={{printf " %0.0f" .id}}"
target="_blank" style="color: #003366;">{{printf "%0.0f" .id}}</a></h5>
</div>
<div class="mt-3">
<p class="text-break"><b>Common Name:</b> {{.common_name}}</p>
<p class="text-break"><b>Matching Identities:</b> {{.name_value}}</p>
<p class="text-break"><b>Issuer Name:</b> {{.issuer_name}}</p>
</div>
</div>
{{else}}
<p>No SSL information available for this domain.</p>
{{end}}
</div>
{{else}}
<p>No SSL information available for this domain.</p>
{{end}}
</div>
</div>
</div>
{{end}}

{{end}}
2 changes: 1 addition & 1 deletion templates/whois.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ <h5><i class="bi bi-search"></i> WHOIS Information</h5>
</div>
</div>
</div>
{{end}}
{{end}}

0 comments on commit 8631453

Please sign in to comment.