Settings button still does nothing. When you click it I want it to be able to set duration times of when the ai should respond with text or answer the call. - Follow Up Deployment
Browse files- index.html +30 -2
- prompts.txt +2 -1
index.html
CHANGED
|
@@ -789,7 +789,7 @@
|
|
| 789 |
</div>
|
| 790 |
</div>
|
| 791 |
|
| 792 |
-
<button onclick="
|
| 793 |
<button onclick="document.getElementById('directPhoneLink').click()" class="mt-4 w-full bg-blue-500 text-white py-2 rounded-lg font-medium flex items-center justify-center">
|
| 794 |
<i class="fas fa-phone mr-2"></i> Test Phone Connection
|
| 795 |
</button>
|
|
@@ -852,6 +852,30 @@
|
|
| 852 |
activeTab.classList.remove('text-gray-500');
|
| 853 |
activeTab.classList.add('text-accent');
|
| 854 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 855 |
}
|
| 856 |
|
| 857 |
// Simulate AI learning progress
|
|
@@ -1164,7 +1188,11 @@
|
|
| 1164 |
|
| 1165 |
// Initialize when page loads
|
| 1166 |
document.addEventListener('DOMContentLoaded', () => {
|
| 1167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1168 |
// Load saved training data
|
| 1169 |
const savedData = localStorage.getItem('AI_Training');
|
| 1170 |
if (savedData) {
|
|
|
|
| 789 |
</div>
|
| 790 |
</div>
|
| 791 |
|
| 792 |
+
<button onclick="saveCallTimings()" class="mt-6 w-full bg-green-500 text-white py-2 rounded-lg font-medium">Save Call Timing Settings</button>
|
| 793 |
<button onclick="document.getElementById('directPhoneLink').click()" class="mt-4 w-full bg-blue-500 text-white py-2 rounded-lg font-medium flex items-center justify-center">
|
| 794 |
<i class="fas fa-phone mr-2"></i> Test Phone Connection
|
| 795 |
</button>
|
|
|
|
| 852 |
activeTab.classList.remove('text-gray-500');
|
| 853 |
activeTab.classList.add('text-accent');
|
| 854 |
}
|
| 855 |
+
|
| 856 |
+
// Load settings when settings screen is shown
|
| 857 |
+
if (screenId === 'settingsScreen') {
|
| 858 |
+
loadSettings();
|
| 859 |
+
}
|
| 860 |
+
}
|
| 861 |
+
|
| 862 |
+
// Save call timing settings to localStorage
|
| 863 |
+
function saveCallTimings() {
|
| 864 |
+
businessSettings.maxRingTime = parseInt(document.getElementById('maxRingTime').value);
|
| 865 |
+
businessSettings.smsResponseTime = parseInt(document.getElementById('smsResponseTime').value);
|
| 866 |
+
businessSettings.businessHours = {
|
| 867 |
+
open: document.getElementById('openTime').value,
|
| 868 |
+
close: document.getElementById('closeTime').value
|
| 869 |
+
};
|
| 870 |
+
|
| 871 |
+
localStorage.setItem('JMW_Settings', JSON.stringify(businessSettings));
|
| 872 |
+
|
| 873 |
+
// Show success message
|
| 874 |
+
const notification = document.createElement('div');
|
| 875 |
+
notification.className = 'fixed top-40 left-1/2 transform -translate-x-1/2 bg-green-500 text-white px-6 py-3 rounded-xl animate-fadeIn z-50 shadow-lg';
|
| 876 |
+
notification.innerHTML = 'Call timings saved successfully!';
|
| 877 |
+
document.body.appendChild(notification);
|
| 878 |
+
setTimeout(() => notification.remove(), 3000);
|
| 879 |
}
|
| 880 |
|
| 881 |
// Simulate AI learning progress
|
|
|
|
| 1188 |
|
| 1189 |
// Initialize when page loads
|
| 1190 |
document.addEventListener('DOMContentLoaded', () => {
|
| 1191 |
+
// Load settings immediately when page loads
|
| 1192 |
+
if (localStorage.getItem('JMW_Settings')) {
|
| 1193 |
+
businessSettings = JSON.parse(localStorage.getItem('JMW_Settings'));
|
| 1194 |
+
loadSettings();
|
| 1195 |
+
}
|
| 1196 |
// Load saved training data
|
| 1197 |
const savedData = localStorage.getItem('AI_Training');
|
| 1198 |
if (savedData) {
|
prompts.txt
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
Please fix the settingss tab it doesn’t work. I want to be able to set duration times . For example if I don’t answer a test after a certain amount of minutes or if I don’t answer a call after a certain amount of time then the ai answers the call or responds via text
|
| 2 |
-
When I click settings nothing opens please fix code then run test to make sure all is working and this application is directly linked to my phone callls and text 5622289429
|
|
|
|
|
|
| 1 |
Please fix the settingss tab it doesn’t work. I want to be able to set duration times . For example if I don’t answer a test after a certain amount of minutes or if I don’t answer a call after a certain amount of time then the ai answers the call or responds via text
|
| 2 |
+
When I click settings nothing opens please fix code then run test to make sure all is working and this application is directly linked to my phone callls and text 5622289429
|
| 3 |
+
Settings button still does nothing. When you click it I want it to be able to set duration times of when the ai should respond with text or answer the call.
|