-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgueststart.jsp
More file actions
78 lines (78 loc) · 2.29 KB
/
gueststart.jsp
File metadata and controls
78 lines (78 loc) · 2.29 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
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
// 6자리 난수 생성 (100000~999999)
int randomNum = (int)(Math.random() * 900000) + 100000;
String guestId = "guest" + randomNum;
%>
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}.Box {
border: 3px solid;
padding: 20px 50px 30px 50px;
min-width: 420px;
min-height: 180px;
box-sizing: border-box;
background: #fff;
display: flex;
flex-direction: column;
justify-content: center;
}.Box_title {
text-align: center;
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 25px;
}.start_button_row {
display: flex;
justify-content: flex-end;
}.start_button button {
width: 80px;
height: 80px;
border: 2px solid;
font-weight: bold;
font-size: 1.05rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}.buttons {
position: fixed;
right: 30px;
bottom: 40px;
display: flex;
flex-direction: column;
gap: 18px;
z-index: 100;
}.sidebuttons {
min-width: 80px;
padding: 12px 18px;
border: 2px solid;
font-weight: bold;
cursor: pointer;
}
</style>
</head>
<body>
<div class="Box">
<div class="Box_title">환영합니다, <b><%= guestId %></b></div>
<div class="start_button_row">
<div class="start_button">
<button onclick="location.href='(이곳을 게임실행.jsp로 수정)'">GAME START</button>
</div>
</div>
</div>
<div class="buttons">
<button class="sidebuttons" onclick="location.href='ranking.jsp'">랭킹</button>
<button class="sidebuttons" onclick="location.href='settings.jsp'">설정</button>
</div>
</body>
</html>