footer.tpl 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {{ define "footer" }}
  2. <!-- jQuery -->
  3. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/jquery/jquery.min.js"></script>
  4. <!-- Bootstrap Core JavaScript
  5. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/bootstrap/js/bootstrap.min.js"></script> -->
  6. <!-- Our modified Bootstrap -->
  7. <script src="{{.URLPathPrefix}}/lib/bootstrap/js/bootstrap.min.js"></script>
  8. <!-- Bootstrap-Dialog -->
  9. <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.7/js/bootstrap-dialog.min.js"></script> -->
  10. <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/js/bootstrap-dialog.min.js" integrity="sha256-IpgnbT7iaNM6j9WjtXKI8VMJ272WM9VvFYkZdu1umOA=" crossorigin="anonymous"></script>
  11. <!-- Metis Menu Plugin JavaScript -->
  12. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/metisMenu/metisMenu.min.js"></script>
  13. <!-- Custom Theme JavaScript -->
  14. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/dist/js/sb-admin-2.js"></script>
  15. {{ if .Gravatar }}
  16. <!-- this does not work yet -->
  17. <script src="{{.URLPathPrefix}}/lib/gobot-js/gprofiles.js"></script>
  18. <script src="{{.URLPathPrefix}}/lib/gobot-js/wpgroho.js"></script>
  19. {{ end }}
  20. {{ if .ObstaclePieChart }}
  21. <!-- Flot Charts JavaScript -->
  22. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/flot/excanvas.min.js"></script>
  23. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/flot/jquery.flot.js"></script>
  24. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/flot/jquery.flot.pie.js"></script>
  25. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/flot/jquery.flot.resize.js"></script>
  26. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/flot/jquery.flot.time.js"></script>
  27. <script src="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/flot-tooltip/jquery.flot.tooltip.min.js"></script>
  28. <script type="text/javascript">
  29. //data for Flot Pie Chart
  30. $(function() {
  31. var data = [{
  32. label: "Objects",
  33. data: {{ .obstaclesCnt }}
  34. }, {
  35. label: "Phantom",
  36. data: {{ .phantomCnt }}
  37. }];
  38. var plotObj = $.plot($("#flot-pie-chart"), data, {
  39. series: {
  40. pie: {
  41. show: true,
  42. tilt: 0.35,
  43. label: {
  44. show: true,
  45. radius: 3/4,
  46. /*formatter: labelFormatter,*/
  47. background: {
  48. color: '#000',
  49. opacity: 0.7
  50. }
  51. }
  52. }
  53. },
  54. grid: {
  55. hoverable: true
  56. },
  57. tooltip: true,
  58. tooltipOpts: {
  59. content: "%s: %n (%p.0%)", // show percentages, rounding to 2 decimal places
  60. shifts: {
  61. x: 20,
  62. y: 0
  63. },
  64. defaultTheme: false
  65. }
  66. });
  67. });
  68. </script>
  69. {{ end }}
  70. </body>
  71. </html>
  72. {{ end }}