-
Notifications
You must be signed in to change notification settings - Fork 0
/
inscription.html
27 lines (27 loc) · 974 Bytes
/
inscription.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://code.jquery.com/jquery-1.11.1.js"></script>
</head>
<body>
<div style="margin-left: 50%">
<label for="userName">Insert your name</label>
<input type="text" id="userName" name="userName" required >
<button id="submit" type="submit">Ok</button>
<script>
$( document ).ready(function() {
$('#submit').on('click', function(){
localStorage.setItem('winPlayer1', document.getElementById('userName').value);
console.log(document.getElementById('userName').value);
//window.location.href = "/";
});
});
</script>
</div>
<script src="/socket.io/socket.io.js"></script>
</body>
</html>