윤혜원

index.ejs 템플릿 적용하기 성공!

Showing 62 changed files with 504 additions and 3 deletions
This diff is collapsed. Click to expand it.
...@@ -42,7 +42,7 @@ app.use(express.static(path.join(__dirname, 'public'))); ...@@ -42,7 +42,7 @@ app.use(express.static(path.join(__dirname, 'public')));
42 connection = mysql.createConnection({ 42 connection = mysql.createConnection({
43 host : 'localhost', 43 host : 'localhost',
44 user : 'root', 44 user : 'root',
45 - password : '6377', 45 + password : 'password',
46 port : 3306, 46 port : 3306,
47 database : 'YTMT' 47 database : 'YTMT'
48 }); 48 });
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 +/*
2 + * Nivo Lightbox Default Theme v1.0
3 + * http://dev7studios.com/nivo-lightbox
4 + *
5 + * Copyright 2013, Dev7studios
6 + * Free to use and abuse under the MIT license.
7 + * http://www.opensource.org/licenses/mit-license.php
8 + */
9 +
10 + .nivo-lightbox-theme-default * {
11 + -webkit-box-sizing: initial !important;
12 + -moz-box-sizing: initial !important;
13 + box-sizing: initial !important;
14 + }
15 +.nivo-lightbox-theme-default.nivo-lightbox-overlay {
16 + background: #666;
17 + background: rgba(0,0,0,0.6);
18 +}
19 +.nivo-lightbox-theme-default .nivo-lightbox-content.nivo-lightbox-loading { background: url(loading.gif) no-repeat 50% 50%; }
20 +
21 +.nivo-lightbox-theme-default .nivo-lightbox-nav {
22 + top: 10%;
23 + width: 8%;
24 + height: 80%;
25 + text-indent: -9999px;
26 + background-repeat: no-repeat;
27 + background-position: 50% 50%;
28 + opacity: 0.5;
29 +}
30 +.nivo-lightbox-theme-default .nivo-lightbox-nav:hover {
31 + opacity: 1;
32 + background-color: transparent;
33 +}
34 +.nivo-lightbox-theme-default .nivo-lightbox-prev {
35 + background-image: url(prev.png);
36 + border-radius: 0 3px 3px 0;
37 +}
38 +.nivo-lightbox-theme-default .nivo-lightbox-next {
39 + background-image: url(next.png);
40 + border-radius: 3px 0 0 3px;
41 +}
42 +
43 +.nivo-lightbox-theme-default .nivo-lightbox-close {
44 + display: block;
45 + background: url(close.png) no-repeat 5px 5px;
46 + width: 16px;
47 + height: 16px;
48 + text-indent: -9999px;
49 + padding: 5px;
50 + opacity: 0.5;
51 +}
52 +.nivo-lightbox-theme-default .nivo-lightbox-close:hover { opacity: 1; }
53 +
54 +.nivo-lightbox-theme-default .nivo-lightbox-title-wrap { bottom: -7%; }
55 +.nivo-lightbox-theme-default .nivo-lightbox-title {
56 + font: 14px/20px 'Helvetica Neue', Helvetica, Arial, sans-serif;
57 + font-style: normal;
58 + font-weight: normal;
59 + background: #000;
60 + color: #fff;
61 + padding: 7px 15px;
62 + border-radius: 30px;
63 +}
64 +
65 +.nivo-lightbox-theme-default .nivo-lightbox-image img {
66 + background: #fff;
67 + -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.4);
68 + -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.4);
69 + box-shadow: 0px 1px 1px rgba(0,0,0,0.4);
70 +}
71 +.nivo-lightbox-theme-default .nivo-lightbox-ajax,
72 +.nivo-lightbox-theme-default .nivo-lightbox-inline {
73 + background: #fff;
74 + padding: 40px;
75 + -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.4);
76 + -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.4);
77 + box-shadow: 0px 1px 1px rgba(0,0,0,0.4);
78 +}
79 +
80 +@media (-webkit-min-device-pixel-ratio: 1.3),
81 + (-o-min-device-pixel-ratio: 2.6/2),
82 + (min--moz-device-pixel-ratio: 1.3),
83 + (min-device-pixel-ratio: 1.3),
84 + (min-resolution: 1.3dppx) {
85 +
86 + .nivo-lightbox-theme-default .nivo-lightbox-content.nivo-lightbox-loading {
87 + background-image: url(loading@2x.gif);
88 + background-size: 32px 32px;
89 + }
90 + .nivo-lightbox-theme-default .nivo-lightbox-prev {
91 + background-image: url(prev@2x.png);
92 + background-size: 48px 48px;
93 + }
94 + .nivo-lightbox-theme-default .nivo-lightbox-next {
95 + background-image: url(next@2x.png);
96 + background-size: 48px 48px;
97 + }
98 + .nivo-lightbox-theme-default .nivo-lightbox-close {
99 + background-image: url(close@2x.png);
100 + background-size: 16px 16px;
101 + }
102 +
103 +}
...\ No newline at end of file ...\ No newline at end of file
1 +/*
2 + * Nivo Lightbox v1.2.0
3 + * http://dev7studios.com/nivo-lightbox
4 + *
5 + * Copyright 2013, Dev7studios
6 + * Free to use and abuse under the MIT license.
7 + * http://www.opensource.org/licenses/mit-license.php
8 + */
9 +
10 +.nivo-lightbox-overlay {
11 + position: fixed;
12 + top: 0;
13 + left: 0;
14 + z-index: 99998;
15 + width: 100%;
16 + height: 100%;
17 + overflow: hidden;
18 + visibility: hidden;
19 + opacity: 0;
20 + -webkit-box-sizing: border-box;
21 + -moz-box-sizing: border-box;
22 + box-sizing: border-box;
23 +}
24 +.nivo-lightbox-overlay.nivo-lightbox-open {
25 + visibility: visible;
26 + opacity: 1;
27 +}
28 +.nivo-lightbox-wrap {
29 + position: absolute;
30 + top: 10%;
31 + bottom: 10%;
32 + left: 10%;
33 + right: 10%;
34 +}
35 +.nivo-lightbox-content {
36 + width: 100%;
37 + height: 100%;
38 +}
39 +.nivo-lightbox-title-wrap {
40 + position: absolute;
41 + bottom: 0;
42 + left: 0;
43 + width: 100%;
44 + z-index: 99999;
45 + text-align: center;
46 +}
47 +.nivo-lightbox-nav { display: none; }
48 +.nivo-lightbox-prev {
49 + position: absolute;
50 + top: 50%;
51 + left: 0;
52 +}
53 +.nivo-lightbox-next {
54 + position: absolute;
55 + top: 50%;
56 + right: 0;
57 +}
58 +.nivo-lightbox-close {
59 + position: absolute;
60 + top: 2%;
61 + right: 2%;
62 +}
63 +
64 +.nivo-lightbox-image { text-align: center; }
65 +.nivo-lightbox-image img {
66 + max-width: 100%;
67 + max-height: 100%;
68 + width: auto;
69 + height: auto;
70 + vertical-align: middle;
71 +}
72 +.nivo-lightbox-content iframe {
73 + width: 100%;
74 + height: 100%;
75 +}
76 +.nivo-lightbox-inline,
77 +.nivo-lightbox-ajax {
78 + max-height: 100%;
79 + overflow: auto;
80 + -webkit-box-sizing: border-box;
81 + -moz-box-sizing: border-box;
82 + box-sizing: border-box;
83 + /* https://bugzilla.mozilla.org/show_bug.cgi?id=308801 */
84 +}
85 +.nivo-lightbox-error {
86 + display: table;
87 + text-align: center;
88 + width: 100%;
89 + height: 100%;
90 + color: #fff;
91 + text-shadow: 0 1px 1px #000;
92 +}
93 +.nivo-lightbox-error p {
94 + display: table-cell;
95 + vertical-align: middle;
96 +}
97 +
98 +/* Effects
99 + **********************************************/
100 +.nivo-lightbox-notouch .nivo-lightbox-effect-fade,
101 +.nivo-lightbox-notouch .nivo-lightbox-effect-fadeScale,
102 +.nivo-lightbox-notouch .nivo-lightbox-effect-slideLeft,
103 +.nivo-lightbox-notouch .nivo-lightbox-effect-slideRight,
104 +.nivo-lightbox-notouch .nivo-lightbox-effect-slideUp,
105 +.nivo-lightbox-notouch .nivo-lightbox-effect-slideDown,
106 +.nivo-lightbox-notouch .nivo-lightbox-effect-fall {
107 + -webkit-transition: all 0.2s ease-in-out;
108 + -moz-transition: all 0.2s ease-in-out;
109 + -ms-transition: all 0.2s ease-in-out;
110 + -o-transition: all 0.2s ease-in-out;
111 + transition: all 0.2s ease-in-out;
112 +}
113 +
114 +/* fadeScale */
115 +.nivo-lightbox-effect-fadeScale .nivo-lightbox-wrap {
116 + -webkit-transition: all 0.3s;
117 + -moz-transition: all 0.3s;
118 + -ms-transition: all 0.3s;
119 + -o-transition: all 0.3s;
120 + transition: all 0.3s;
121 + -webkit-transform: scale(0.7);
122 + -moz-transform: scale(0.7);
123 + -ms-transform: scale(0.7);
124 + transform: scale(0.7);
125 +}
126 +.nivo-lightbox-effect-fadeScale.nivo-lightbox-open .nivo-lightbox-wrap {
127 + -webkit-transform: scale(1);
128 + -moz-transform: scale(1);
129 + -ms-transform: scale(1);
130 + transform: scale(1);
131 +}
132 +
133 +/* slideLeft / slideRight / slideUp / slideDown */
134 +.nivo-lightbox-effect-slideLeft .nivo-lightbox-wrap,
135 +.nivo-lightbox-effect-slideRight .nivo-lightbox-wrap,
136 +.nivo-lightbox-effect-slideUp .nivo-lightbox-wrap,
137 +.nivo-lightbox-effect-slideDown .nivo-lightbox-wrap {
138 + -webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
139 + -moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
140 + -ms-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
141 + -o-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
142 + transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
143 +}
144 +.nivo-lightbox-effect-slideLeft .nivo-lightbox-wrap {
145 + -webkit-transform: translateX(-10%);
146 + -moz-transform: translateX(-10%);
147 + -ms-transform: translateX(-10%);
148 + transform: translateX(-10%);
149 +}
150 +.nivo-lightbox-effect-slideRight .nivo-lightbox-wrap {
151 + -webkit-transform: translateX(10%);
152 + -moz-transform: translateX(10%);
153 + -ms-transform: translateX(10%);
154 + transform: translateX(10%);
155 +}
156 +.nivo-lightbox-effect-slideLeft.nivo-lightbox-open .nivo-lightbox-wrap,
157 +.nivo-lightbox-effect-slideRight.nivo-lightbox-open .nivo-lightbox-wrap {
158 + -webkit-transform: translateX(0);
159 + -moz-transform: translateX(0);
160 + -ms-transform: translateX(0);
161 + transform: translateX(0);
162 +}
163 +.nivo-lightbox-effect-slideDown .nivo-lightbox-wrap {
164 + -webkit-transform: translateY(-10%);
165 + -moz-transform: translateY(-10%);
166 + -ms-transform: translateY(-10%);
167 + transform: translateY(-10%);
168 +}
169 +.nivo-lightbox-effect-slideUp .nivo-lightbox-wrap {
170 + -webkit-transform: translateY(10%);
171 + -moz-transform: translateY(10%);
172 + -ms-transform: translateY(10%);
173 + transform: translateY(10%);
174 +}
175 +.nivo-lightbox-effect-slideUp.nivo-lightbox-open .nivo-lightbox-wrap,
176 +.nivo-lightbox-effect-slideDown.nivo-lightbox-open .nivo-lightbox-wrap {
177 + -webkit-transform: translateY(0);
178 + -moz-transform: translateY(0);
179 + -ms-transform: translateY(0);
180 + transform: translateY(0);
181 +}
182 +
183 +/* fall */
184 +.nivo-lightbox-body-effect-fall .nivo-lightbox-effect-fall {
185 + -webkit-perspective: 1000px;
186 + -moz-perspective: 1000px;
187 + perspective: 1000px;
188 +}
189 +.nivo-lightbox-effect-fall .nivo-lightbox-wrap {
190 + -webkit-transition: all 0.3s ease-out;
191 + -moz-transition: all 0.3s ease-out;
192 + -ms-transition: all 0.3s ease-out;
193 + -o-transition: all 0.3s ease-out;
194 + transition: all 0.3s ease-out;
195 + -webkit-transform: translateZ(300px);
196 + -moz-transform: translateZ(300px);
197 + -ms-transform: translateZ(300px);
198 + transform: translateZ(300px);
199 +}
200 +.nivo-lightbox-effect-fall.nivo-lightbox-open .nivo-lightbox-wrap {
201 + -webkit-transform: translateZ(0);
202 + -moz-transform: translateZ(0);
203 + -ms-transform: translateZ(0);
204 + transform: translateZ(0);
205 +}
This diff is collapsed. Click to expand it.
1 +body {
2 + padding: 50px;
3 + font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
4 +}
5 +
6 +a {
7 + color: #00B7FF;
8 +}
...@@ -231,6 +231,7 @@ function getAllToons() { ...@@ -231,6 +231,7 @@ function getAllToons() {
231 }); 231 });
232 }); 232 });
233 233
234 +//네이버 웹툰
234 var allWeeklyToonsUrl = "http://comic.naver.com/webtoon/weekday.nhn"; 235 var allWeeklyToonsUrl = "http://comic.naver.com/webtoon/weekday.nhn";
235 request(allWeeklyToonsUrl,function (err, res, html) { 236 request(allWeeklyToonsUrl,function (err, res, html) {
236 if(!err){ 237 if(!err){
...@@ -263,7 +264,7 @@ function getAllToons() { ...@@ -263,7 +264,7 @@ function getAllToons() {
263 if (err) { 264 if (err) {
264 console.log("웹툰 DB 에러 : " + err); 265 console.log("웹툰 DB 에러 : " + err);
265 } else { 266 } else {
266 - console.log("웹툰 DB처리 완료!"); 267 + // console.log("웹툰 DB처리 완료!");
267 } 268 }
268 }); 269 });
269 //}); 270 //});
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 +$(function() {
2 +
3 + $("input,textarea").jqBootstrapValidation({
4 + preventSubmit: true,
5 + submitError: function($form, event, errors) {
6 + // additional error messages or events
7 + },
8 + submitSuccess: function($form, event) {
9 + event.preventDefault(); // prevent default submit behaviour
10 + // get values from FORM
11 + var name = $("input#name").val();
12 + var email = $("input#email").val();
13 + var message = $("textarea#message").val();
14 + var firstName = name; // For Success/Failure Message
15 + // Check for white space in name for Success/Fail message
16 + if (firstName.indexOf(' ') >= 0) {
17 + firstName = name.split(' ').slice(0, -1).join(' ');
18 + }
19 + $.ajax({
20 + url: "././mail/contact_me.php",
21 + type: "POST",
22 + data: {
23 + name: name,
24 + email: email,
25 + message: message
26 + },
27 + cache: false,
28 + success: function() {
29 + // Success message
30 + $('#success').html("<div class='alert alert-success'>");
31 + $('#success > .alert-success').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
32 + .append("</button>");
33 + $('#success > .alert-success')
34 + .append("<strong>Your message has been sent. </strong>");
35 + $('#success > .alert-success')
36 + .append('</div>');
37 +
38 + //clear all fields
39 + $('#contactForm').trigger("reset");
40 + },
41 + error: function() {
42 + // Fail message
43 + $('#success').html("<div class='alert alert-danger'>");
44 + $('#success > .alert-danger').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
45 + .append("</button>");
46 + $('#success > .alert-danger').append("<strong>Sorry " + firstName + ", it seems that my mail server is not responding. Please try again later!");
47 + $('#success > .alert-danger').append('</div>');
48 + //clear all fields
49 + $('#contactForm').trigger("reset");
50 + },
51 + })
52 + },
53 + filter: function() {
54 + return $(this).is(":visible");
55 + },
56 + });
57 +
58 + $("a[data-toggle=\"tab\"]").click(function(e) {
59 + e.preventDefault();
60 + $(this).tab("show");
61 + });
62 +});
63 +
64 +
65 +/*When clicking on Full hide fail/success boxes */
66 +$('#name').focus(function() {
67 + $('#success').html('');
68 +});
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 +
2 +function main() {
3 +
4 +(function () {
5 + 'use strict';
6 +
7 + $('a.page-scroll').click(function() {
8 + if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
9 + var target = $(this.hash);
10 + target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
11 + if (target.length) {
12 + $('html,body').animate({
13 + scrollTop: target.offset().top - 40
14 + }, 900);
15 + return false;
16 + }
17 + }
18 + });
19 +
20 +
21 + // Show Menu on Book
22 + $(window).bind('scroll', function() {
23 + var navHeight = $(window).height() - 500;
24 + if ($(window).scrollTop() > navHeight) {
25 + $('.navbar-default').addClass('on');
26 + } else {
27 + $('.navbar-default').removeClass('on');
28 + }
29 + });
30 +
31 + $('body').scrollspy({
32 + target: '.navbar-default',
33 + offset: 80
34 + });
35 +
36 + // Hide nav on click
37 + $(".navbar-nav li a").click(function (event) {
38 + // check if window is small enough so dropdown is created
39 + var toggle = $(".navbar-toggle").is(":visible");
40 + if (toggle) {
41 + $(".navbar-collapse").collapse('hide');
42 + }
43 + });
44 +
45 + // Portfolio isotope filter
46 + $(window).load(function() {
47 + var $container = $('.portfolio-items');
48 + $container.isotope({
49 + filter: '*',
50 + animationOptions: {
51 + duration: 750,
52 + easing: 'linear',
53 + queue: false
54 + }
55 + });
56 + $('.cat a').click(function() {
57 + $('.cat .active').removeClass('active');
58 + $(this).addClass('active');
59 + var selector = $(this).attr('data-filter');
60 + $container.isotope({
61 + filter: selector,
62 + animationOptions: {
63 + duration: 750,
64 + easing: 'linear',
65 + queue: false
66 + }
67 + });
68 + return false;
69 + });
70 +
71 + });
72 +
73 + // Nivo Lightbox
74 + $('.portfolio-item a').nivoLightbox({
75 + effect: 'slideDown',
76 + keyboardNav: true,
77 + });
78 +
79 +}());
80 +
81 +
82 +}
83 +main();
...\ No newline at end of file ...\ No newline at end of file
...@@ -2,7 +2,39 @@ ...@@ -2,7 +2,39 @@
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>내툰</title> 4 <title>내툰</title>
5 - <link rel='stylesheet' href='/stylesheets/style.css' /> 5 + <link rel='stylesheet' href='/stylesheets/style2.css' />
6 + <meta charset="utf-8">
7 + <meta name="viewport" content="width=device-width, initial-scale=1">
8 + <title>Touché</title>
9 + <meta name="description" content="">
10 + <meta name="author" content="">
11 +
12 + <!-- Favicons
13 + ================================================== -->
14 + <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
15 + <link rel="apple-touch-icon" href="img/apple-touch-icon.png">
16 + <link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
17 + <link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
18 +
19 + <!-- Bootstrap -->
20 + <link rel="stylesheet" type="text/css" href="css/bootstrap.css">
21 + <link rel="stylesheet" type="text/css" href="fonts/font-awesome/css/font-awesome.css">
22 +
23 + <!-- Stylesheet
24 + ================================================== -->
25 + <link rel="stylesheet" type="text/css" href="css/style.css">
26 + <link rel="stylesheet" type="text/css" href="css/nivo-lightbox/nivo-lightbox.css">
27 + <link rel="stylesheet" type="text/css" href="css/nivo-lightbox/default.css">
28 + <link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700" rel="stylesheet">
29 + <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
30 + <link href="https://fonts.googleapis.com/css?family=Dancing+Script:400,700" rel="stylesheet">
31 +
32 + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
33 + <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
34 + <!--[if lt IE 9]>
35 + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
36 + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
37 + <![endif]-->
6 <style> 38 <style>
7 .toon_name,.toon_thumbnail{ 39 .toon_name,.toon_thumbnail{
8 width:10%; 40 width:10%;
...@@ -24,6 +56,7 @@ ...@@ -24,6 +56,7 @@
24 border-bottom:2px solid #474747; 56 border-bottom:2px solid #474747;
25 } 57 }
26 </style> 58 </style>
59 +
27 </head> 60 </head>
28 <h1>내툰</h1> 61 <h1>내툰</h1>
29 <p>추가한 리스트</p> 62 <p>추가한 리스트</p>
......
This diff is collapsed. Click to expand it.
No preview for this file type