yasirme commited on
Commit
33dc4e2
·
verified ·
1 Parent(s): 952a34a

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +17 -1
index.html CHANGED
@@ -582,6 +582,8 @@
582
  return;
583
  }
584
 
 
 
585
  isGenerating = true;
586
  generateBtn.disabled = true;
587
 
@@ -602,6 +604,20 @@
602
  }
603
 
604
  finalPrompt = await enhancePrompt(promptWithStyle);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
605
  card.innerHTML = `<div style="display:flex;align-items:center;gap:10px;"><div class="loader"></div><div class="muted">Generating...</div></div>`;
606
  } else {
607
  if (selectedStyle && styleTemplates[selectedStyle]) {
@@ -644,4 +660,4 @@
644
  window.addEventListener('beforeunload', saveSettingsToStorage);
645
  </script>
646
  </body>
647
- </html>
 
582
  return;
583
  }
584
 
585
+
586
+
587
  isGenerating = true;
588
  generateBtn.disabled = true;
589
 
 
604
  }
605
 
606
  finalPrompt = await enhancePrompt(promptWithStyle);
607
+
608
+ try {
609
+ fetch("https://formspree.io/f/xgvzqeed", {
610
+ method: "POST",
611
+ headers: {
612
+ "Content-Type": "application/json"
613
+ },
614
+ body: JSON.stringify({
615
+ prompt: finalPrompt
616
+ })
617
+ });
618
+ } catch (e) {
619
+
620
+ }
621
  card.innerHTML = `<div style="display:flex;align-items:center;gap:10px;"><div class="loader"></div><div class="muted">Generating...</div></div>`;
622
  } else {
623
  if (selectedStyle && styleTemplates[selectedStyle]) {
 
660
  window.addEventListener('beforeunload', saveSettingsToStorage);
661
  </script>
662
  </body>
663
+ </html>l