show.jsp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath=path+"/";
  5. String id =request.getParameter("id");
  6. %>
  7. <!doctype html>
  8. <html>
  9. <head>
  10. <meta charset="utf-8">
  11. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  13. <title>流程播放器</title>
  14. <style type="text/css">
  15. html {
  16. height: 100%;
  17. padding: 0;
  18. }
  19. body {
  20. height: calc(100% - 16px);
  21. padding: 0;
  22. }
  23. #canvas {
  24. height: 100%;
  25. width:100%;
  26. padding: 0;
  27. }
  28. .needs-discussion {
  29. stroke: rgba(216, 76, 41, 1) !important; /* color elements as red */
  30. }
  31. </style>
  32. </head>
  33. <body>
  34. <div id="canvas"></div>
  35. <button type="submit" class="btn btn-default" style="display: none;" id="show-button"></button>
  36. <script type="text/javascript">
  37. var basePath = '<%=basePath%>';
  38. var id = '<%=id%>';
  39. </script>
  40. <script src="<%=basePath%>player/js/jquery/dist/jquery.min.js"></script>
  41. <script src="<%=basePath %>player/design/bpmn/show/bpmn-viewer.min.js"></script>
  42. <script src="<%=basePath %>player/design/bpmn/show/show.js"></script>
  43. </body>
  44. </html>