Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
abhirajkumar20 committed Apr 24, 2024
1 parent e3f0fa6 commit c22d394
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,31 @@
<div class="center">Heart Disease Prediction using Deep Learning</div>
</header>

<header>
<div class="menu-icon" onclick="toggleMenu()">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<div class="top-left">Vel Tech</div>
<div class="center">Heart Disease Prediction using Deep Learning</div>
</header>

<div class="container">
<h2>Welcome to our interactive website!</h2>
<form id="inputForm">
<label for="input1">Input 1:</label>
<input type="text" id="input1" name="input1"><br><br>

<label for="input2">Input 2:</label>
<input type="text" id="input2" name="input2"><br><br>
<button type="submit">Submit</button>

</form>
</div>

<script src="script.js"></script>

<div class="container">
<h2>Welcome to our interactive website!</h2>
<!-- Add interactive elements here -->
Expand Down
26 changes: 26 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,29 @@ function toggleMenu() {
topNav.classList.toggle('active');
menuIcon.classList.toggle('active');
}
// Get the form element
var form = document.getElementById('inputForm');

// Add an event listener for form submission
form.addEventListener('submit', function(event) {
// Prevent the default form submission behavior
event.preventDefault();

// Get the input values
var input1 = document.getElementById('input1').value;
var input2 = document.getElementById('input2').value;
// Get values for the rest of the inputs in a similar manner

// Now you can do whatever you need with the input values
// For example, you can pass them to a function for processing
processInputs(input1, input2); // Call a function named processInputs with the input values as arguments
});

// Function to process the input values
function processInputs(input1, input2) {
// Here you can perform any processing or validation you need with the input values
// For demonstration, let's just log the input values to the console
console.log('Input 1:', input1);
console.log('Input 2:', input2);
// Log values for the rest of the inputs in a similar manner
}

0 comments on commit c22d394

Please sign in to comment.