Calorie counting web application written in the Go language

debug.html 1.2KB

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