MCPcopy Create free account
hub / github.com/TechSpiritSS/Terminal-Portfolio / new_line

Function new_line

scripts/functions.js:347–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345}
346
347function new_line() {
348 const p = document.createElement("p");
349 const span = document.createElement("span");
350 const span2 = document.createElement("span");
351 p.setAttribute("class", "path");
352 p.textContent = config.terminal.user + " ";
353 span.textContent = config.terminal.host + " ";
354 span2.textContent = config.terminal.path + " ";
355 p.appendChild(span);
356 p.appendChild(span2);
357 app.appendChild(p);
358 const div = document.createElement("div");
359 div.setAttribute("class", "type");
360 const i = document.createElement("i");
361 i.setAttribute("class", "fas fa-angle-right icone");
362 const input = document.createElement("input");
363 div.appendChild(i);
364 div.appendChild(input);
365 app.appendChild(div);
366 input.focus();
367}
368
369function removeInput() {
370 const div = document.querySelector(".type");

Callers 2

openTerminalFunction · 0.90
eventListeners.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected