|
@@ -78,12 +78,19 @@ function interpret(input) {
|
|
|
return output;
|
|
|
}
|
|
|
|
|
|
+const parsedTerminalHeightInPixels = parseInt(
|
|
|
+ getComputedStyle(document.documentElement).getPropertyValue(
|
|
|
+ "--terminal-height"
|
|
|
+ ),
|
|
|
+ 10
|
|
|
+);
|
|
|
+
|
|
|
function setup() {
|
|
|
$(document).ready(function() {
|
|
|
var term = $('#terminal').terminal(interpret, {
|
|
|
greetings: false,
|
|
|
name: "terminal",
|
|
|
- height: 550,
|
|
|
+ height: parsedTerminalHeightInPixels,
|
|
|
prompt: "[[;;;prompt]>>> ]",
|
|
|
checkArity: false,
|
|
|
historySize: 200,
|
|
@@ -95,7 +102,7 @@ function setup() {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- // Swap out the skeleton loader with the terminal, preventing a layout shift.
|
|
|
+ // Swap out the skeleton loader with the terminal to prevent layout shifting.
|
|
|
document.getElementById("skeleton-loader").classList.add("hidden");
|
|
|
document.getElementById("terminal").classList.remove("hidden");
|
|
|
|