(codeId)
| 508 | } |
| 509 | |
| 510 | function createViewSourceNode(codeId) { |
| 511 | let linkElement = document.createElement("span"); |
| 512 | linkElement.appendChild(document.createTextNode("View source")); |
| 513 | linkElement.classList.add("view-source-link"); |
| 514 | linkElement.onclick = (event) => { |
| 515 | main.setCurrentCode(codeId); |
| 516 | main.setViewingSource(true); |
| 517 | // Prevent the click from bubbling to the row and causing it to |
| 518 | // collapse/expand. |
| 519 | event.stopPropagation(); |
| 520 | }; |
| 521 | return linkElement; |
| 522 | } |
| 523 | |
| 524 | const COLLAPSED_ARROW = "\u25B6"; |
| 525 | const EXPANDED_ARROW = "\u25BC"; |
no test coverage detected
searching dependent graphs…