-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
78 lines (76 loc) · 2.78 KB
/
index.php
File metadata and controls
78 lines (76 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!-- validato -->
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/index.css">
<link rel="icon" type="image/x-icon" href="src/icon.ico">
<title>MindWords</title>
</head>
<body>
<nav>
<a class="linkLogo" href="index.php">
<img class="icon" src="src/game.png" alt="Logo MindWords">
<h1>MindWords</h1>
</a>
<a href="doc.php">Tutorial</a>
<div class="NavLeftElem">
<?php
if (isset($_SESSION["UtenteMindWords"])) {
echo '
<a class="linkLogo" href="user.php">
<img class="iconSmall" src="src/user.png" alt="Pagin Utente">
</a>';
}else {
echo '
<a href="register.php">Registrati</a>
<a class="login" href="login.php">Login</a>';
}
?>
</div>
</nav>
<div id="section">
<form action="wordle.php" method="post">
<b>Numero tentativi</b>
<div class="selector">
<p id="wordleDownTrys"> ◁ </p>
<input type="text" name="wordleTrys" id="wordleTrys" value="Normale" readonly>
<p id="wordleUpTrys"> ▷ </p>
</div>
<b>lunghezza sequenza</b>
<div class="selector">
<p id="wordleDownLen"> ◁ </p>
<input type="text" name="wordleLen" id="wordleLen" value="Normale" readonly>
<p id="wordleUpLen"> ▷ </p>
</div>
<hr>
<input class="wordle" type="submit" value="Gioca a Wordle!">
</form>
<form action="mastermind.php" method="post">
<b>Numero tentativi</b>
<div class="selector">
<p id="masterDownTrys"> ◁ </p>
<input type="text" name="masterTrys" id="masterTrys" value="Normale" readonly>
<p id="masterUpTrys"> ▷ </p>
</div>
<b>lunghezza sequenza</b>
<div class="selector">
<p id="masterDownLen"> ◁ </p>
<input type="text" name="masterLen" id="masterLen" value="Normale" readonly>
<p id="masterUpLen"> ▷ </p>
</div>
<hr>
<input class="mastermind" type="submit" value="Gioca a Mastermind!">
</form>
</div>
<?php
include "view/footer.php"
?>
<script src="js/index.js"></script>
</body>
</html>