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

Function ArrowElmt

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

Source from the content-addressed store, hash-verified

1435 }
1436 if (("Exit Only" == panel.sign.guideArrow) || "Split Exit Only" == panel.sign.guideArrow) {
1437 const ArrowElmt = function(direction) {
1438 const downArrowElmt = document.createElement("span");
1439 downArrowElmt.className = "arrow";
1440 if ((direction == "Up Arrow") || (direction == "Down Arrow") || (direction == null) || (direction.includes("/Down"))) {
1441 if (direction.includes("/Down")) {
1442 downArrowElmt.className += " special";
1443 }
1444 downArrowElmt.style.fontFamily = "Arrows Two";
1445 }
1446 else {
1447 if (direction.includes("/Up")) {
1448 downArrowElmt.className += " specialUp";
1449 }
1450 downArrowElmt.style.fontFamily = "Arrows One";
1451 }
1452 downArrowElmt.appendChild(document.createTextNode(lib.specialCharacters[direction || "Down Arrow"]));
1453 return downArrowElmt;
1454 }
1455
1456 const exitOnlyArrowElmt = function(direction) {
1457 const downArrowElmt = document.createElement("span");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected