diff --git a/mastermind/add.html b/mastermind/add.html new file mode 100644 index 0000000..e69de29 diff --git a/mastermind/index.html b/mastermind/index.html new file mode 100644 index 0000000..8ef4bd6 --- /dev/null +++ b/mastermind/index.html @@ -0,0 +1,28 @@ + + + + + + Mastermind + + + +
+

Mastermind

+

Organize seus horários com algoritmos inteligentes.

+
+
+
+

Seus Planejamentos

+ +
+
+ + +
+
+ + + diff --git a/mastermind/machiavelli.html b/mastermind/machiavelli.html new file mode 100644 index 0000000..e69de29 diff --git a/mastermind/result.html b/mastermind/result.html new file mode 100644 index 0000000..e69de29 diff --git a/mastermind/scripts/algorithms.js b/mastermind/scripts/algorithms.js new file mode 100644 index 0000000..e69de29 diff --git a/mastermind/scripts/app.js b/mastermind/scripts/app.js new file mode 100644 index 0000000..167a595 --- /dev/null +++ b/mastermind/scripts/app.js @@ -0,0 +1,28 @@ +// scripts/app.js + +// Inicializa a lista de planejamentos +let plans = JSON.parse(localStorage.getItem("plans")) || []; + +// Exibe os planejamentos na página inicial +function renderPlans() { + const planList = document.getElementById("plan-list"); + planList.innerHTML = ""; // Limpa a lista antes de renderizar + plans.forEach((plan, index) => { + const li = document.createElement("li"); + li.textContent = `Planejamento ${index + 1}: ${plan.name}`; + planList.appendChild(li); + }); +} + +// Redireciona para a página de adicionar planejamento +document.getElementById("add-plan").addEventListener("click", () => { + window.location.href = "add.html"; +}); + +// Redireciona para o modo Machiavelli +document.getElementById("machiavelli-mode").addEventListener("click", () => { + window.location.href = "machiavelli.html"; +}); + +// Renderiza os planejamentos ao carregar a página +renderPlans(); diff --git a/mastermind/styles/styles.css b/mastermind/styles/styles.css new file mode 100644 index 0000000..6d4775a --- /dev/null +++ b/mastermind/styles/styles.css @@ -0,0 +1,51 @@ + body { + font-family: Arial, sans-serif; + margin: 0; + padding: 0; + box-sizing: border-box; + } + + header { + background-color: #4CAF50; + color: white; + padding: 20px; + text-align: center; + } + + main { + padding: 20px; + } + + #actions { + margin-top: 20px; + display: flex; + gap: 10px; + } + + button { + padding: 10px 20px; + font-size: 16px; + cursor: pointer; + border: none; + background-color: #007BFF; + color: white; + border-radius: 5px; + } + + button:hover { + background-color: #0056b3; + } + + #plan-list { + list-style: none; + padding: 0; + } + + #plan-list li { + margin: 10px 0; + padding: 10px; + background-color: #f4f4f4; + border: 1px solid #ddd; + border-radius: 5px; + } + \ No newline at end of file