|
| 1 | +<html> |
| 2 | +<head> |
| 3 | +<style type="text/css"> |
| 4 | +:root { |
| 5 | + --background: #fff; |
| 6 | + --background-odd: #f5f5f5; |
| 7 | + --background-hover: #d9edfd; |
| 8 | + --header-text-color: #474747; |
| 9 | + --text-color: #848484; |
| 10 | + --text-color-dark: #000; |
| 11 | + --text-color-medium: #737373; |
| 12 | + --text-color-pale: #b3b3b3; |
| 13 | + --inner-border-color: #aaa; |
| 14 | + --bold-border-color: #000; |
| 15 | + --link-color: #296eaa; |
| 16 | + --link-color-pale: #296eaa; |
| 17 | + --link-hover: #1a466c; |
| 18 | +} |
| 19 | +:root[theme="dark"], :root [data-jp-theme-light="false"] { |
| 20 | + --background: #303030; |
| 21 | + --background-odd: #3c3c3c; |
| 22 | + --background-hover: #464646; |
| 23 | + --header-text-color: #dddddd; |
| 24 | + --text-color: #b3b3b3; |
| 25 | + --text-color-dark: #dddddd; |
| 26 | + --text-color-medium: #b2b2b2; |
| 27 | + --text-color-pale: #737373; |
| 28 | + --inner-border-color: #707070; |
| 29 | + --bold-border-color: #777777; |
| 30 | + --link-color: #008dc0; |
| 31 | + --link-color-pale: #97e1fb; |
| 32 | + --link-hover: #00688e; |
| 33 | +} |
| 34 | +body { |
| 35 | + font-family: "JetBrains Mono",SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; |
| 36 | +} |
| 37 | +:root { |
| 38 | + color: #19191C; |
| 39 | + background-color: #fff; |
| 40 | +} |
| 41 | +:root[theme="dark"] { |
| 42 | + background-color: #19191C; |
| 43 | + color: #FFFFFFCC |
| 44 | +} |
| 45 | +</style> |
| 46 | +<script> |
| 47 | + function sendHeight() { |
| 48 | + const body = document.body; |
| 49 | + const html = document.documentElement; |
| 50 | + |
| 51 | + const height = Math.max( |
| 52 | + body.scrollHeight, |
| 53 | + body.offsetHeight, |
| 54 | + html.clientHeight, |
| 55 | + html.scrollHeight, |
| 56 | + html.offsetHeight |
| 57 | + ); |
| 58 | + |
| 59 | + parent.postMessage({ type: 'iframeHeight', height }, '*'); |
| 60 | + } |
| 61 | + |
| 62 | + |
| 63 | + function repeatHeightCalculation(maxRetries = 10, interval = 100) { |
| 64 | + let retries = 0; |
| 65 | + const intervalId = setInterval(() => { |
| 66 | + sendHeight(); |
| 67 | + retries++; |
| 68 | + if (retries >= maxRetries) clearInterval(intervalId); |
| 69 | + }, interval); |
| 70 | + } |
| 71 | + |
| 72 | + window.addEventListener('load', () => { |
| 73 | + repeatHeightCalculation(); |
| 74 | + }); |
| 75 | + |
| 76 | + |
| 77 | + const observer = new MutationObserver(() => repeatHeightCalculation(5, 50)); |
| 78 | + observer.observe(document.body, { |
| 79 | + childList: true, |
| 80 | + subtree: true, |
| 81 | + characterData: true, |
| 82 | + attributes: true |
| 83 | + }); |
| 84 | + |
| 85 | + window.addEventListener('resize', sendHeight); |
| 86 | +</script> |
| 87 | +</head> |
| 88 | +<body><pre><code> (BigDecimal) |
| 89 | + / \ |
| 90 | + (BigInteger) \ |
| 91 | + / \ \ |
| 92 | +<~ ULong Long ~> Double .. |
| 93 | +.. | / | / | \.. |
| 94 | + \ | / | / | |
| 95 | + UInt Int Float |
| 96 | +.. | / | / \.. |
| 97 | + \ | / | / |
| 98 | + UShort Short |
| 99 | + | / | |
| 100 | + | / | |
| 101 | + UByte Byte |
| 102 | + \ / |
| 103 | + \ / |
| 104 | + Nothing? |
| 105 | +</code></pre></body> |
| 106 | +<html/> |
0 commit comments