Untitled
unknown
plain_text
2 years ago
3.0 kB
6
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multi-Page Web App</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
#login-form, #options-form, #navbar {
max-width: 600px;
margin: 50px auto;
padding: 20px;
border: 1px solid #ccc;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-bottom: 10px;
}
input, button {
margin-bottom: 15px;
}
#navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
justify-content: space-around;
background-color: #333;
}
#navbar a {
text-decoration: none;
color: white;
padding: 10px;
}
#navbar a:hover {
background-color: #555;
}
</style>
</head>
<body>
<div id="login-form">
<form onsubmit="redirectToPage2(event)">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<button type="submit">Login</button>
</form>
</div>
<div id="options-form" style="display: none;">
<form onsubmit="connectToPage3(event)">
<label for="schema">Enter your schema name:</label>
<input type="text" id="schema" name="schema" required>
<label for="tns">Enter TNS of the PC:</label>
<input type="text" id="tns" name="tns" required>
<button type="submit">Connect</button>
</form>
</div>
<div id="navbar" style="display: none;">
<nav>
<ul>
<li><a href="#">Start Online Handler</a></li>
<li><a href="#">View Stats</a></li>
<li><a href="#">ReSat Process</a></li>
<li><a href="#">Sup Process</a></li>
<li><a href="#">Sutsingis Process</a></li>
<li><a href="#">Saut Engines</a></li>
<li><a href="#">Sup Engines</a></li>
</ul>
</nav>
</div>
<script>
function redirectToPage2(event) {
event.preventDefault();
document.getElementById('login-form').style.display = 'none';
document.getElementById('options-form').style.display = 'block';
}
function connectToPage3(event) {
event.preventDefault();
document.getElementById('options-form').style.display = 'none';
document.getElementById('navbar').style.display = 'block';
}
</script>
</body>
</html>
Editor is loading...
Leave a Comment