layout.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {% extends '../../layout/layout.html' %}
  2. {% block layout_main %}
  3. <div class="container-fluid">
  4. <div class="row bg-title">
  5. <div class="col-xs-12">
  6. {% block content_header %}
  7. {% endblock %}
  8. </div>
  9. </div><!-- /.bg-title -->
  10. <div class="row">
  11. <div id="main" class="main m-t-15 col-md-12 {% if page %}{{ css.grant(page) }}{% endif %} {% block main_css_class %}{% endblock %}">
  12. {% block content_main_before %}
  13. {% endblock %}
  14. {% block content_main %}
  15. {% endblock content_main %}
  16. {% block content_main_after %}
  17. {% endblock %}
  18. </div>
  19. </div>
  20. </div><!-- /.container-fluid -->
  21. <!-- Side Scroll Bar-->
  22. <script>
  23. function DrawScrollbar() {
  24. var h = window.innerHeight - 100;
  25. $('#revision-toc-content').slimScroll({
  26. railVisible: true,
  27. position: 'right',
  28. height: h,
  29. });
  30. }
  31. </script>
  32. <script>
  33. $(function(){
  34. DrawScrollbar();
  35. });
  36. </script>
  37. <script>
  38. (function () {
  39. var timer = 0;
  40. window.onresize = function () {
  41. if (timer > 0) {
  42. clearTimeout(timer);
  43. }
  44. timer = setTimeout(function () {
  45. DrawScrollbar();
  46. }, 200);
  47. };
  48. }());
  49. </script>
  50. <footer class="footer">
  51. {% include '../../widget/system-version.html' %}
  52. </footer>
  53. {% endblock %} {# layout_main #}