layout.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 - ((document.getElementById('revision-toc').clientHeight))/2 ;
  25. $('#revision-toc-content').slimScroll({
  26. railVisible: true,
  27. height: h,
  28. });
  29. }
  30. $(function(){
  31. DrawScrollbar();
  32. });
  33. (function () {
  34. var timer = 0;
  35. window.onresize = function () {
  36. if (timer > 0) {
  37. clearTimeout(timer);
  38. }
  39. timer = setTimeout(function () {
  40. DrawScrollbar();
  41. }, 200);
  42. };
  43. }());
  44. </script>
  45. <footer class="footer">
  46. {% include '../../widget/system-version.html' %}
  47. </footer>
  48. {% endblock %} {# layout_main #}