Skip to content

Commit

Permalink
move to enfp
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiro committed Jan 16, 2024
1 parent 67a4ff3 commit 70e215d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function changeActiveType($nextType) {
$activeType.classList.remove("active");
$nextType.classList.add("active");

// // Move y of $types to show active type
// Move y of $types to show active type
$types.animate(
{
translate: [
Expand Down Expand Up @@ -253,7 +253,7 @@ function changeActiveType($nextType) {
);
$cfsByIndex[index].parentElement.parentElement.setAttribute(
"data-jp",
["T", "F"].includes(text.substr(0, 1)) ? "J" : "P"
getJP(text)
);
$cfsDescByIndex[index].innerText = cognFuncNames[text];
}
Expand Down Expand Up @@ -451,8 +451,6 @@ $cfs.addEventListener("drop", (e) => {
$cfsByIndex[3].innerText,
];

console.log("currentType :>> ", currentType);

currentType[dropIndex] = incomingCf;
currentType[incomingIdx] = e.target.dataset.cf;

Expand All @@ -462,6 +460,4 @@ $cfs.addEventListener("drop", (e) => {
});

// On Load - random type
const $randomType =
$types.children[Math.floor(Math.random() * $types.children.length)];
changeActiveType($randomType);
changeActiveType(getNodeTypeFromString("ENFP"));

0 comments on commit 70e215d

Please sign in to comment.