Skip to content

Commit

Permalink
Fixed references in index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrawaas committed Feb 23, 2024
1 parent 3239f01 commit f3807eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TicTacYo!</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css">
<script src="./menuViewController.js" type="module" defer></script>
<script src="./menuController.js" type="module" defer></script>
<link rel="stylesheet" type="text/css" href="../css/style.css">
<script src="./menu/menuViewController.js" type="module" defer></script>
<script src="./menu/menuController.js" type="module" defer></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Varela+Round&display=swap" rel="stylesheet">
Expand Down
15 changes: 2 additions & 13 deletions docs/menu/menuController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as viewcontroller from "./menuViewController.js";
import * as viewcontroller from "../menu/menuViewController.js";

let namePlayer1:string;
let namePlayer2:string;
Expand All @@ -13,15 +13,4 @@ viewcontroller.setStartButtonClickListener(()=>{
url.searchParams.append("namePlayer2", namePlayer2);
url.searchParams.append("rounds", String(rounds));
open(url, "_self");
})

/**
Architektur:
Aufteilung in MenuPage und GamePage, diese haben jeweils als Klassen:
- View (HTML)
- Viewcontroller (Variablen getElementById, Methoden für die GUI)
- Logikcontroller (Nur Spiellogik, vgl. Bowling)
Speichern:
Cookie (1 Seite) oder Query-Parameter (2 Seiten)
*/
})

0 comments on commit f3807eb

Please # to comment.