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

26
index.html Normal file
View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Python Script Interaction</title>
</head>
<body>
<h1>Choose Operation</h1>
<label for="operation_choice">Choose operation (C for Create, R for Read, U for Update, D for Delete): </label>
<input type="text" id="operation_choice" name="operation_choice" required>
<button onclick="executeOperation()">Submit</button>
<script type="module">
import { executeOperation } from './index.js';
if (typeof executeOperation === 'function') {
document.getElementById('operation_choice').addEventListener('input', (event) => {
executeOperation(event.target.value);
});
} else {
console.error('executeOperation function not found.');
}
</script>
</body>
</html>