Bootstrap modal

A simple example of a Bootstrap modal.
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="Bootstrap example for Tizen"/>
    
    <title>Bootstrap example for Tizen</title>
    
 <link rel="stylesheet" href="css/bootstrap.min.css">
  <script src="js/jquery-2.1.4.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
</head>
<body>

<!-- A button to open the modal -->
<button type="button" class="btn btn-info btn-md" data-toggle="modal" data-target="#modal">Open the Modal</button>

<!-- The Modal -->
<div id="modal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- The Modals' content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h4 class="modal-title">Title of the Modal</h4>
      </div>
      <div class="modal-body">
        <p>Large amounts of tank warfare were used during World War II.</p>
      </div>
      <div class="modal-body">
        <p>The battle of Kursk held over 2000 tanks from both sides.</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>

  </div>
</div>

<script>
</script>

</body>
</html>

Responses

0 Replies