-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
219 lines (178 loc) ยท 8.39 KB
/
index.php
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?php
$mysql_host = "localhost";
$mysql_user="hoppydream";
$mysql_passwd="xTGRThJqGgFJ2fNh";
$mysql_db="hoppydream";
$conn = mysqli_connect($mysql_host, $mysql_user,$mysql_passwd,$mysql_db);
mysqli_set_charset($conn,"utf8");
if(!$conn){
die("์ฐ๊ฒฐ ์คํจ : ".mysqli_connect_error());
}
?><script> console.log('์ฐ๊ฒฐ์ฑ๊ณต')</script>
<?php $sql = "SELECT * FROM review";
$result = mysqli_query($conn,$sql);?>
<!--db์ฐ๊ฒฐ ------------------------------------------------------------------------------------------->
<html>
<head>
<title>HOPPY DREAM</title>
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<!-- CSS only -->
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- JS, Popper.js, and jQuery -->
<script src="https://cdn.rawgit.com/nnattawat/flip/master/dist/jquery.flip.min.js">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/intro.css">
<style>
.flip-card {
background-color: transparent;
perspective: 1000px; /* Remove this if you don't want the 3D effect */
}
.flip-card-inner {
transition: transform 0.8s;
transform-style: preserve-3d;
}
.flip-card:active .flip-card-inner {
transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
-webkit-backface-visibility: hidden; /* Safari */
backface-visibility: hidden;
}
.flip-card-front {
background-color: #bbb;
color: black;
}
.flip-card-back {
background-color: dodgerblue;
transform: rotateY(180deg);
}
</style>
</head>
<body style="text-align : center;">
<div class="menu">
<a href="index.php">
<!-- <div class="title">H<span id="cc">O</span>P<span id="cc">P</span>Y<span id="cc"> D</span>R<span
id="cc">E</span>A<span id="cc">M</span></div> -->
<img src="img/logo.png"style = "width: 15%;
margin: 1% auto;">
</a>
<a href="#map"><button class="now menubtn">ํํฉ</button></a>
<a href="#kategory"><button class="kate menubtn">์นดํ
๊ณ ๋ฆฌ</button></a>
<a href="#review1"><button class="review menubtn">ํ๊ธฐ</button></a>
</div>
<br />
<div class="intro" id="intro">
<img src="img/bgbgbg.png" class="introbg" alt="introbg">
<img src="img/hoppydream1.png" class="hoppydream1 front" alt="hoppydream1">
<img src="img/card1.png" class="card1 front" alt="card1">
<img src="img/howto1.png" class="howto1 front" alt="howto1">
<script>
$(".hoppydream1").click(function(event) {
if( $(".hoppydream1").attr("src")=="img/hoppydream1.png"){
$(".hoppydream1") .fadeOut('fast', function () {
$(".hoppydream1").attr('src', 'img/hoppydream2.png');
$(".hoppydream1").fadeIn('fast');
});
}
else if( $(".hoppydream1").attr("src")=="img/hoppydream2.png"){
$(".hoppydream1") .fadeOut('fast', function () {
$(".hoppydream1").attr('src', 'img/hoppydream1.png');
$(".hoppydream1").fadeIn('fast');
});
}
});
$(".card1").click(function(event) {
if( $(".card1").attr("src")=="img/card1.png"){
$(".card1") .fadeOut('fast', function () {
$(".card1").attr('src', 'img/card2.png');
$(".card1").fadeIn('fast');
});
}
else if( $(".card1").attr("src")=="img/card2.png"){
$(".card1") .fadeOut('fast', function () {
$(".card1").attr('src', 'img/card1.png');
$(".card1").fadeIn('fast');
});
}
});
$(".howto1").click(function(event) {
if( $(".howto1").attr("src")=="img/howto1.png"){
$(".howto1") .fadeOut('fast', function () {
$(".howto1").attr('src', 'img/howto2.png');
$(".howto1").fadeIn('fast');
});
}
else if( $(".howto1").attr("src")=="img/howto2.png"){
$(".howto1") .fadeOut('fast', function () {
$(".howto1").attr('src', 'img/howto1.png');
$(".howto1").fadeIn('fast');
});
}
});
</script>
</div>
<div class="map" id="map1"><br><br><br><br>
<div class="maintitle">ํํฉ</div>
<div class="subtitle">์ฃผ๋ณ์ ์๋ ๊ฐ๋งน์ ์์น๋ฅผ ์ง๋์์ ํ์ธํด๋ณด์ธ์!</div>
<div class="mapp" id="mapp">
<div id="map" style="width:80%; height:70%; margin: auto;"></div>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=e38c15b1993e4d2bd6c705b65a34c6fd"></script>
<script type="text/javascript" src="marker.js"></script>
</div>
</div>
<div class="kategory" id="kategory">
<div class="maintitle">์นดํ
๊ณ ๋ฆฌ</div>
<div class="subtitle">์ง์ญ๊ณผ ์
์ข
์ ์ ํํ์ฌ ๋ง์์ ๋๋ ๊ฐ๋งน์ ์ ์ฐพ์๋ณด์ธ์!</div>
<iframe src="categorytest.php"id="if_iframe" class = "cat_iframe"onload="calcHeight();" name="cateframe" title="์นดํ
๊ณ ๋ฆฌ" frameborder="0" scrolling="no" style="overflow-x:hidden; overflow:auto; width:100%; min-height:300px;"></iframe>
</div><br>
<div class="review1" id="review1">
<div class="maintitle">ํ๊ธฐ</div>
<div class="subtitle">์ฃผ๋ณ์ ์๋ ๊ฐ๋งน์ ์์น๋ฅผ ์ง๋์์ ํ์ธํด๋ณด์ธ์!</div>
<iframe src="bootdiv.php"id="if_iframe1" class = "rev_iframe"onload="calcHeight1();" name="WrittenPublic" title="๋ฆฌ๋ทฐ" frameborder="0" scrolling="no" style="overflow-x:hidden; overflow:auto; width:100%; min-height:300px;"></iframe>
<!--onload="this.style.height=this.contentWindow.document.body.scrollHeight+30;"-->
</div>
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<script data-require="[email protected]" data-semver="2.0.3" src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
<script> $(document).ready(function(){ $('#input_text').keyup(function(){ if ($(this).val().length > $(this).attr('maxlength')) { alert('์ ํ๊ธธ์ด ์ด๊ณผ'); $(this).val($(this).val().substr(0, $(this).attr('maxlength'))); } }); }); </script>
<script type="text/javascript">
//<![CDATA[
function calcHeight(){
//find the height of the internal page
var the_height=
document.getElementById('if_iframe').contentWindow.
document.body.scrollHeight;
//change the height of the iframe
document.getElementById('if_iframe').height=
the_height;
//document.getElementById('the_iframe').scrolling = "no";
document.getElementById('if_iframe').style.overflow = "hidden";
}function calcHeight1(){
var the_height1=
document.getElementById('if_iframe1').contentWindow.
document.body.scrollHeight;
//change the height of the iframe
document.getElementById('if_iframe1').height=
the_height1;
//document.getElementById('the_iframe').scrolling = "no";
document.getElementById('if_iframe1').style.overflow = "hidden";
}
//
</script>
<script src="scroll.js"></script>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</body>
</html>