templates/include/modal.html.twig line 1

Open in your IDE?
  1. <!-- Modal -->
  2.     <div class="sign_up_modal modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
  3.         <div class="modal-dialog modal-lg" role="document">
  4.             <div class="modal-content">
  5.                   <div class="modal-header">
  6.                     <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  7.                   </div>
  8.                   <div class="modal-body container pb20">
  9.                       <div class="row">
  10.                           <div class="col-lg-12">
  11.                             <ul class="sign_up_tab nav nav-tabs" id="myTab" role="tablist">
  12.                                   <li class="nav-item">
  13.                                     <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Login</a>
  14.                                   </li>
  15.                                   <li class="nav-item">
  16.                                     <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Register</a>
  17.                                   </li>
  18.                             </ul>
  19.                           </div>
  20.                       </div>
  21.                     <div class="tab-content container" id="myTabContent">
  22.                           <div class="row mt25 tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
  23.                               <div class="col-lg-6 col-xl-6">
  24.                                   <div class="login_thumb">
  25.                                       <img class="img-fluid w100" src="images/resource/login.jpg" alt="login.jpg">
  26.                                   </div>
  27.                               </div>
  28.                               <div class="col-lg-6 col-xl-6">
  29.                                 <div class="login_form">
  30.                                     <form action="#">
  31.                                         <div class="heading">
  32.                                             <h4>Login</h4>
  33.                                         </div>
  34.                                         <div class="row mt25">
  35.                                          
  36.                             <center><div class="g-signin2" data-onsuccess="onSignIn"></div></center>
  37.  
  38.  
  39.  
  40.  
  41. <script type="text/javascript">
  42.     function onSignIn(googleUser) {
  43.       var profile = googleUser.getBasicProfile();
  44.       if(profile){
  45.           $.ajax({
  46.                 type: 'POST',
  47.                 url: 'login_pro.php',
  48.                 data: {id:profile.getId(), name:profile.getName(), email:profile.getEmail()}
  49.             }).done(function(data){
  50.                 console.log(data);
  51.                 window.location.href = 'home.php';
  52.             }).fail(function() { 
  53.                 alert( "Posting failed." );
  54.             });
  55.       }
  56.     }
  57. </script>
  58.  
  59.                                         </div>
  60.                                         <hr>
  61. <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&amp;auto_logout_link=false&amp;button_type=continue_with&amp;container_width=1350&amp;layout=default&amp;locale=en_US&amp;login_text=&amp;sdk=joey&amp;size=large&amp;use_continue_as=false&amp;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&amp;auto_logout_link=false&amp;button_type=continue_with&amp;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&amp;container_width=1350&amp;layout=default&amp;locale=en_US&amp;login_text=&amp;sdk=joey&amp;size=large&amp;use_continue_as=false&amp;width=" class="" width="1000px" height="1000px" frameborder="0"></iframe></span></div>
  62.  
  63. <div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; width: 0px; height: 0px;"><div></div></div></div>
  64.   
  65.   <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  66.   
  67.       <script id="rendered-js">
  68. $(document).ready(function () {
  69.   console.log("ready!");
  70.   FB.init({
  71.     appId: '889633337863177',
  72.     cookie: true,
  73.     xfbml: true,
  74.     version: 'v9.0' });
  75.   console.log("ready!");
  76. });
  77. //# sourceURL=pen.js
  78.     </script>
  79.   
  80.  
  81.                                        
  82.                                          
  83.                                          
  84.  
  85.                                     </form>
  86.                                 </div>
  87.                               </div>
  88.                           </div>
  89.                           <div class="row mt25 tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
  90.                               <div class="col-lg-6 col-xl-6">
  91.                                   <div class="regstr_thumb">
  92.                                       <img class="img-fluid w100" src="images/resource/regstr.jpg" alt="regstr.jpg">
  93.                                   </div>
  94.                               </div>
  95.                               <div class="col-lg-6 col-xl-6">
  96.                                 <div class="sign_up_form">
  97.                                     <div class="heading">
  98.                                         <h4>Register</h4>
  99.                                     </div>
  100.                                     <form action="#">
  101.                                         <div class="row">
  102.                                             <div class="col-lg-12">
  103.                                                 <button type="submit" class="btn btn-block btn-fb"><i class="fa fa-facebook float-left mt5"></i> Login with Facebook</button>
  104.                                             </div>
  105.                                             <div class="col-lg-12">
  106.                                              <center><div class="g-signin2" data-onsuccess="onSignIn"></div></center>
  107.                                             </div>
  108.                                         </div>
  109.                                         <hr>
  110.                                         <div class="form-group input-group">
  111.                                             <input type="text" class="form-control" id="exampleInputName" placeholder="User Name">
  112.                                             <div class="input-group-prepend">
  113.                                                 <div class="input-group-text"><i class="flaticon-user"></i></div>
  114.                                             </div>
  115.                                         </div>
  116.                                         <div class="form-group input-group">
  117.                                             <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email">
  118.                                             <div class="input-group-prepend">
  119.                                                 <div class="input-group-text"><i class="fa fa-envelope-o"></i></div>
  120.                                             </div>
  121.                                         </div>
  122.                                         <div class="form-group input-group">
  123.                                             <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
  124.                                             <div class="input-group-prepend">
  125.                                                 <div class="input-group-text"><i class="flaticon-password"></i></div>
  126.                                             </div>
  127.                                         </div>
  128.                                         <div class="form-group input-group">
  129.                                             <input type="password" class="form-control" id="exampleInputPassword3" placeholder="Re-enter password">
  130.                                             <div class="input-group-prepend">
  131.                                                 <div class="input-group-text"><i class="flaticon-password"></i></div>
  132.                                             </div>
  133.                                         </div>
  134.                                         <div class="form-group ui_kit_select_search mb0">
  135.                                             <select class="selectpicker" data-live-search="true" data-width="100%">
  136.                                                 <option data-tokens="SelectRole">Single User</option>
  137.                                                 <option data-tokens="Agent/Agency">Agent</option>
  138.                                                 <option data-tokens="SingleUser">Multi User</option>
  139.                                             </select>
  140.                                         </div>
  141.                                         <div class="form-group custom-control custom-checkbox">
  142.                                             <input type="checkbox" class="custom-control-input" id="exampleCheck2">
  143.                                             <label class="custom-control-label" for="exampleCheck2">I have read and accept the Terms and Privacy Policy?</label>
  144.                                         </div>
  145.                                         <button type="submit" class="btn btn-log btn-block btn-thm">Sign Up</button>
  146.                                         <p class="text-center">Already have an account? <a class="text-thm" href="#">Log In</a></p>
  147.                                     </form>
  148.                                 </div>
  149.                               </div>
  150.                           </div>
  151.                     </div>
  152.                   </div>
  153.             </div>
  154.         </div>
  155.     </div>
  156.  
  157.  
  158. <script type="text/javascript">
  159.     function onSignIn(googleUser) {
  160.       var profile = googleUser.getBasicProfile();
  161.       if(profile){
  162.           $.ajax({
  163.                 type: 'POST',
  164.                 url: 'login_pro.php',
  165.                 data: {id:profile.getId(), name:profile.getName(), email:profile.getEmail()}
  166.             }).done(function(data){
  167.                 console.log(data);
  168.                 window.location.href = 'home.php';
  169.             }).fail(function() { 
  170.                 alert( "Posting failed." );
  171.             });
  172.       }
  173.     }
  174. </script>