diff --git a/demo/index.html b/demo/index.html index 41a77205..f374d998 100644 --- a/demo/index.html +++ b/demo/index.html @@ -30,6 +30,7 @@ +

Attention: The demo is a barebones implementation and is designed for the development and evaluation of xterm.js only. Exposing the demo to the public as is would introduce security risks for the host.

diff --git a/demo/main.js b/demo/main.js index e4d0bb2b..f765f3ce 100644 --- a/demo/main.js +++ b/demo/main.js @@ -187,19 +187,23 @@ function initOptions(term) { }); var html = ''; + html += '
'; booleanOptions.forEach(o => { - html += `
`; + html += `
`; }); + html += '
'; numberOptions.forEach(o => { - html += `
`; + html += `
`; }); + html += '
'; Object.keys(stringOptions).forEach(o => { if (stringOptions[o]) { - html += `
`; + html += `
`; } else { - html += `
` + html += `
` } }); + html += '
'; var container = document.getElementById('options-container'); container.innerHTML = html; diff --git a/demo/style.css b/demo/style.css index 1ab5f61c..b061dfcb 100644 --- a/demo/style.css +++ b/demo/style.css @@ -14,3 +14,19 @@ h1 { margin: 0 auto; padding: 2px; } + +p { + font-size: 0.9em; + font-style: italic +} + +#option-container { + display: flex; + justify-content: center; +} + +.option-group { + display: inline-block; + padding-left: 20px; + vertical-align: top; +}