sequence-diagram.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>SequenceDiagram - Editor.md examples</title>
  6. <link rel="stylesheet" href="css/style.css" />
  7. <link rel="stylesheet" href="../css/editormd.min.css" />
  8. <link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" />
  9. </head>
  10. <body>
  11. <div id="layout">
  12. <header>
  13. <h1>SequenceDiagram 时序图/序列图</h1>
  14. <p>Based on SequenceDiagram.js:<a href="http://bramp.github.io/js-sequence-diagrams/" target="_blank">http://bramp.github.io/js-sequence-diagrams/</a></p>
  15. </header>
  16. <div id="test-editormd">
  17. <textarea style="display:none;">#### Setting
  18. {
  19. sequenceDiagram : true
  20. }
  21. #### Syntax
  22. ```seq
  23. .........
  24. ```
  25. # or
  26. ```sequence
  27. .........
  28. ```
  29. #### Example
  30. ```seq
  31. A->B: Message
  32. B->C: Message
  33. C->A: Message
  34. ```
  35. ```sequence
  36. Andrew->China: Says Hello
  37. Note right of China: China thinks\nabout it
  38. China-->Andrew: How are you?
  39. Andrew->>China: I am good thanks!
  40. ```</textarea>
  41. </div>
  42. </div>
  43. <script src="js/jquery.min.js"></script>
  44. <script src="../editormd.js"></script>
  45. <script type="text/javascript">
  46. $(function() {
  47. var testEditor = editormd("test-editormd", {
  48. width: "90%",
  49. height: 640,
  50. path : '../lib/',
  51. sequenceDiagram : true
  52. });
  53. });
  54. </script>
  55. </body>
  56. </html>