better binary der display

This commit is contained in:
lastlink 2019-04-27 00:53:28 -04:00
parent 70103de28d
commit 36f5337f7d
2 changed files with 9 additions and 1 deletions

2
app.js
View File

@ -59,7 +59,7 @@
}) })
} }
$('.js-der').innerText = JSON.stringify(der, null, 2); $('.js-der').innerText = der;
$('.js-toc-der').hidden = false; $('.js-toc-der').hidden = false;
$('.js-jwk').innerText = JSON.stringify(results, null, 2); $('.js-jwk').innerText = JSON.stringify(results, null, 2);
$('.js-loading').hidden = true; $('.js-loading').hidden = true;

View File

@ -6,6 +6,14 @@
width: 42em; width: 42em;
height: 10em; height: 10em;
} }
/* need to word wrap the binary no space der */
.js-der{
white-space: pre-wrap; /* CSS3 */
white-space: -moz-pre-wrap; /* Firefox */
white-space: -pre-wrap; /* Opera <7 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* IE */
}
</style> </style>
</head> </head>
<body> <body>