Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>IPM Data Plots</title> | |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"> | |
| <style> | |
| body { | |
| background: #f6f8fa; | |
| font-family: "Segoe UI", Arial, sans-serif; | |
| padding: 30px; | |
| } | |
| h2 { | |
| text-align: center; | |
| margin-bottom: 30px; | |
| } | |
| img { | |
| max-width: 90%; | |
| border-radius: 10px; | |
| box-shadow: 0 3px 12px rgba(0,0,0,0.1); | |
| margin: 20px auto; | |
| display: block; | |
| } | |
| .dropdown-container { | |
| text-align: center; | |
| margin-top: 20px; | |
| } | |
| select { | |
| width: 60%; | |
| padding: 10px; | |
| border-radius: 6px; | |
| border: 1px solid #ccc; | |
| } | |
| .card { | |
| border: none; | |
| border-radius: 12px; | |
| box-shadow: 0 3px 12px rgba(0,0,0,0.08); | |
| background: #fff; | |
| padding: 20px; | |
| margin-bottom: 25px; | |
| } | |
| .preview-title { | |
| font-weight: 600; | |
| margin-top: 10px; | |
| } | |
| </style> | |
| <script> | |
| function showPlot() { | |
| const col = document.getElementById("col-select").value; | |
| document.getElementById("dynamic-plot").src = "/plot_image/" + encodeURIComponent(col); | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h2>📈 Golden vs Test Comparison</h2> | |
| <div class="card"> | |
| <h4>Preview (First few plots)</h4> | |
| {% for c in preview_cols %} | |
| <div class="preview-title">{{ c }}</div> | |
| <img src="/plot_image/{{ c }}" alt="{{ c }}"> | |
| {% endfor %} | |
| </div> | |
| <div class="card"> | |
| <h4>Select Another Column to View</h4> | |
| <div class="dropdown-container"> | |
| <select id="col-select" onchange="showPlot()"> | |
| <option | |