5161711e0d44399cad0d8aace5fd4ab0266d47f5.svn-base 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Modal</title>
  8. <link rel="stylesheet" href="../../../dist/css/bootstrap.min.css">
  9. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  10. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  11. <!--[if lt IE 9]>
  12. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  13. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  14. <![endif]-->
  15. <style>
  16. #tall {
  17. height: 1500px;
  18. width: 100px;
  19. background-color: black;
  20. color: white;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <nav class="navbar navbar-dark bg-inverse navbar-static-top">
  26. <button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#exCollapsingNavbar2">
  27. &#9776;
  28. </button>
  29. <div class="collapse navbar-toggleable-xs" id="exCollapsingNavbar2">
  30. <a class="navbar-brand" href="javascript:;">This shouldn't jump!</a>
  31. <ul class="nav navbar-nav">
  32. <li class="nav-item active">
  33. <a class="nav-link" href="javascript:;">Home <span class="sr-only">(current)</span></a>
  34. </li>
  35. <li class="nav-item">
  36. <a class="nav-link" href="javascript:;">Features</a>
  37. </li>
  38. <li class="nav-item">
  39. <a class="nav-link" href="javascript:;">Pricing</a>
  40. </li>
  41. <li class="nav-item">
  42. <a class="nav-link" href="javascript:;">About</a>
  43. </li>
  44. </ul>
  45. </div>
  46. </nav>
  47. <div class="container m-t-lg">
  48. <div class="page-header">
  49. <h1>Modal <small>Bootstrap Visual Test</small></h1>
  50. </div>
  51. <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  52. <div class="modal-dialog" role="document">
  53. <div class="modal-content">
  54. <div class="modal-header">
  55. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  56. <h4 class="modal-title" id="myModalLabel">Modal Heading</h4>
  57. </div>
  58. <div class="modal-body">
  59. <h4>Text in a modal</h4>
  60. <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
  61. <h4>Popover in a modal</h4>
  62. <p>This <a href="javascript:;" role="button" class="btn btn-primary js-popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?" data-placement="left">button</a> should trigger a popover on click.</p>
  63. <h4>Tooltips in a modal</h4>
  64. <p><a href="javascript:;" class="js-tooltip" title="Tooltip">This link</a> and <a href="javascript:;" class="js-tooltip" title="Tooltip">that link</a> should have tooltips on hover.</p>
  65. <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
  66. <div class="panel panel-default">
  67. <div class="panel-heading" role="tab" id="headingOne">
  68. <h4 class="panel-title">
  69. <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
  70. Collapsible Group Item #1
  71. </a>
  72. </h4>
  73. </div>
  74. <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  75. <div class="panel-body">
  76. Lorem ipsum
  77. </div>
  78. </div>
  79. </div>
  80. <div class="panel panel-default">
  81. <div class="panel-heading" role="tab" id="headingTwo">
  82. <h4 class="panel-title">
  83. <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
  84. Collapsible Group Item #2
  85. </a>
  86. </h4>
  87. </div>
  88. <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
  89. <div class="panel-body">
  90. Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
  91. Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
  92. Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <hr>
  98. <h4>Overflowing text to show scroll behavior</h4>
  99. <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
  100. <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
  101. <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
  102. <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
  103. <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
  104. <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
  105. <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
  106. <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
  107. <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
  108. </div>
  109. <div class="modal-footer">
  110. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  111. <button type="button" class="btn btn-primary">Save changes</button>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  117. Launch demo modal
  118. </button>
  119. <button id="tall-toggle" class="btn btn-default">Toggle tall &lt;body&gt; content</button>
  120. <br><br>
  121. <div id="tall" style="display: none;">
  122. Tall body content to force the page to have a scrollbar.
  123. </div>
  124. </div>
  125. <!-- JavaScript Includes -->
  126. <script src="../vendor/jquery.min.js"></script>
  127. <script src="../vendor/tether.min.js"></script>
  128. <script src="../../dist/util.js"></script>
  129. <script src="../../dist/modal.js"></script>
  130. <script src="../../dist/collapse.js"></script>
  131. <script src="../../dist/tooltip.js"></script>
  132. <script src="../../dist/popover.js"></script>
  133. <!-- <script src="../../transition.js"></script>
  134. <script src="../../tooltip.js"></script>
  135. <script src="../../popover.js"></script> -->
  136. <!-- JavaScript Test -->
  137. <script>
  138. $(function () {
  139. $('.js-popover').popover()
  140. $('.js-tooltip').tooltip()
  141. $('#tall-toggle').click(function () {
  142. $('#tall').toggle()
  143. })
  144. })
  145. </script>
  146. </body>
  147. </html>