-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b9ff2b
commit 158bfc2
Showing
5 changed files
with
214 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<title>JIO TV Login</title> | ||
<style> | ||
body { | ||
font-family: "Lato", sans-serif; | ||
} | ||
|
||
|
||
.main-head { | ||
height: 150px; | ||
background: #FFF; | ||
|
||
} | ||
|
||
.sidenav { | ||
height: 100%; | ||
background-color: rgb(167, 29, 29); | ||
overflow-x: hidden; | ||
padding-top: 20px; | ||
} | ||
|
||
|
||
.main { | ||
padding: 0px 10px; | ||
} | ||
|
||
@media screen and (max-height: 450px) { | ||
.sidenav { | ||
padding-top: 15px; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 450px) { | ||
.login-form { | ||
margin-top: 10%; | ||
} | ||
|
||
.register-form { | ||
margin-top: 10%; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 768px) { | ||
.main { | ||
margin-left: 40%; | ||
} | ||
|
||
.sidenav { | ||
width: 40%; | ||
position: fixed; | ||
z-index: 1; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
.login-form { | ||
margin-top: 80%; | ||
} | ||
|
||
.register-form { | ||
margin-top: 20%; | ||
} | ||
} | ||
|
||
|
||
.login-main-text { | ||
margin-top: 20%; | ||
padding: 60px; | ||
color: #fff; | ||
} | ||
|
||
.login-main-text h2 { | ||
font-weight: 300; | ||
} | ||
|
||
.btn-black { | ||
background-color: #000 !important; | ||
color: #fff; | ||
} | ||
</style> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" | ||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | ||
</head> | ||
|
||
<body> | ||
|
||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | ||
|
||
<!------ Include the above in your HEAD tag ----------> | ||
|
||
<div class="sidenav"> | ||
<div class="login-main-text"> | ||
<h2>JIO TV<br> Login Page</h2> | ||
<p>Login To JIO TV to start watching Live TV.</p> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="main"> | ||
<div class="col-md-6 col-sm-12"> | ||
<div class="login-form"> | ||
|
||
<div class="form-group"></div> | ||
<label>Mobile Number</label> | ||
<!--<input type="text" class="form-control" placeholder="Email" id="email">--> | ||
<div class="input-group mb-3"> | ||
<span class="input-group-text" id="basic-addon1">+91</span> | ||
<input type="number" class="form-control" placeholder="Mobile Number" aria-label="Mobile Number" aria-describedby="basic-addon1" id="email"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label>OTP</label> | ||
<input type="number" class="form-control" placeholder="OTP" id="password"> | ||
</div> | ||
|
||
<button onclick="process_otp()" class="btn btn-black">Get OTP</button> | ||
<button onclick="enviar()" class="btn btn-black" id="login-btn" disabled>Login</button> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
function enviar() { | ||
|
||
var email = "%2B91"+$("#email").val(); | ||
var passsword = $("#password").val(); | ||
|
||
console.log(); | ||
setTimeout( | ||
function () { | ||
$.ajax({ | ||
url: '/createToken?email=' + email + '&password=' + passsword+ '&mode=otp', | ||
type: 'GET', | ||
async: true, | ||
success: function (result) { | ||
if (result === "[SUCCESS]") { | ||
console.log(result) | ||
alert("Successfully Logged In") | ||
} else if (result === "[FAILED]") { | ||
alert("Failed To Login check Email & Password!") | ||
|
||
} | ||
|
||
} | ||
}); | ||
}, 500); | ||
|
||
} | ||
function process_otp(){ | ||
var email = "%2B91"+$("#email").val(); | ||
|
||
console.log(email); | ||
|
||
//$("#login-btn").prop("disabled",false) | ||
setTimeout( | ||
function () { | ||
$.ajax({ | ||
url: '/get_otp?phone_no=' + email, | ||
type: 'GET', | ||
async: true, | ||
success: function (result) { | ||
if (result === "[SUCCESS]") { | ||
alert("OTP Sent Successfully.") | ||
$("#login-btn").prop("disabled",false) | ||
} else if (result === "[FAILED]") { | ||
alert("Unable to send OTP!.") | ||
|
||
} | ||
|
||
} | ||
}); | ||
}, 500); | ||
|
||
} | ||
</script> | ||
|
||
|
||
</body> | ||
|
||
</html> |