MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / exitOnlyArrowElmt

Function exitOnlyArrowElmt

js/main copy.js:1456–1473  ·  view source on GitHub ↗
(direction)

Source from the content-addressed store, hash-verified

1454 }
1455
1456 const exitOnlyArrowElmt = function(direction) {
1457 const downArrowElmt = document.createElement("span");
1458 downArrowElmt.className = "exitOnlyArrow";
1459 if ((direction == "Up Arrow") || (direction == "Down Arrow") || (direction == null) || (direction.includes("/Down"))) {
1460 if (direction.includes("/Down")) {
1461 downArrowElmt.className += " special";
1462 }
1463 downArrowElmt.style.fontFamily = "Arrows Two";
1464 }
1465 else {
1466 if (direction.includes("/Up")) {
1467 downArrowElmt.className += " specialUp";
1468 }
1469 downArrowElmt.style.fontFamily = "Arrows One";
1470 }
1471 downArrowElmt.appendChild(document.createTextNode(lib.specialCharacters[direction || "Down Arrow"]));
1472 return downArrowElmt;
1473 }
1474
1475 if (panel.sign.advisoryMessage) {
1476 actionMessageElmt.style.fontFamily = "Series E";

Callers 1

redrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected