-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheckBox.html
127 lines (112 loc) · 5.64 KB
/
checkBox.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="ko">
<head>
<link rel="stylesheet" href="css/boxStyle.css" />
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="css/button.css" />
<link rel="stylesheet" href="css/component.css" />
<link href="https://fonts.googleapis.com/css2?family=Sunflower:wght@300&display=swap"
rel="stylesheet" />
</head>
<body>
<div id="grid">
<div class="nav">
<button id="home" type="button" class="home">
<svg xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-menu-2"
width="44"
height="44"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="#E43B3C"
fill="none"
stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" />
<line x1="4" y1="6" x2="20" y2="6" />
<line x1="4" y1="12" x2="20" y2="12" />
<line x1="4" y1="18" x2="20" y2="18" />
</svg>
</button>
</div>
<div class="menu-list">
<ul>
<li>
<input type="checkbox" id="select0" class="checkbox" />
<label class="input-label checkbox" for="select0"><img src="../FoodSelectApp/picture/Carrot_icon-icons.com_68773.jpg" />한식</label>
</li>
<li>
<input type="checkbox" id="select1" class="checkbox" />
<label class="input-label checkbox" for="select1"><img src="../FoodSelectApp/picture/Carrot_icon-icons.com_68773.jpg" />분식</label>
</li>
<li>
<input type="checkbox" id="select2" class="checkbox" />
<label class="input-label checkbox" for="select2"><img src="../FoodSelectApp/picture/Carrot_icon-icons.com_68773.jpg" />중식</label>
</li>
<li>
<input type="checkbox" id="select3" class="checkbox" />
<label class="input-label checkbox" for="select3"><img src="../FoodSelectApp/picture/Carrot_icon-icons.com_68773.jpg" />일식</label>
</li>
<li>
<input type="checkbox" id="select4" class="checkbox" />
<label class="input-label checkbox" for="select4"><img src="../FoodSelectApp/picture/Carrot_icon-icons.com_68773.jpg" />양식</label>
</li>
</ul>
</div>
<div class="next">
<ul>
<button id="next" type="button" class="btn btn-primary btn-lg outline">
Next
</button>
</ul>
</div>
</div>
</body>
<!-- Copyright (c) 2020 by design8383 (https://codepen.io/design8383/pen/arHeC)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
</html>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.0.1/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/8.0.1/firebase-analytics.js"></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyDktxOfGtDkwoie_jZbsqZlUbUZJqArK7Y",
authDomain: "food-e0bbf.firebaseapp.com",
databaseURL: "https://food-e0bbf.firebaseio.com",
projectId: "food-e0bbf",
storageBucket: "food-e0bbf.appspot.com",
messagingSenderId: "893921199090",
appId: "1:893921199090:web:b7785eb7de14a353c7a16b",
measurementId: "G-VQ4JL20NDF"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
</script>
<script>
var nextButton = document.getElementById('next');
var arrChk = new Array();
var num = '';
arrChk[0] = document.getElementById('select0');
arrChk[1] = document.getElementById('select1');
arrChk[2] = document.getElementById('select2');
arrChk[3] = document.getElementById('select3');
arrChk[4] = document.getElementById('select4');
function changepage() {
for (var i = 0; i < 5; i++) {
if (arrChk[i].checked) {
var n = i + 1;
num = num + n;
} else continue;
}
window.location.href = 'random.html?' + num;
}
nextButton.addEventListener('click', changepage);
</script>