feat: Cleanup some style
All checks were successful
Build Docker / BuildImage (push) Successful in 1m7s

This commit is contained in:
2025-02-27 14:21:46 +11:00
parent 7bde6e7bd2
commit 3998e1cafc
2 changed files with 2 additions and 12 deletions

View File

@@ -62,9 +62,6 @@ document.addEventListener('DOMContentLoaded', function() {
<div class="card-header bg-success text-white py-3 d-flex justify-content-between align-items-center">
<h3 class="h5 mb-0">Result for ${escapeHtml(url)}</h3>
<div>
<button class="btn btn-sm btn-light" id="refresh-iframe">
<i class="bi bi-arrow-clockwise me-1"></i>Refresh
</button>
<button class="btn btn-sm btn-light ms-2" id="view-source">
<i class="bi bi-code-slash me-1"></i>View Source
</button>
@@ -79,7 +76,6 @@ document.addEventListener('DOMContentLoaded', function() {
// Get reference to the iframe and buttons
const iframe = document.getElementById('result-iframe');
const refreshButton = document.getElementById('refresh-iframe');
const viewSourceButton = document.getElementById('view-source');
// Create a blob URL from the HTML content
@@ -89,12 +85,6 @@ document.addEventListener('DOMContentLoaded', function() {
// Set the iframe src to the blob URL
iframe.src = blobUrl;
// Add event listener to refresh button
refreshButton.addEventListener('click', function() {
// Reload the content
handleCurlRequest(url);
});
// Add event listener to view source button
viewSourceButton.addEventListener('click', function() {
// Show source code in a modal or new window