broadfield-dev commited on
Commit
eef3b3a
·
verified ·
1 Parent(s): d0a3125

Update templates/results_partial.html

Browse files
Files changed (1) hide show
  1. templates/results_partial.html +4 -1
templates/results_partial.html CHANGED
@@ -36,7 +36,10 @@
36
  <h3 class="text-xl font-bold text-blue-400 mb-2">Reconstructed Code</h3>
37
  <pre class="bg-gray-900 p-4 rounded-lg text-gray-300 text-sm">{{ reconstructed_code }}</pre>
38
  </div>
39
- <button onclick="togglePointCloud()" class="mt-4 bg-blue-500 text-white py-2 px-4 rounded-lg hover:bg-blue-600 transition">Toggle 3D Point Cloud</button>
 
 
 
40
  </div>
41
  <canvas id="point-cloud"></canvas>
42
  <div id="point-details" class="mt-4">
 
36
  <h3 class="text-xl font-bold text-blue-400 mb-2">Reconstructed Code</h3>
37
  <pre class="bg-gray-900 p-4 rounded-lg text-gray-300 text-sm">{{ reconstructed_code }}</pre>
38
  </div>
39
+ <div class="mt-4 space-x-4">
40
+ <button onclick="togglePointCloud()" class="bg-blue-500 text-white py-2 px-4 rounded-lg hover:bg-blue-600 transition">Toggle 3D Point Cloud</button>
41
+ <button hx-post="/export_json" hx-headers='{"Content-Type": "application/json"}' hx-swap="none" hx-vals='{"parts": {{ parts|tojson|safe }}}' class="bg-green-500 text-white py-2 px-4 rounded-lg hover:bg-green-600 transition">Export to JSON</button>
42
+ </div>
43
  </div>
44
  <canvas id="point-cloud"></canvas>
45
  <div id="point-details" class="mt-4">