Guest User

Untitled

a guest
Jan 17th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.58 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  6.     <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
  7.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  8.     <style>
  9.         textarea {
  10.             width:100%;
  11.             height:100%;
  12.         }
  13.         .modal-custom {
  14.             width: 70%;
  15.             height: 70%;
  16.             padding: 0;
  17.         }
  18.         .modal-content-custom {
  19.             height: auto;
  20.             min-height: 100%;
  21.             border-radius: 0;
  22.         }
  23.     </style>
  24. </head>
  25. <body>
  26. <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#editForm">
  27.     Launch demo modal
  28. </button>
  29.  
  30.  
  31. <div class="modal fade editForm" id="editForm" tabindex="-1" role="dialog" aria-labelledby="editFormLabel">
  32.     <div class="modal-dialog modal-custom" role="document">
  33.         <div class="modal-content modal-content-custom">
  34.             <div class="modal-header">
  35.                 <h4 class="modal-title" style="display: inline-block" id="editFormLabel">Source code</h4>
  36.             </div>
  37.             <div class="modal-body">
  38.                 <textarea id="textpage" class="edtextarea" title="Source code of page"></textarea>
  39.             </div>
  40.             <div class="modal-footer">
  41.                 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  42.             </div>
  43.         </div>
  44.     </div>
  45. </div>
  46.  
  47.  
  48. </body>
  49. </html>
Add Comment
Please, Sign In to add comment