-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.html
More file actions
86 lines (77 loc) · 3.33 KB
/
main.html
File metadata and controls
86 lines (77 loc) · 3.33 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
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="ko">
<head>
<title>대포뽑기</title>
<!-- metaTag -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- link -->
<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=Do+Hyeon&display=swap" rel="stylesheet">
<link rel="icon" href="./src/favicon.ico" type="image/x-icon">
<!-- CSS -->
<link rel="stylesheet" href="./main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<!-- JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js"
integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
crossorigin="anonymous"></script>
</head>
<body class="bg-light">
<!-- modal -->
<div class="modal fade" id="modal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="modalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title font-dh" id="modalLabel">설정</h3>
</div>
<form id="option" class="modal-body d-flex flex-column">
<div class="d-flex justify-content-between align-items-center font-dh">
<h5>공 갯수</h5>
<input hidden="hidden">
<input type="text" id="txt">
</div>
<div class="d-flex justify-content-between align-items-center font-dh">
<h5>중복번호 허용</h5>
<input type="checkbox" id="chk1">
<label for="chk1"></label>
</div>
<div class="d-flex justify-content-between align-items-center font-dh">
<h5>전체화면 모드</h5>
<input type="checkbox" id="chk2">
<label for="chk2"></label>
</div>
</form>
<div class="modal-footer">
<label id="lb1" for="txt" class="font-dh">올바른 값을 입력해주세요</label>
<label id="lb2" for="txt" class="font-dh">3~10000 사이의 자연수를 입력해주세요</label>
<button type="button" class="btn btn-primary font-dh" onclick="start()">시작하기</button>
</div>
</div>
</div>
</div>
<!-- contents -->
<div id="outter" class="container d-flex flex-column justify-content-center vh-100">
<div id="field" class="my-wmax my-hmin bd-black">
<canvas id="myCanvas" class="font-dh">현재 웹 브라우저가 canvas요소를 지원하지 않습니다.</canvas>
<img src="./src/hillLeft.png" id="Lhill">
<img src="./src/hillRight.png" id="Rhill">
<img src=".//src/cannon.png" id="cannon">
<button class="launch font-dh" onclick="launch()">발사</button>
<div class="log">
<h3 class="log-title font-dh">최근 나온 번호</h3>
<div id="log" class="log-outter"></div>
</div>
<p onclick="reload()" class="reload font-dh">다시</p>
</div>
</div>
<script src="./main.js"></script>
</body>
</html>