We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ecfe9 commit 3809a62Copy full SHA for 3809a62
1 file changed
web-app/js/projects.js
@@ -51,6 +51,11 @@ function toPascalCase(str) {
51
}
52
53
function initializeProject(projectName) {
54
+ if (projectName === "number-sliding-puzzle") {
55
+ initNumberSlidingPuzzle();
56
+ return;
57
+ }
58
+
59
const fnName = "init" + toPascalCase(projectName);
60
const init = window[fnName];
61
@@ -61,6 +66,10 @@ function initializeProject(projectName) {
66
62
67
63
68
function getProjectHTML(projectName) {
69
70
+ return getNumberSlidingPuzzleHTML();
71
72
64
73
const fnName = "get" + toPascalCase(projectName) + "HTML";
65
74
75
try {
@@ -628,4 +637,4 @@ function initNQueens() {
628
637
output.innerHTML = "";
629
638
solutionCountEl.textContent = "0";
630
639
});
631
-}
640
+}
0 commit comments