Skip to content

🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Deleted test.html

sassanixd4349e8f79bb
diff --git a/test.html b/test.html
deleted file mode 100644
index 4923f70..0000000
--- a/test.html
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Image Test</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- padding: 20px;
- max-width: 800px;
- margin: 0 auto;
- }
- .test-box {
- border: 1px solid #ccc;
- padding: 20px;
- margin: 20px 0;
- }
- h1 {
- color: #333;
- }
- img {
- max-width: 100%;
- border: 1px dashed #999;
- }
- .success {
- color: green;
- font-weight: bold;
- }
- .failure {
- color: red;
- font-weight: bold;
- }
- </style>
-</head>
-<body>
- <h1>Image Loading Test</h1>
-
- <div class="test-box">
- <h2>Test 1: Direct IMG Tag</h2>
- <p>Testing image: <span id="image-path">/uploads/20250303033711_dummy-invoice-1018x1440.png</span></p>
- <div>
- <img src="/uploads/20250303033711_dummy-invoice-1018x1440.png" alt="Invoice Image" id="test-image">
- </div>
- <p id="status">Loading...</p>
- </div>
-
- <div class="test-box">
- <h2>Test 2: Text File Test</h2>
- <p>Testing text file from uploads directory:</p>
- <iframe src="/uploads/debug-test.txt" style="width:100%; height:100px; border:1px solid #ccc;"></iframe>
- </div>
-
- <div class="test-box">
- <h2>Test 3: Directory Listing</h2>
- <p>Testing directory listing:</p>
- <iframe src="/uploads/" style="width:100%; height:200px; border:1px solid #ccc;"></iframe>
- </div>
-
- <script>
- // Check if image loads
- const img = document.getElementById('test-image');
- const status = document.getElementById('status');
-
- img.onload = function() {
- status.textContent = "SUCCESS: Image loaded successfully!";
- status.className = "success";
- };
-
- img.onerror = function() {
- status.textContent = "FAILURE: Image failed to load.";
- status.className = "failure";
- };
- </script>
-</body>
-</html>
\ No newline at end of file