|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | + |
| 7 | + <link href="https://fonts.googleapis.com/css?family=Nunito:400,600" rel="stylesheet"> |
| 8 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> |
| 9 | + |
| 10 | + <link href="dist/tag/css/tag.min.css" rel="stylesheet"> |
| 11 | + <link href="demo.min.css" rel="stylesheet"> |
| 12 | + |
| 13 | + <style id="svgStyles"> |
| 14 | + @import url(https://fonts.googleapis.com/css?family=Nunito:400,600); |
| 15 | + |
| 16 | + text { |
| 17 | + text-anchor: middle; |
| 18 | + } |
| 19 | + .row-drag { |
| 20 | + stroke-width:2; |
| 21 | + stroke-dasharray: 2,1; |
| 22 | + stroke:rgba(100,100,100,0.3); |
| 23 | + transition: stroke 300ms ease; |
| 24 | + cursor: row-resize; |
| 25 | + } |
| 26 | + .row-drag:hover { |
| 27 | + stroke-dasharray:none; |
| 28 | + stroke:rgba(100,100,100,0.8); |
| 29 | + } |
| 30 | + |
| 31 | + .word text { |
| 32 | + font-size:16px; |
| 33 | + fill:black; |
| 34 | + } |
| 35 | + .word path { |
| 36 | + stroke:#333; |
| 37 | + fill:none; |
| 38 | + } |
| 39 | + .word .word-text { |
| 40 | + cursor: pointer; |
| 41 | + } |
| 42 | + |
| 43 | + .word-cluster text, |
| 44 | + .word .word-tag { |
| 45 | + font-size: 12px; |
| 46 | + cursor: text; |
| 47 | + } |
| 48 | + |
| 49 | + .word-cluster text, |
| 50 | + .word .word-tag { |
| 51 | + fill:#333; |
| 52 | + } |
| 53 | + .word .syntax-tag { |
| 54 | + fill: rgb(208, 150, 143); |
| 55 | + } |
| 56 | + .toggle-syntax .syntax-tag, .toggle-syntax .syntax-link { |
| 57 | + display:none; |
| 58 | + } |
| 59 | + |
| 60 | + .editing .word-tag, |
| 61 | + .editing-text, |
| 62 | + .editing text { |
| 63 | + fill: #fff !important; |
| 64 | + } |
| 65 | + |
| 66 | + .editing-rect, |
| 67 | + .editing rect { |
| 68 | + fill:#a94442; |
| 69 | + } |
| 70 | + |
| 71 | + .link path.polyline { |
| 72 | + stroke: #6590b4; |
| 73 | + fill: none; |
| 74 | + } |
| 75 | + .link { |
| 76 | + font-size: 12px; |
| 77 | + fill:#6590b4; |
| 78 | + stroke-width:1.5px; |
| 79 | + } |
| 80 | + .link.syntax-link { |
| 81 | + fill: #999; |
| 82 | + } |
| 83 | + .syntax-link path.polyline { |
| 84 | + stroke: #999; |
| 85 | + fill: none; |
| 86 | + } |
| 87 | + |
| 88 | + .link:hover { |
| 89 | + stroke-width:2.5px; |
| 90 | + } |
| 91 | + </style> |
| 92 | + |
| 93 | +</head> |
| 94 | + |
| 95 | +<body class="full-demo"> |
| 96 | + |
| 97 | +<div id="fill"></div> |
| 98 | + |
| 99 | +<header id="header"> |
| 100 | + Examples: |
| 101 | + <select id="dataset"> |
| 102 | + <option>-- select dataset --</option> |
| 103 | + <option>data1</option> |
| 104 | + <option>data2</option> |
| 105 | + <option>paragraph</option> |
| 106 | + <option>passage1</option> |
| 107 | + <option>passage2</option> |
| 108 | + <option>morpheme1</option> |
| 109 | + <option>morpheme2</option> |
| 110 | + <option>event annotation</option> |
| 111 | + </select> |
| 112 | + <button id="custom-annotation">Custom annotation</button> |
| 113 | + <button id="taxonomy-toggle">Taxonomy</button> |
| 114 | + <button id="options-toggle">Options</button> |
| 115 | + <button id="download-button">Download (CTRL+S)<a id="download" download></a></button> |
| 116 | +</header> |
| 117 | + |
| 118 | +<div id="main"> |
| 119 | + <div id="tooltip"> |
| 120 | + </div> |
| 121 | +</div> |
| 122 | +<div class="modal-tag" id="modal-tag"> |
| 123 | + <div> |
| 124 | + <header> |
| 125 | + <span class="tab active" data-id="taxonomy">Taxonomy</span> |
| 126 | + <span class="tab" data-id="tree">Tree View</span> |
| 127 | + <span class="tab" data-id="graph">Graph</span> |
| 128 | + <span class="tab" data-id="options">Options</span> |
| 129 | + </header> |
| 130 | + <div class="page active" id="taxonomy"></div> |
| 131 | + <div class="page" id="tree"> |
| 132 | + </div> |
| 133 | + <div class="page" id="graph"></div> |
| 134 | + <div class="page" id="options"> |
| 135 | + <p><input type="checkbox" data-option="syntax"> Show syntax tree</p> |
| 136 | + <p><input type="checkbox" data-option="links"> Show links when moving words</p> |
| 137 | + <p><input type="checkbox" data-option="tree"> Open tree view in modal</p> |
| 138 | + </div> |
| 139 | + </div> |
| 140 | +</div> |
| 141 | + |
| 142 | +<script src="dist/tag/js/tag.min.js"></script> |
| 143 | +</body> |
| 144 | +</html> |
0 commit comments