JasperOL commited on
Commit
d699b8b
·
verified ·
1 Parent(s): e5471ea

Amazing! Except all of them need to be +64 for the number option

Browse files
Files changed (2) hide show
  1. index.html +10 -10
  2. script.js +1 -1
index.html CHANGED
@@ -43,8 +43,8 @@
43
  <h3>Invoice Follow Up</h3>
44
  <p>Gentle reminders for unpaid invoices</p>
45
  <div class="agent-form hidden mt-4">
46
- <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+1 (___) ___-____">
47
- <button class="agent-activate-btn w-full px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors">
48
  Activate Agent
49
  </button>
50
  </div>
@@ -58,8 +58,8 @@
58
  <h3>Google Review</h3>
59
  <p>Collect customer reviews automatically</p>
60
  <div class="agent-form hidden mt-4">
61
- <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+1 (___) ___-____">
62
- <button class="agent-activate-btn w-full px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors">
63
  Activate Agent
64
  </button>
65
  </div>
@@ -73,8 +73,8 @@
73
  <h3>Lead Reactivation</h3>
74
  <p>Re-engage cold leads with personalized messages</p>
75
  <div class="agent-form hidden mt-4">
76
- <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+1 (___) ___-____">
77
- <button class="agent-activate-btn w-full px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors">
78
  Activate Agent
79
  </button>
80
  </div>
@@ -88,8 +88,8 @@
88
  <h3>Conversational</h3>
89
  <p>Natural language customer interactions</p>
90
  <div class="agent-form hidden mt-4">
91
- <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+1 (___) ___-____">
92
- <button class="agent-activate-btn w-full px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors">
93
  Activate Agent
94
  </button>
95
  </div>
@@ -103,8 +103,8 @@
103
  <h3>Custom Agent</h3>
104
  <p>Build your own specialized agent</p>
105
  <div class="agent-form hidden mt-4">
106
- <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+1 (___) ___-____">
107
- <button class="agent-activate-btn w-full px-4 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-700 transition-colors">
108
  Activate Agent
109
  </button>
110
  </div>
 
43
  <h3>Invoice Follow Up</h3>
44
  <p>Gentle reminders for unpaid invoices</p>
45
  <div class="agent-form hidden mt-4">
46
+ <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 __ ___ ____">
47
+ <button class="agent-activate-btn w-full px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors">
48
  Activate Agent
49
  </button>
50
  </div>
 
58
  <h3>Google Review</h3>
59
  <p>Collect customer reviews automatically</p>
60
  <div class="agent-form hidden mt-4">
61
+ <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 __ ___ ____">
62
+ <button class="agent-activate-btn w-full px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors">
63
  Activate Agent
64
  </button>
65
  </div>
 
73
  <h3>Lead Reactivation</h3>
74
  <p>Re-engage cold leads with personalized messages</p>
75
  <div class="agent-form hidden mt-4">
76
+ <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 __ ___ ____">
77
+ <button class="agent-activate-btn w-full px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors">
78
  Activate Agent
79
  </button>
80
  </div>
 
88
  <h3>Conversational</h3>
89
  <p>Natural language customer interactions</p>
90
  <div class="agent-form hidden mt-4">
91
+ <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 __ ___ ____">
92
+ <button class="agent-activate-btn w-full px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors">
93
  Activate Agent
94
  </button>
95
  </div>
 
103
  <h3>Custom Agent</h3>
104
  <p>Build your own specialized agent</p>
105
  <div class="agent-form hidden mt-4">
106
+ <input type="tel" class="agent-phone w-full px-3 py-2 border border-gray-300 rounded-lg mb-2" placeholder="+64 __ ___ ____">
107
+ <button class="agent-activate-btn w-full px-4 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-700 transition-colors">
108
  Activate Agent
109
  </button>
110
  </div>
script.js CHANGED
@@ -38,7 +38,7 @@ document.addEventListener('DOMContentLoaded', function() {
38
  const phoneNumber = phoneInput.value.trim();
39
 
40
  if (!phoneNumber || phoneNumber.length < 10) {
41
- alert('Please enter a valid New Zealand phone number');
42
  return;
43
  }
44
 
 
38
  const phoneNumber = phoneInput.value.trim();
39
 
40
  if (!phoneNumber || phoneNumber.length < 10) {
41
+ alert('Please enter a valid New Zealand phone number starting with +64');
42
  return;
43
  }
44