Calorie counting web application written in the Go language

debug.html 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <style type="text/css">
  2. #sidebar
  3. {
  4. position: absolute;
  5. right: 0px;
  6. top:69px;
  7. max-width: 75%;
  8. z-index: 1000;
  9. background-color: #fee;
  10. border: thin solid grey;
  11. padding: 10px;
  12. }
  13. #toggleSidebar
  14. {
  15. position: absolute;
  16. right: 0px;
  17. top: 50px;
  18. background-color: #fee;
  19. }
  20. </style>
  21. <div id="sidebar" style="display:none;">
  22. <h4>Available pipelines</h4>
  23. <dl>
  24. {{ range $index, $value := .}}
  25. <dt>{{$index}}</dt>
  26. <dd>{{$value}}</dd>
  27. {{end}}
  28. </dl>
  29. <h4>Flash</h4>
  30. <dl>
  31. {{ range $index, $value := .flash}}
  32. <dt>{{$index}}</dt>
  33. <dd>{{$value}}</dd>
  34. {{end}}
  35. </dl>
  36. <h4>Errors</h4>
  37. <dl>
  38. {{ range $index, $value := .errors}}
  39. <dt>{{$index}}</dt>
  40. <dd>{{$value}}</dd>
  41. {{end}}
  42. </dl>
  43. </div>
  44. <a id="toggleSidebar" href="#" class="toggles"><span class="glyphicon glyphicon-chevron-left"></span></a>
  45. <script>
  46. $sidebar = 0;
  47. $('#toggleSidebar').click(function() {
  48. if ($sidebar === 1) {
  49. $('#sidebar').hide();
  50. $('#toggleSidebar i').addClass('icon-chevron-left');
  51. $('#toggleSidebar i').removeClass('icon-chevron-right');
  52. $sidebar = 0;
  53. }
  54. else {
  55. $('#sidebar').show();
  56. $('#toggleSidebar i').addClass('icon-chevron-right');
  57. $('#toggleSidebar i').removeClass('icon-chevron-left');
  58. $sidebar = 1;
  59. }
  60. return false;
  61. });
  62. </script>