No Description

offcanvas_1488017629.html 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html>
  2. <html lang="en">
  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. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <title>Off Canvas Template for Bootstrap</title>
  10. <!-- Bootstrap core CSS -->
  11. <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
  12. <!-- Custom styles for this template -->
  13. <link href="offcanvas.css" rel="stylesheet">
  14. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  15. <!--[if lt IE 9]>
  16. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  17. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  18. <![endif]-->
  19. </head>
  20. <body>
  21. <nav class="navbar navbar-fixed-top navbar-inverse">
  22. <div class="container">
  23. <div class="navbar-header">
  24. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  25. <span class="sr-only">Toggle navigation</span>
  26. <span class="icon-bar"></span>
  27. <span class="icon-bar"></span>
  28. <span class="icon-bar"></span>
  29. </button>
  30. <a class="navbar-brand" href="#">Project name</a>
  31. </div>
  32. <div id="navbar" class="collapse navbar-collapse">
  33. <ul class="nav navbar-nav">
  34. <li class="active">
  35. <a href="#">Home</a>
  36. </li>
  37. <li>
  38. <a href="#about">About</a>
  39. </li>
  40. <li>
  41. <a href="#contact">Contact</a>
  42. </li>
  43. </ul>
  44. </div>
  45. <!-- /.nav-collapse -->
  46. </div>
  47. <!-- /.container -->
  48. </nav>
  49. <!-- /.navbar -->
  50. <div class="container">
  51. <div class="row row-offcanvas row-offcanvas-right">
  52. <div class="col-xs-12 col-sm-9">
  53. <p class="pull-right visible-xs"><button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button></p>
  54. <div class="jumbotron" style="background-image:url('file:///Users/fredd/Desktop/Screen%20Shot%202017-02-14%20at%2016.19.08.png');">
  55. <h1>Hello, world!</h1>
  56. <p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
  57. </div>
  58. <div class="row">
  59. <div class="col-xs-6 col-lg-4">
  60. <h2>Heading</h2>
  61. <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
  62. <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
  63. </div>
  64. <!--/.col-xs-6.col-lg-4-->
  65. <div class="col-xs-6 col-lg-4">
  66. <h2>Heading</h2>
  67. <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
  68. <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
  69. </div>
  70. <!--/.col-xs-6.col-lg-4-->
  71. <div class="col-xs-6 col-lg-4">
  72. <h2>Heading</h2>
  73. <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
  74. <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
  75. </div>
  76. <!--/.col-xs-6.col-lg-4-->
  77. <div class="col-xs-6 col-lg-4">
  78. <h2>Heading</h2>
  79. <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
  80. <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
  81. </div>
  82. <!--/.col-xs-6.col-lg-4-->
  83. <div class="col-xs-6 col-lg-4">
  84. <h2>Heading</h2>
  85. <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
  86. <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
  87. </div>
  88. <!--/.col-xs-6.col-lg-4-->
  89. <div class="col-xs-6 col-lg-4">
  90. <h2>Heading</h2>
  91. <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
  92. <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
  93. </div>
  94. <!--/.col-xs-6.col-lg-4-->
  95. </div>
  96. <!--/row-->
  97. </div>
  98. <!--/.col-xs-12.col-sm-9-->
  99. <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar">
  100. <div class="list-group">
  101. <a href="#" class="list-group-item active">Link</a>
  102. <a href="#" class="list-group-item">Link</a>
  103. <a href="#" class="list-group-item">Link</a>
  104. <a href="#" class="list-group-item">Link</a>
  105. <a href="#" class="list-group-item">Link</a>
  106. <a href="#" class="list-group-item">Link</a>
  107. <a href="#" class="list-group-item">Link</a>
  108. <a href="#" class="list-group-item">Link</a>
  109. <a href="#" class="list-group-item">Link</a>
  110. <a href="#" class="list-group-item">Link</a>
  111. </div>
  112. </div>
  113. <!--/.sidebar-offcanvas-->
  114. </div>
  115. <!--/row-->
  116. <hr>
  117. <footer>
  118. <p>&copy; Company 2014</p>
  119. </footer>
  120. </div>
  121. <!--/.container-->
  122. <!-- Bootstrap core JavaScript
  123. ================================================== -->
  124. <!-- Placed at the end of the document so the pages load faster -->
  125. <script src="assets/js/jquery.min.js"></script>
  126. <script src="bootstrap/js/bootstrap.min.js"></script>
  127. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  128. <script src="assets/js/ie10-viewport-bug-workaround.js"></script>
  129. <script>
  130. $(document).ready(function () {
  131. $('[data-toggle="offcanvas"]').click(function () {
  132. $('.row-offcanvas').toggleClass('active')
  133. });
  134. });
  135. </script>
  136. </body>
  137. </html>