Showing
4 changed files
with
106 additions
and
41 deletions
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html> | 2 | <html> |
3 | -<head> | 3 | + <head> |
4 | - <meta charset="UTF-8"> | 4 | + <meta charset="UTF-8" /> |
5 | <script src="https://apis.google.com/js/platform.js" async defer></script> | 5 | <script src="https://apis.google.com/js/platform.js" async defer></script> |
6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
7 | + <title>Cafe Map</title> | ||
6 | <meta name="google-signin-client_id" content=<%=client_id%>> | 8 | <meta name="google-signin-client_id" content=<%=client_id%>> |
7 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 9 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
8 | - <title>Cafe Map</title> | 10 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" integrity="undefined" crossorigin="anonymous"> |
9 | - <link rel="stylesheet" href="stylesheets/bootstrap.css"> | ||
10 | <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@700&display=swap" rel="stylesheet"> | 11 | <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@700&display=swap" rel="stylesheet"> |
11 | 12 | ||
12 | <style> | 13 | <style> |
13 | - img{ | 14 | + img { |
14 | max-width: 100%; | 15 | max-width: 100%; |
15 | height: 100% !important; | 16 | height: 100% !important; |
16 | } | 17 | } |
17 | - h1{font-family: 'Noto Sans KR', sans-serif;} | 18 | + h1 { |
18 | - h4{font-family: 'Noto Sans KR', sans-serif;} | 19 | + font-family: "Noto Sans KR", sans-serif; |
19 | - h2{font-family: 'Noto Sans KR', sans-serif;} | 20 | + } |
20 | - h3{font-family: 'Noto Sans KR', sans-serif;} | 21 | + h4 { |
21 | - h5{font-family: 'Noto Sans KR', sans-serif;} | 22 | + font-family: "Noto Sans KR", sans-serif; |
22 | - .center{ | 23 | + } |
24 | + h2 { | ||
25 | + font-family: "Noto Sans KR", sans-serif; | ||
26 | + } | ||
27 | + h3 { | ||
28 | + font-family: "Noto Sans KR", sans-serif; | ||
29 | + } | ||
30 | + h5 { | ||
31 | + font-family: "Noto Sans KR", sans-serif; | ||
32 | + } | ||
33 | + .center { | ||
23 | background-color: #848484; | 34 | background-color: #848484; |
24 | margin-right: 20%; | 35 | margin-right: 20%; |
25 | margin-left: 20%; | 36 | margin-left: 20%; |
26 | margin-top: 5%; | 37 | margin-top: 5%; |
27 | - text-align:center; | 38 | + text-align: center; |
28 | } | 39 | } |
29 | - .g-signin2{ | 40 | + .g-signin2 { |
30 | width: 100%; | 41 | width: 100%; |
31 | } | 42 | } |
32 | 43 | ||
33 | - .g-signin2 > div{ | 44 | + .g-signin2 > div { |
34 | margin: 0 auto; | 45 | margin: 0 auto; |
35 | } | 46 | } |
36 | </style> | 47 | </style> |
48 | + </head> | ||
37 | 49 | ||
50 | + <body> | ||
51 | + <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | ||
52 | + <button | ||
53 | + class="navbar-toggler" | ||
54 | + type="button" | ||
55 | + data-toggle="collapse" | ||
56 | + data-target="#navbarSupportedContent" | ||
57 | + aria-controls="navbarSupportedContent" | ||
58 | + aria-expanded="false" | ||
59 | + aria-label="Toggle navigation" | ||
60 | + > | ||
61 | + <span class="navbar-toggler-icon"></span> | ||
62 | + </button> | ||
63 | + <div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
64 | + <a class="navbar-brand" href="/"><strong>Home</strong></a> | ||
65 | + <ul class="navbar-nav mr-auto mt-2 mt-lg-0"> | ||
66 | + <li class="nav-item active"> | ||
67 | + <a | ||
68 | + class="nav-link" | ||
69 | + style="color: #ffffff" | ||
70 | + href="/" | ||
71 | + onclick="signOut();" | ||
72 | + >Logout<span class="sr-only">(current)</span></a | ||
73 | + > | ||
74 | + </li> | ||
75 | + </ul> | ||
76 | + </div> | ||
77 | + </nav> | ||
78 | + <br /><br /> | ||
79 | + <div class="center"> | ||
80 | + <br /> | ||
81 | + <h5 class="display-5 font-weight-bold" style="color: white"> | ||
82 | + Cafe Recommend | ||
83 | + </h5> | ||
84 | + <br /><br /> | ||
85 | + <div | ||
86 | + class="g-signin2" | ||
87 | + data-onsuccess="onSignIn" | ||
88 | + -theme="light" | ||
89 | + data-width="300" | ||
90 | + data-height="50" | ||
91 | + data-longtitle="true" | ||
92 | + > | ||
93 | + button | ||
94 | + </div> | ||
95 | + <br /><br /> | ||
38 | </head> | 96 | </head> |
39 | 97 | ||
40 | <body> | 98 | <body> |
... | @@ -46,42 +104,35 @@ | ... | @@ -46,42 +104,35 @@ |
46 | <div class="collapse navbar-collapse" id="navbarSupportedContent"> | 104 | <div class="collapse navbar-collapse" id="navbarSupportedContent"> |
47 | <a class="navbar-brand" href="/" style="margin-left: 10px"><strong>Home</strong></a> | 105 | <a class="navbar-brand" href="/" style="margin-left: 10px"><strong>Home</strong></a> |
48 | </div> | 106 | </div> |
49 | -</nav> | 107 | + </body> |
50 | -<br><br> | ||
51 | - <div class ="center" > | ||
52 | - <br> | ||
53 | - <h5 class="display-5 font-weight-bold" style="color: white">Cafe Recommend</h5> | ||
54 | - <br><br> | ||
55 | - <div class="g-signin2" data-onsuccess="onSignIn" -theme="light" data-width="300" data-height="50" data-longtitle="true">button</div> | ||
56 | - <br><br> | ||
57 | - </div> | ||
58 | -</body> | ||
59 | 108 | ||
109 | + <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | ||
110 | + <script | ||
111 | + src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" | ||
112 | + integrity="undefined" | ||
113 | + crossorigin="anonymous" | ||
114 | + ></script> | ||
60 | 115 | ||
61 | -<script> | 116 | + <script> |
62 | function onSignIn(googleUser) { | 117 | function onSignIn(googleUser) { |
63 | var id_token = googleUser.getAuthResponse().id_token; | 118 | var id_token = googleUser.getAuthResponse().id_token; |
64 | var xhr = new XMLHttpRequest(); | 119 | var xhr = new XMLHttpRequest(); |
65 | - xhr.open('POST', '/index'); | 120 | + xhr.open("POST", "/index"); |
66 | - xhr.setRequestHeader('Content-Type', 'application/json'); | 121 | + xhr.setRequestHeader("Content-Type", "application/json"); |
67 | - xhr.onload = function() { | 122 | + xhr.onload = function () { |
68 | - console.log('Signed in as: ' + xhr.responseText); | 123 | + console.log("Signed in as: " + xhr.responseText); |
69 | - if(xhr.responseText == 'success'){ | 124 | + if (xhr.responseText == "success") { |
70 | signOut(); | 125 | signOut(); |
71 | - location.assign('/login'); | 126 | + location.assign("/login"); |
72 | } | 127 | } |
73 | }; | 128 | }; |
74 | - xhr.send(JSON.stringify({token : id_token})); | 129 | + xhr.send(JSON.stringify({ token: id_token })); |
75 | } | 130 | } |
76 | - | ||
77 | function signOut() { | 131 | function signOut() { |
78 | var auth2 = gapi.auth2.getAuthInstance(); | 132 | var auth2 = gapi.auth2.getAuthInstance(); |
79 | auth2.signOut().then(function () { | 133 | auth2.signOut().then(function () { |
80 | console.log("User signed out."); | 134 | console.log("User signed out."); |
81 | }); | 135 | }); |
82 | } | 136 | } |
83 | -</script> | 137 | + </script> |
84 | -<script src="javascripts/bootstrap.js"></script> | ||
85 | -<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | ||
86 | </html> | 138 | </html> |
87 | - | ... | ... |
This diff is collapsed. Click to expand it.
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html> | 2 | <html> |
3 | <head> | 3 | <head> |
4 | - <link rel="stylesheet" href="stylesheets/bootstrap.css" /> | 4 | + <link |
5 | + rel="stylesheet" | ||
6 | + href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" | ||
7 | + integrity="undefined" | ||
8 | + crossorigin="anonymous" | ||
9 | + /> | ||
5 | <title>Cafe Map</title> | 10 | <title>Cafe Map</title> |
6 | <style> | 11 | <style> |
7 | .btn-primary { | 12 | .btn-primary { |
... | @@ -379,8 +384,12 @@ | ... | @@ -379,8 +384,12 @@ |
379 | placeOverlay.setMap(map); | 384 | placeOverlay.setMap(map); |
380 | } | 385 | } |
381 | </script> | 386 | </script> |
382 | - <script src="javascripts/bootstrap.js"></script> | ||
383 | <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | 387 | <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> |
388 | + <script | ||
389 | + src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js" | ||
390 | + integrity="undefined" | ||
391 | + crossorigin="anonymous" | ||
392 | + ></script> | ||
384 | 393 | ||
385 | <!-- 모달 바디 --> | 394 | <!-- 모달 바디 --> |
386 | <div | 395 | <div | ... | ... |
... | @@ -5,7 +5,12 @@ | ... | @@ -5,7 +5,12 @@ |
5 | 5 | ||
6 | <title>Enroll Review</title> | 6 | <title>Enroll Review</title> |
7 | 7 | ||
8 | - <link rel="stylesheet" href="/stylesheets/bootstrap.css"> | 8 | + <link |
9 | + rel="stylesheet" | ||
10 | + href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" | ||
11 | + integrity="undefined" | ||
12 | + crossorigin="anonymous" | ||
13 | + /> | ||
9 | <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@700&display=swap" rel="stylesheet"> | 14 | <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@700&display=swap" rel="stylesheet"> |
10 | 15 | ||
11 | <style> | 16 | <style> |
... | @@ -117,6 +122,6 @@ | ... | @@ -117,6 +122,6 @@ |
117 | </div> | 122 | </div> |
118 | </section> | 123 | </section> |
119 | </body> | 124 | </body> |
120 | -<script src="/javascripts/bootstrap.js"></script> | ||
121 | <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | 125 | <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> |
126 | +<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="undefined" crossorigin="anonymous"></script> | ||
122 | </html> | 127 | </html> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment