Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions About me.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Narender Singh
4th year bharati vidyapeeth college of engineering Paschim vihar steam IT
New Delhi
not that great with the designing part but have experience and love the backend development.
1 change: 0 additions & 1 deletion LoginPageTask/main.js

This file was deleted.

7 changes: 7 additions & 0 deletions NarenderSingh/bootstrap.min.css

Large diffs are not rendered by default.

22 changes: 14 additions & 8 deletions LoginPageTask/index.html → NarenderSingh/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,33 @@
<title>Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">

<script src="main.js"></script>
</head>
<body>
<img src="https://incubateind.com/images/IncubateIND%20Black.png" class="logo" alt="">
<img src="https://incubateind.com/images/IncubateIND%20Black.png" class="logo" align="center" alt="">
<!-- Beautify This -->
<div class="log-form">
<h2>Enter your details</h2>
<form>
<input type="text" title="username" placeholder="username" />
<input type="email" title="email" placeholder="email">
<input type="password" title="password" placeholder="password" />
<input type="password" title="cnfpassword" placeholder="confirm password" />
<div class="container-xl p-3 my-3 bg-dark text-white">
<h2>Enter your details</h2></div>
<form name="myform" onsubmit= "return validate()">
<input type="text" id="username" onsubmit="validate()" title="username" placeholder="username" />
<input type="email" id="email" onsubmit= "validate()" title="email" placeholder="email">
<input type="password" id="pswd1" title="password" placeholder="password" />
<input type="password" id="pswd2" onsubmit="validate()" title="cnfpassword" placeholder="confirm password" />
<input type="tel" id="phone" title="phone" placeholder="Phone_No" />
<textarea name="message" id="message" cols="35" rows="4" placeholder="enter message"></textarea>
<p>Age</p>
<input type="radio" id="above" name="age" value="above">
<label for="above">Above 18</label>
<input type="radio" id="below" name="age" value="below">
<label for="below">Below 18</label>
<button type="submit" class="btn">Submit</button>
<br/>
<h3><button type="submit" align="center" class="btn" >Submit</button></h3>
</form>
</div>
<!-- Beautify Ends -->

</body>
</html>
File renamed without changes.
23 changes: 23 additions & 0 deletions NarenderSingh/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* ========================WRITE YOUR JS FROM HERE======================== */
function Validate()
{
var mailformat = /^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/;
if(document.getElementById("email").value.match(mailformat))
{
alert("You have entered a valid email address!"); //The pop up alert for a valid email address
}
else
{
alert("You have entered an invalid email address!"); //The pop up alert for an invalid email address
return false;
}
var x = document.getElementById("username").value;
if (x == "") {
alert("userName must be filled out");
return false;
}
if (document.getElementById("pswd1")!=document.getElementById("pswd2")) {
alert("Password do not match");
return false;
}
}