Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김재현
/
open-source-project-2017-02
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김정은
2017-12-07 17:55:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d56d94ef75b7751796be99c4c8d3492fa28229b
0d56d94e
1 parent
803b33aa
visualizing our project
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
84 additions
and
120 deletions
public/images/stamp.jpg
public/stylesheets/style.css
public/stylesheets/style.styl
routes/index.js
views/main.ejs
views/map.ejs
views/mybook.ejs
public/images/stamp.jpg
View file @
0d56d94
36.1 KB
|
W:
|
H:
38.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
public/stylesheets/style.css
View file @
0d56d94
@import
url("http://fonts.googleapis.com/earlyaccess/jejumyeongjo.css")
;
@import
url("http://fonts.googleapis.com/earlyaccess/hanna.css")
;
body
,
a
{
color
:
#808080
;
}
ul
.sidenav
{
font-family
:
'Jeju Myeongjo'
,
serif
;
list-style-type
:
none
;
margin
:
0
;
padding
:
0
;
width
:
15%
;
background-color
:
#f1f1f1
;
height
:
100%
;
position
:
fixed
;
overflow
:
auto
;
overflow
:
hidden
;
background-color
:
#fff
;
border-bottom
:
1px
solid
#ddd
;
}
ul
.sidenav
li
{
margin-left
:
20%
;
float
:
left
;
color
:
#000
;
}
ul
.sidenav
li
a
{
display
:
block
;
color
:
#000
;
padding
:
8px
16px
;
text-align
:
center
;
padding
:
14px
16px
;
text-decoration
:
none
;
}
ul
.sidenav
li
a
.active
{
background-color
:
#4caf50
;
color
:
#fff
;
}
ul
.sidenav
li
a
:hover:not
(
.active
)
{
background-color
:
#555
;
ul
.sidenav
li
a
:hover
{
background-color
:
#111
;
color
:
#fff
;
}
#title
{
font-family
:
'Jeju Myeongjo'
,
serif
;
text-align
:
center
;
width
:
100%
;
font-size
:
5
0px
;
font-size
:
2
0px
;
padding-bottom
:
30px
;
}
#content
{
margin-left
:
25%
;
padding
:
10px
16px
;
height
:
100%
;
background-color
:
f5f5f5
;
text-align
:
center
;
}
table
{
width
:
70%
;
font-family
:
'Hanna'
;
border-collapse
:
collapse
;
text-align
:
center
;
vertical-align
:
middle
;
margin
:
0
auto
0
auto
;
}
td
{
vertical-align
:
middle
;
text-align
:
center
;
border
:
1px
solid
#ddd
;
width
:
10%
;
height
:
0%
;
padding-bottom
:
20%
;
width
:
200px
;
height
:
200px
;
background-image
:
url("/images/stamp.jpg")
;
background-repeat
:
no-repeat
;
background-position
:
center
top
;
}
.bold
{
color
:
#
ffc0cb
;
font-size
:
1
00%
;
color
:
#
000
;
font-size
:
1
4pt
;
}
.small
{
color
:
#
80808
0
;
color
:
#
f0
0
;
font-size
:
8pt
;
}
#show
{
width
:
15%
;
height
:
55%
;
display
:
inline-block
;
float
:
left
;
overflow
:
auto
;
position
:
fixed
;
background-color
:
#000
;
font-family
:
'Jeju Myeongjo'
,
serif
;
}
#maintitle
{
text-align
:
center
;
...
...
@@ -77,19 +74,9 @@ td {
color
:
#fff
;
height
:
55%
;
padding
:
8px
16px
;
margin-left
:
15%
;
}
#mynav
{
display
:
block
;
margin-left
:
-250px
;
transition
:
all
0.4s
ease-in-out
0s
;
}
#mynav
.open
{
transition
:
all
0.4s
ease-in-out
0s
;
float
:
left
;
margin-left
:
0px
;
}
#map
{
height
:
400px
;
width
:
100%
;
width
:
60%
;
margin
:
0
auto
0
auto
;
}
...
...
public/stylesheets/style.styl
View file @
0d56d94
body
@import url(http://fonts.googleapis.com/earlyaccess/jejumyeongjo.css);
@import url(http://fonts.googleapis.com/earlyaccess/hanna.css);
body
...
...
@@ -7,74 +9,72 @@ a
color: gray;
ul.sidenav
font-family: 'Jeju Myeongjo', serif;
list-style-type: none;
margin: 0;
padding: 0;
width: 15%;
background-color: #f1f1f1;
height: 100%;
position : fixed;s
overflow : auto;
overflow: hidden;
background-color: white;
border-bottom: 1px solid #ddd;
ul.sidenav li
margin-left : 20%;
float: left;
color : black;
ul.sidenav li a
display: block;
color: #000;
padding: 8px 16px;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
ul.sidenav li a.active
background-color: #4CAF50;
color: white;
ul.sidenav li a:hover
background-color: #111;
color : white;
ul.sidenav li a:hover:not(.active)
background-color: #555;
color: white;
#title
font-family: 'Jeju Myeongjo', serif;
text-align : center;
width : 100%
font-size :
5
0px;
font-size :
2
0px;
padding-bottom : 30px;
#content
margin-left: 25%;
padding: 10px 16px;
height: 100%;
background-color : f5f5f5;
text-align : center;
table
width : 70%
;
font-family: 'Hanna'
;
border-collapse: collapse;
text-align : center;
vertical-align : middle;
margin: 0 auto 0 auto;
td
vertical-align: middle;
text-align : center;
border: 1px solid #ddd;
width :
10%
;
height :
0%
;
padding-bottom: 20%;
width :
200px
;
height :
200px
;
background-image : url("/images/stamp.jpg");
background-repeat: no-repeat;
background-position: center top;
.bold
color :
pin
k;
font-size : 1
00%
;
color :
blac
k;
font-size : 1
4pt
;
.small
color :
grey
;
color :
red
;
font-size : 8pt;
#show
width: 15%;
height : 55%;
display : inline-block;
float : left;
overflow : auto;
position : fixed;
background-color : black;
font-family: 'Jeju Myeongjo', serif;
#maintitle
text-align : center;
...
...
@@ -82,17 +82,8 @@ td
color : white;
height : 55%;
padding: 8px 16px;
margin-left : 15%;
#mynav
display: block;
margin-left: -250px;
transition:all 0.4s ease-in-out 0s;
#mynav.open
transition:all 0.4s ease-in-out 0s;
float:left;
margin-left : 0px;
#map
height: 400px;
width: 100%;
width: 60%;
margin: 0 auto 0 auto;
...
...
routes/index.js
View file @
0d56d94
...
...
@@ -4,8 +4,8 @@ var router = express.Router();
var
connection
=
mysql
.
createConnection
({
host
:
'localhost'
,
user
:
'
admin
'
,
password
:
'
admin
'
,
user
:
'
root
'
,
password
:
'
qmfkdnsl
'
,
database
:
'ossprojectdb'
});
...
...
views/main.ejs
View file @
0d56d94
...
...
@@ -16,13 +16,6 @@
$
(
'#show'
).
click
(
function
()
{
//$('.sidenav').slideToggle("fast");
$this
=
$
(
this
);
$nav
=
$
(
'#mynav'
);
$nav
.
toggleClass
(
'open'
);
});
});
...
...
@@ -31,8 +24,8 @@
<div
id =
"show"
>
clickmenu
</div>
<div
id =
"maintitle"
>
맛집견문록
</div>
<div
id =
"maintitle"
>
<image
src =
'/images/title.png'
/>
</div>
<div
id =
"mynav"
>
<ul
class=
"sidenav"
>
...
...
@@ -46,7 +39,6 @@
<div
id=
"title"
></div>
<div
id =
"content"
>
<h1>
<
%= title %>
</h1>
...
...
views/map.ejs
View file @
0d56d94
...
...
@@ -103,7 +103,7 @@
'<h1 id="firstHeading" class="firstHeading">'
+
place
.
name
+
'</h1>'
+
'<div id="bodyContent">'
+
'<p>주소: '
+
place
.
vicinity
+
'<br/>'
+
'<button id="'
+
place
.
id
+
'" name="'
+
place
.
name
+
'" address="'
+
place
.
vicinity
+
'" onclick="addShop(this)">'
+
'<button id="'
+
place
.
id
+
'" name="'
+
place
.
name
+
'" address="'
+
place
.
vicinity
+
'" onclick="addShop(this)"
>'
+
'표시하기</a> '
+
'</p>'
+
'</div>'
+
...
...
@@ -123,10 +123,13 @@
google
.
maps
.
event
.
addListener
(
marker1
,
'click'
,
function
(
e
)
{
;
var
infowindow
=
new
google
.
maps
.
InfoWindow
({
content
:
contentString
,
maxWidth
:
300
});
$
(
":button."
+
place
.
name
).
css
(
"color"
,
"red"
)
infowindow
.
open
(
map
,
this
);
});
...
...
@@ -170,8 +173,7 @@
</script>
<div
id =
"show"
>
clickmenu
</div>
<div
id =
"maintitle"
>
맛집견문록
</div>
<div
id =
"maintitle"
><image
src =
'/images/title.png'
/></div>
<div
id =
"mynav"
>
<ul
class=
"sidenav"
>
...
...
@@ -182,9 +184,7 @@
</div>
<div
id =
"title"
>
</div>
<div
id =
"content"
>
<div
id =
"content"
><br/>
<div
id=
"map"
></div>
<div
id=
"popup"
></div>
<!-- <div id="form">
...
...
views/mybook.ejs
View file @
0d56d94
...
...
@@ -9,15 +9,7 @@
<script>
$
(
document
).
ready
(
function
()
{
//$('.sidenav').hide();
$
(
'#show'
).
click
(
function
()
{
//$('.sidenav').slideToggle("fast");
$this
=
$
(
this
);
$nav
=
$
(
'#mynav'
);
$nav
.
toggleClass
(
'open'
);
});
});
...
...
@@ -25,7 +17,7 @@
<div
id =
"show"
>
clickmenu
</div>
<div
id =
"maintitle"
><image
src =
'/images/title.png'
/></div>
<div
id =
"mynav"
>
...
...
@@ -38,14 +30,16 @@
</div>
<div
id =
"content"
>
<br/>
<div
id =
"title"
>
ㅇㅇㅇ님의 맛집 견문록
<br/>
당신의 견문록 스탬프는
<
%=rows.length%>개 입니다
<br/>
</div>
<div
id =
"content"
>
<table
border=
"1"
>
...
...
@@ -57,24 +51,24 @@
<
%if(i==0){ %>
<tr>
<td><p
class=
"bold"
>
<
%=i%>
:a
<
%=oneItem.title%>
</p>
<td><p
class=
"bold"
>
<
%=i%>
<
%=oneItem.title%>
</p>
<p
class=
"small"
>
<
%=oneItem.address%>
</p></td>
<
%} else if (i%3==0){%>
</tr>
<tr>
<td><p
class=
"bold"
>
<
%=i%>
:b
<
%=oneItem.title%>
</p>
<td><p
class=
"bold"
>
<
%=i%>
<
%=oneItem.title%>
</p>
<p
class=
"small"
>
<
%=oneItem.address%>
</p></td>
<
%}else if(i%3!=0
&&
i!=rows.length-1){%>
<td><p
class=
"bold"
>
<
%=i%>
:c
<
%=oneItem.title%>
</p>
<td><p
class=
"bold"
>
<
%=i%>
<
%=oneItem.title%>
</p>
<p
class=
"small"
>
<
%=oneItem.address%>
</p></td>
<
%}else{%>
<td><p
class=
"bold"
>
<
%=i%>
:c
<
%=oneItem.title%>
</p>
<td><p
class=
"bold"
>
<
%=i%>
<
%=oneItem.title%>
</p>
<p
class=
"small"
>
<
%=oneItem.address%>
</p></td></tr>
<
%}}%>
...
...
Please
register
or
login
to post a comment