<!-- Modal -->
<div class="sign_up_modal modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body container pb20">
<div class="row">
<div class="col-lg-12">
<ul class="sign_up_tab nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Register</a>
</li>
</ul>
</div>
</div>
<div class="tab-content container" id="myTabContent">
<div class="row mt25 tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="col-lg-6 col-xl-6">
<div class="login_thumb">
<img class="img-fluid w100" src="images/resource/login.jpg" alt="login.jpg">
</div>
</div>
<div class="col-lg-6 col-xl-6">
<div class="login_form">
<form action="#">
<div class="heading">
<h4>Login</h4>
</div>
<div class="row mt25">
<center><div class="g-signin2" data-onsuccess="onSignIn"></div></center>
<script type="text/javascript">
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
if(profile){
$.ajax({
type: 'POST',
url: 'login_pro.php',
data: {id:profile.getId(), name:profile.getName(), email:profile.getEmail()}
}).done(function(data){
console.log(data);
window.location.href = 'home.php';
}).fail(function() {
alert( "Posting failed." );
});
}
}
</script>
</div>
<hr>
<div class="fb-login-button fb_iframe_widget" data-size="large" data-button-type="continue_with" data-layout="default" data-auto-logout-link="false" data-use-continue-as="false" data-width="" login_text="" fb-xfbml-state="rendered" fb-iframe-plugin-query="app_id=889633337863177&auto_logout_link=false&button_type=continue_with&container_width=1350&layout=default&locale=en_US&login_text=&sdk=joey&size=large&use_continue_as=false&width="><span style="vertical-align: bottom; width: 247px; height: 40px;"><iframe name="f1301fc660a3ce2" data-testid="fb:login_button Facebook Social Plugin" title="fb:login_button Facebook Social Plugin" allowtransparency="true" allowfullscreen="true" scrolling="no" allow="encrypted-media" style="border: medium none; visibility: visible; width: 247px; height: 40px;" src="https://www.facebook.com/v9.0/plugins/login_button.php?app_id=889633337863177&auto_logout_link=false&button_type=continue_with&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df3b67b8d96cd422%26domain%3Dcdpn.io%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Fcdpn.io%252Ff38384b7c263f98%26relation%3Dparent.parent&container_width=1350&layout=default&locale=en_US&login_text=&sdk=joey&size=large&use_continue_as=false&width=" class="" width="1000px" height="1000px" frameborder="0"></iframe></span></div>
<div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; width: 0px; height: 0px;"><div></div></div></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script id="rendered-js">
$(document).ready(function () {
console.log("ready!");
FB.init({
appId: '889633337863177',
cookie: true,
xfbml: true,
version: 'v9.0' });
console.log("ready!");
});
//# sourceURL=pen.js
</script>
</form>
</div>
</div>
</div>
<div class="row mt25 tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<div class="col-lg-6 col-xl-6">
<div class="regstr_thumb">
<img class="img-fluid w100" src="images/resource/regstr.jpg" alt="regstr.jpg">
</div>
</div>
<div class="col-lg-6 col-xl-6">
<div class="sign_up_form">
<div class="heading">
<h4>Register</h4>
</div>
<form action="#">
<div class="row">
<div class="col-lg-12">
<button type="submit" class="btn btn-block btn-fb"><i class="fa fa-facebook float-left mt5"></i> Login with Facebook</button>
</div>
<div class="col-lg-12">
<center><div class="g-signin2" data-onsuccess="onSignIn"></div></center>
</div>
</div>
<hr>
<div class="form-group input-group">
<input type="text" class="form-control" id="exampleInputName" placeholder="User Name">
<div class="input-group-prepend">
<div class="input-group-text"><i class="flaticon-user"></i></div>
</div>
</div>
<div class="form-group input-group">
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email">
<div class="input-group-prepend">
<div class="input-group-text"><i class="fa fa-envelope-o"></i></div>
</div>
</div>
<div class="form-group input-group">
<input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
<div class="input-group-prepend">
<div class="input-group-text"><i class="flaticon-password"></i></div>
</div>
</div>
<div class="form-group input-group">
<input type="password" class="form-control" id="exampleInputPassword3" placeholder="Re-enter password">
<div class="input-group-prepend">
<div class="input-group-text"><i class="flaticon-password"></i></div>
</div>
</div>
<div class="form-group ui_kit_select_search mb0">
<select class="selectpicker" data-live-search="true" data-width="100%">
<option data-tokens="SelectRole">Single User</option>
<option data-tokens="Agent/Agency">Agent</option>
<option data-tokens="SingleUser">Multi User</option>
</select>
</div>
<div class="form-group custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="exampleCheck2">
<label class="custom-control-label" for="exampleCheck2">I have read and accept the Terms and Privacy Policy?</label>
</div>
<button type="submit" class="btn btn-log btn-block btn-thm">Sign Up</button>
<p class="text-center">Already have an account? <a class="text-thm" href="#">Log In</a></p>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
if(profile){
$.ajax({
type: 'POST',
url: 'login_pro.php',
data: {id:profile.getId(), name:profile.getName(), email:profile.getEmail()}
}).done(function(data){
console.log(data);
window.location.href = 'home.php';
}).fail(function() {
alert( "Posting failed." );
});
}
}
</script>