|
79 | 79 | })); |
80 | 80 | } |
81 | 81 |
|
82 | | - root.children = root.children.slice(48,68); |
| 82 | + root.children = root.children.slice(45,65); |
83 | 83 | // truncate(root); |
84 | 84 | root.children.forEach(collapse); |
85 | 85 | // collapse(root); |
|
272 | 272 |
|
273 | 273 | d.iframe.append("div.title").text(function(d) { return d.description ? d.description : d.name; }); |
274 | 274 |
|
| 275 | + // could also append label for class list, like so... |
| 276 | + // d.iframe.append("div.class-list").text(function(d) { return d.ref ? d.ref.classList : ''; }); |
| 277 | + |
| 278 | + var inlineStyle = "<style>img{max-width:100%;}</style>"; |
| 279 | + |
275 | 280 | var iframeEl = d.iframe.append("iframe"); |
276 | 281 | var iframeDocument = iframeEl.node().contentWindow.document; |
277 | 282 | iframeDocument.open(); |
278 | | - iframeDocument.write(d.ref.innerHTML); |
| 283 | + iframeDocument.write(inlineStyle + d.ref.outerHTML); |
279 | 284 | iframeDocument.close(); |
280 | 285 | } |
281 | 286 |
|
|
342 | 347 | {"name":"html","description":"document root element"}, |
343 | 348 | {"name":"i","description":"italic text style"}, |
344 | 349 | {"name":"iframe","description":"inline subwindow"}, |
345 | | - {"name":"img","description":"Embedded image"}, |
| 350 | + {"name":"img","description":"embedded image"}, |
346 | 351 | {"name":"input","description":"form control"}, |
347 | 352 | {"name":"ins","description":"inserted text"}, |
348 | 353 | {"name":"isindex","description":"single line prompt"}, |
|
0 commit comments