This commit is contained in:
mohammedcifci78
2024-02-28 11:06:23 +01:00
parent a56539cc9d
commit a6cf98519a
8 changed files with 2613 additions and 181 deletions

17
index.js Normal file
View File

@@ -0,0 +1,17 @@
// your_script.js
export function executeOperation(operationChoice) {
fetch(`/path/to/your_script.py?operation=${operationChoice}`)
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
return response.text();
})
.then(data => {
alert(data); // You can handle the response data as needed
})
.catch(error => {
console.error('Error:', error);
});
}