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
7 changes: 7 additions & 0 deletions DeepakBansal019/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/ticTac1Toe1/.vs

/ticTac1Toe1/packages

/ticTac1Toe1/ticTac1Toe1/bin

/ticTac1Toe1/ticTac1Toe1/obj
Binary file added DeepakBansal019/EntityDesignerDiagram.bmp
Binary file not shown.
Binary file added DeepakBansal019/download.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions DeepakBansal019/game.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<title>tic tac toe</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body onload="getName()">


<header>
<a href='index.html'>log out</a>
<h2 id ="h2"></h2>
<h2 id ="h3"></h2>




</header>

<div class="parrent" id= "main">
<h1 id="h">Welcoem</h1>
<button class = "box" id="b1" value="">1</button>
<button class = "box" id="b2" value="">2</button>
<button class = "box" id="b3" value="">3</button>
<button class = "box" id="b4" value="">4</button>
<button class = "box" id="b5" value="">5</button>
<button class = "box" id="b6" value="">6</button>
<button class = "box" id="b7" value="">7</button>
<button class = "box" id="b8" value="">8</button>
<button class = "box" id="b9" value="">9</button>
</div>


<input type="submit" id="play" value="Let's Play Again " onclick="reset()">

<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
<script type="text/javascript" src="working.js"></script>
</body>
</html>
73 changes: 73 additions & 0 deletions DeepakBansal019/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html>
<head>
<title>login</title>
<link rel="stylesheet" type="text/css" href="style.css">

<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>

<script type="text/javascript">

var temp=3;

function login(){

var uname=document.getElementById('u_name').value;
var pass1=document.getElementById('pass').value;


$.ajax({


url : "http://localhost:51910/api/users/"+uname,
type : 'GET',

datatype : 'json',
success : function(res){

if( uname==res.userName && pass1==res.password )
{
alert("successfully logged in");
window.location.href="game.html?id="+res.userName;
}
else
{
temp--;
alert("please enter correct user_name and password, you have onnly"+temp+"chance");
}
if(temp==0)
{
document.getElementById("u_name").disabled = true;
document.getElementById("pass").disabled = true;
document.getElementById("submit").disabled = true;
}
}
}
);
}
</script>
</head>
<body>
<header>
<img src="logo.png" width="215" height="80">
<h2 id ="h2">We build smart solutions</h2>

</header>
<div class="log">
<h3 id="hh3">Login</h3>
</br></br></br>
<form action="afterlogin.html" method="post">
User Name</br>
<input type="text" id="u_name" placeholder="xyz@gmail.com"></br></br>
Password</br>
<input type="password" id="pass" placeholder="*************"></br></br>
<input type="button" id="submit" value="Login" onclick= "login()" >
<a href="signup.html" id="link">Dont Have Account....</a>
</form>
</div>>

</body>
</html>
Binary file added DeepakBansal019/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 97 additions & 0 deletions DeepakBansal019/signup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html>
<head>
<title>new registration</title>

<link rel="stylesheet" type="text/css" href="style.css">



<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>

<script type="text/javascript">



function acc(){

var u_name=document.getElementById('userNam').value;
var name=document.getElementById('nam').value;
var password=document.getElementById('pass1').value;
var Confirm_pass=document.getElementById('pass2').value;


var dataToSend={

"name": name,
"userName": u_name,
"password": password,
"score": 0
};

if(u_name=="" || name=="" || password=="" || Confirm_pass=="")
{

alert("fields can not be empty");
}
else if(password.length<5)
{
alert("Password must not be less than 5 characters");

}
else if(password!=Confirm_pass)
{
alert("password is not match with Confirm Password");
}

else{
$.ajax(
{
url : "http://localhost:51910/api/users",
type : 'POST',
data : dataToSend,
datatype : 'json',
success : function(res){

alert("account has been created");

window.location.href="index.html";

}
}
);
}
}

</script>

</head>
<body>
<header>
<img src="logo.png" width="215" height="80">
<h2 id ="h2">We build smart solutions</h2>



</header>
<h1 id="hed">Create Your Account</h1>
<div class="creatAcc">
<form>
Name*<br>
<input type="text" id="nam" placeholder="Enter Name"><br><br>
User Name*<br>
<input type="text" id="userNam" placeholder="FirstNameEmployeeNo"><br><br>
Password*<br>
<input type="Password" id="pass1" placeholder="***********"><br><br>
Confirm Password*<br>
<input type="Password" id="pass2" placeholder="***********"><br><br><br>
<input type="reset" name="" value="Reset">
<input type="button" name="" value= "Submit" onclick="acc()">
</form>
</div>

</body>
</html>
Loading