mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-07-09 13:27:45 +00:00
58 lines
2.5 KiB
Plaintext
58 lines
2.5 KiB
Plaintext
<%@ page import="uppa.project.pojo.User" %><%--
|
|
Created by IntelliJ IDEA.
|
|
User: kmitr
|
|
Date: 19/03/2024
|
|
Time: 15:47
|
|
To change this template use File | Settings | File Templates.
|
|
--%>
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
|
<html>
|
|
<head>
|
|
<title>New game</title>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<section id="newGame">
|
|
<h1> New Game</h1>
|
|
<div id="settings">
|
|
<form>
|
|
<label for="nbRounds">Nombre de tours</label>
|
|
<input type="number" id="nbRounds" name="nbRounds" min="1" max="50" value="10">
|
|
<label for="timer">Timer</label>
|
|
<input type="number" id="timer" name="timer" min="1" max="10" value="5">
|
|
<label for="nbColors">Nb coleurs</label>
|
|
<input type="range" id="nbColors" name="nbColors" min="1" max="4" value="4">
|
|
<label for="nbValues">Nb valeurs par coleurs</label>
|
|
<input type="range" id="nbValues" name="nbValues" min="5" max="13" value="13">
|
|
</form>
|
|
</div>
|
|
<div id="players-selection">
|
|
<table>
|
|
<tr>
|
|
<th>Nom d'utilisateur</th>
|
|
<th>Nombre de partie jouées</th>
|
|
<th>% Parties Gagnées</th>
|
|
<th>% Clicks corrects</th>
|
|
<th>% Clicks rapides</th>
|
|
<th>Invite</th>
|
|
</tr>
|
|
<% User[] connectedUsers = (User[]) request.getAttribute("connectedUsers"); %>
|
|
<% for (User user : connectedUsers) { %>
|
|
<tr>
|
|
<td><%= user.getUsername() %></td>
|
|
<td><%= user.getNbPlayedGame() %></td>
|
|
<td><%= user.getWinRate() %></td>
|
|
<td><%= user.getRightClickPercentRate()%></td>
|
|
<td><%= user.getRapidClickPercentRate()%></td>
|
|
<td><input type="checkbox" id="<%= user.getUsername()%>-invite" name="<%= user.getUsername()%>-invite"/></td>
|
|
</tr>
|
|
<% } %>
|
|
</table>
|
|
<button id="startGame">Commencer la partie</button>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
<script defer type="text/javascript"> <%@include file="../static/js/new-game.js"%></script>
|
|
</html>
|