Showing
8 changed files
with
224 additions
and
553 deletions
... | @@ -2,7 +2,12 @@ | ... | @@ -2,7 +2,12 @@ |
2 | <project version="4"> | 2 | <project version="4"> |
3 | <component name="ChangeListManager"> | 3 | <component name="ChangeListManager"> |
4 | <list default="true" id="ffe1a490-8fdb-4611-8537-4d1c03c40b8d" name="Default" comment=""> | 4 | <list default="true" id="ffe1a490-8fdb-4611-8537-4d1c03c40b8d" name="Default" comment=""> |
5 | - <change beforePath="$PROJECT_DIR$/views/index.ejs" beforeDir="false" afterPath="$PROJECT_DIR$/views/index.ejs" afterDir="false" /> | 5 | + <change afterPath="$PROJECT_DIR$/routes/yourtoons.js" afterDir="false" /> |
6 | + <change afterPath="$PROJECT_DIR$/views/yourtoons.ejs" afterDir="false" /> | ||
7 | + <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> | ||
8 | + <change beforePath="$PROJECT_DIR$/app.js" beforeDir="false" afterPath="$PROJECT_DIR$/app.js" afterDir="false" /> | ||
9 | + <change beforePath="$PROJECT_DIR$/routes/mytoons.js" beforeDir="false" afterPath="$PROJECT_DIR$/routes/mytoons.js" afterDir="false" /> | ||
10 | + <change beforePath="$PROJECT_DIR$/views/index.html" beforeDir="false" /> | ||
6 | <change beforePath="$PROJECT_DIR$/views/mytoons.ejs" beforeDir="false" afterPath="$PROJECT_DIR$/views/mytoons.ejs" afterDir="false" /> | 11 | <change beforePath="$PROJECT_DIR$/views/mytoons.ejs" beforeDir="false" afterPath="$PROJECT_DIR$/views/mytoons.ejs" afterDir="false" /> |
7 | <change beforePath="$PROJECT_DIR$/views/setting.ejs" beforeDir="false" afterPath="$PROJECT_DIR$/views/setting.ejs" afterDir="false" /> | 12 | <change beforePath="$PROJECT_DIR$/views/setting.ejs" beforeDir="false" afterPath="$PROJECT_DIR$/views/setting.ejs" afterDir="false" /> |
8 | </list> | 13 | </list> |
... | @@ -116,88 +121,76 @@ | ... | @@ -116,88 +121,76 @@ |
116 | <usages-collector id="statistics.file.extensions.open"> | 121 | <usages-collector id="statistics.file.extensions.open"> |
117 | <counts> | 122 | <counts> |
118 | <entry key="css" value="2" /> | 123 | <entry key="css" value="2" /> |
119 | - <entry key="ejs" value="8" /> | 124 | + <entry key="ejs" value="10" /> |
120 | <entry key="html" value="1" /> | 125 | <entry key="html" value="1" /> |
121 | - <entry key="js" value="9" /> | 126 | + <entry key="js" value="12" /> |
122 | </counts> | 127 | </counts> |
123 | </usages-collector> | 128 | </usages-collector> |
124 | <usages-collector id="statistics.file.types.open"> | 129 | <usages-collector id="statistics.file.types.open"> |
125 | <counts> | 130 | <counts> |
126 | <entry key="CSS" value="2" /> | 131 | <entry key="CSS" value="2" /> |
127 | - <entry key="EJS" value="8" /> | 132 | + <entry key="EJS" value="10" /> |
128 | <entry key="HTML" value="1" /> | 133 | <entry key="HTML" value="1" /> |
129 | - <entry key="JavaScript" value="9" /> | 134 | + <entry key="JavaScript" value="12" /> |
130 | </counts> | 135 | </counts> |
131 | </usages-collector> | 136 | </usages-collector> |
132 | <usages-collector id="statistics.file.extensions.edit"> | 137 | <usages-collector id="statistics.file.extensions.edit"> |
133 | <counts> | 138 | <counts> |
134 | - <entry key="ejs" value="835" /> | 139 | + <entry key="ejs" value="899" /> |
135 | - <entry key="js" value="1398" /> | 140 | + <entry key="js" value="1578" /> |
136 | </counts> | 141 | </counts> |
137 | </usages-collector> | 142 | </usages-collector> |
138 | <usages-collector id="statistics.file.types.edit"> | 143 | <usages-collector id="statistics.file.types.edit"> |
139 | <counts> | 144 | <counts> |
140 | - <entry key="EJS" value="835" /> | 145 | + <entry key="EJS" value="899" /> |
141 | - <entry key="JavaScript" value="1398" /> | 146 | + <entry key="JavaScript" value="1578" /> |
142 | </counts> | 147 | </counts> |
143 | </usages-collector> | 148 | </usages-collector> |
144 | </session> | 149 | </session> |
145 | </component> | 150 | </component> |
146 | <component name="FileEditorManager"> | 151 | <component name="FileEditorManager"> |
147 | <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | 152 | <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> |
148 | - <file pinned="false" current-in-tab="false"> | 153 | + <file pinned="false" current-in-tab="true"> |
149 | <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> | 154 | <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> |
150 | <provider selected="true" editor-type-id="text-editor"> | 155 | <provider selected="true" editor-type-id="text-editor"> |
151 | - <state relative-caret-position="494"> | 156 | + <state relative-caret-position="247"> |
152 | - <caret line="26" column="20" lean-forward="true" selection-start-line="26" selection-start-column="20" selection-end-line="26" selection-end-column="20" /> | 157 | + <caret line="22" lean-forward="true" selection-start-line="22" selection-end-line="22" /> |
153 | </state> | 158 | </state> |
154 | </provider> | 159 | </provider> |
155 | </entry> | 160 | </entry> |
156 | </file> | 161 | </file> |
157 | <file pinned="false" current-in-tab="false"> | 162 | <file pinned="false" current-in-tab="false"> |
158 | - <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> | 163 | + <entry file="file://$PROJECT_DIR$/app.js"> |
159 | <provider selected="true" editor-type-id="text-editor"> | 164 | <provider selected="true" editor-type-id="text-editor"> |
160 | - <state relative-caret-position="475"> | 165 | + <state relative-caret-position="285"> |
161 | - <caret line="70" column="8" lean-forward="true" selection-start-line="70" selection-start-column="8" selection-end-line="70" selection-end-column="8" /> | 166 | + <caret line="69" column="12" lean-forward="true" selection-start-line="69" selection-start-column="12" selection-end-line="69" selection-end-column="12" /> |
162 | - <folding> | ||
163 | - <element signature="n#style#0;n#a#0;n#div#0;n#div#0;n#nav#0;n#body#0;n#html#0;n#!!top" expanded="true" /> | ||
164 | - </folding> | ||
165 | </state> | 167 | </state> |
166 | </provider> | 168 | </provider> |
167 | </entry> | 169 | </entry> |
168 | </file> | 170 | </file> |
169 | <file pinned="false" current-in-tab="false"> | 171 | <file pinned="false" current-in-tab="false"> |
170 | - <entry file="file://$PROJECT_DIR$/views/index.html"> | 172 | + <entry file="file://$PROJECT_DIR$/routes/yourtoons.js"> |
171 | <provider selected="true" editor-type-id="text-editor"> | 173 | <provider selected="true" editor-type-id="text-editor"> |
172 | - <state relative-caret-position="-988"> | 174 | + <state relative-caret-position="336"> |
173 | - <caret line="65" column="34" lean-forward="true" selection-start-line="65" selection-start-column="34" selection-end-line="65" selection-end-column="34" /> | 175 | + <caret line="31" column="53" lean-forward="true" selection-start-line="31" selection-start-column="53" selection-end-line="31" selection-end-column="53" /> |
174 | </state> | 176 | </state> |
175 | </provider> | 177 | </provider> |
176 | </entry> | 178 | </entry> |
177 | </file> | 179 | </file> |
178 | - <file pinned="false" current-in-tab="true"> | 180 | + <file pinned="false" current-in-tab="false"> |
179 | - <entry file="file://$PROJECT_DIR$/views/setting.ejs"> | 181 | + <entry file="file://$PROJECT_DIR$/views/yourtoons.ejs"> |
180 | <provider selected="true" editor-type-id="text-editor"> | 182 | <provider selected="true" editor-type-id="text-editor"> |
181 | - <state relative-caret-position="469"> | 183 | + <state relative-caret-position="274"> |
182 | - <caret line="135" lean-forward="true" selection-start-line="135" selection-end-line="135" /> | 184 | + <caret line="90" lean-forward="true" selection-start-line="90" selection-end-line="90" /> |
183 | - <folding> | ||
184 | - <element signature="n#style#0;n#a#0;n#div#0;n#div#0;n#nav#0;n#body#0;n#html#0;n#!!top" expanded="true" /> | ||
185 | - </folding> | ||
186 | </state> | 185 | </state> |
187 | </provider> | 186 | </provider> |
188 | </entry> | 187 | </entry> |
189 | </file> | 188 | </file> |
190 | <file pinned="false" current-in-tab="false"> | 189 | <file pinned="false" current-in-tab="false"> |
191 | - <entry file="file://$PROJECT_DIR$/views/index.ejs"> | 190 | + <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> |
192 | <provider selected="true" editor-type-id="text-editor"> | 191 | <provider selected="true" editor-type-id="text-editor"> |
193 | - <state relative-caret-position="380"> | 192 | + <state relative-caret-position="-2633"> |
194 | - <caret line="104" column="34" lean-forward="true" selection-start-line="93" selection-start-column="2" selection-end-line="104" selection-end-column="34" /> | 193 | + <caret line="8" lean-forward="true" selection-start-line="8" selection-end-line="8" /> |
195 | - <folding> | ||
196 | - <element signature="n#style#0;n#a#0;n#div#0;n#div#0;n#nav#0;n#body#0;n#html#0;n#!!top" expanded="true" /> | ||
197 | - <element signature="n#style#0;n#h1#0;n#div#0;n#div#0;n#div#0;n#div#0;n#div#0;n#header#0;n#body#0;n#html#0;n#!!top" expanded="true" /> | ||
198 | - <element signature="n#style#0;n#div#0;n#ul#0;n#div#0;n#div#0;n#div#1;n#div#1;n#body#0;n#html#0;n#!!top" expanded="true" /> | ||
199 | - <element signature="n#style#0;n#div#1;n#ul#0;n#div#0;n#div#0;n#div#1;n#div#1;n#body#0;n#html#0;n#!!top" expanded="true" /> | ||
200 | - </folding> | ||
201 | </state> | 194 | </state> |
202 | </provider> | 195 | </provider> |
203 | </entry> | 196 | </entry> |
... | @@ -283,14 +276,16 @@ | ... | @@ -283,14 +276,16 @@ |
283 | <option value="$PROJECT_DIR$/views/daum" /> | 276 | <option value="$PROJECT_DIR$/views/daum" /> |
284 | <option value="$PROJECT_DIR$/views/daum.ejs" /> | 277 | <option value="$PROJECT_DIR$/views/daum.ejs" /> |
285 | <option value="$PROJECT_DIR$/routes/daum.js" /> | 278 | <option value="$PROJECT_DIR$/routes/daum.js" /> |
286 | - <option value="$PROJECT_DIR$/routes/mytoons.js" /> | ||
287 | <option value="$PROJECT_DIR$/routes/toonviewer.js" /> | 279 | <option value="$PROJECT_DIR$/routes/toonviewer.js" /> |
288 | <option value="$PROJECT_DIR$/routes/setting.js" /> | 280 | <option value="$PROJECT_DIR$/routes/setting.js" /> |
289 | - <option value="$PROJECT_DIR$/app.js" /> | ||
290 | <option value="$PROJECT_DIR$/routes/index.js" /> | 281 | <option value="$PROJECT_DIR$/routes/index.js" /> |
291 | - <option value="$PROJECT_DIR$/views/mytoons.ejs" /> | ||
292 | <option value="$PROJECT_DIR$/views/index.ejs" /> | 282 | <option value="$PROJECT_DIR$/views/index.ejs" /> |
293 | <option value="$PROJECT_DIR$/views/setting.ejs" /> | 283 | <option value="$PROJECT_DIR$/views/setting.ejs" /> |
284 | + <option value="$PROJECT_DIR$/routes/mytoons.js" /> | ||
285 | + <option value="$PROJECT_DIR$/app.js" /> | ||
286 | + <option value="$PROJECT_DIR$/views/mytoons.ejs" /> | ||
287 | + <option value="$PROJECT_DIR$/routes/yourtoons.js" /> | ||
288 | + <option value="$PROJECT_DIR$/views/yourtoons.ejs" /> | ||
294 | </list> | 289 | </list> |
295 | </option> | 290 | </option> |
296 | </component> | 291 | </component> |
... | @@ -520,7 +515,7 @@ | ... | @@ -520,7 +515,7 @@ |
520 | <workItem from="1543588884449" duration="7362000" /> | 515 | <workItem from="1543588884449" duration="7362000" /> |
521 | <workItem from="1543625351688" duration="5520000" /> | 516 | <workItem from="1543625351688" duration="5520000" /> |
522 | <workItem from="1543732778568" duration="2000" /> | 517 | <workItem from="1543732778568" duration="2000" /> |
523 | - <workItem from="1543986114264" duration="6680000" /> | 518 | + <workItem from="1543986114264" duration="8173000" /> |
524 | </task> | 519 | </task> |
525 | <task id="LOCAL-00001" summary="초기 commit by intellij"> | 520 | <task id="LOCAL-00001" summary="초기 commit by intellij"> |
526 | <created>1512174269218</created> | 521 | <created>1512174269218</created> |
... | @@ -540,7 +535,7 @@ | ... | @@ -540,7 +535,7 @@ |
540 | <servers /> | 535 | <servers /> |
541 | </component> | 536 | </component> |
542 | <component name="TimeTrackingManager"> | 537 | <component name="TimeTrackingManager"> |
543 | - <option name="totallyTimeSpent" value="238841000" /> | 538 | + <option name="totallyTimeSpent" value="240334000" /> |
544 | </component> | 539 | </component> |
545 | <component name="TodoView"> | 540 | <component name="TodoView"> |
546 | <todo-panel id="selected-file"> | 541 | <todo-panel id="selected-file"> |
... | @@ -746,13 +741,6 @@ | ... | @@ -746,13 +741,6 @@ |
746 | </state> | 741 | </state> |
747 | </provider> | 742 | </provider> |
748 | </entry> | 743 | </entry> |
749 | - <entry file="file://$PROJECT_DIR$/app.js"> | ||
750 | - <provider selected="true" editor-type-id="text-editor"> | ||
751 | - <state relative-caret-position="274"> | ||
752 | - <caret line="71" column="16" lean-forward="true" selection-start-line="71" selection-start-column="16" selection-end-line="71" selection-end-column="16" /> | ||
753 | - </state> | ||
754 | - </provider> | ||
755 | - </entry> | ||
756 | <entry file="file://$PROJECT_DIR$/routes/index.js"> | 744 | <entry file="file://$PROJECT_DIR$/routes/index.js"> |
757 | <provider selected="true" editor-type-id="text-editor"> | 745 | <provider selected="true" editor-type-id="text-editor"> |
758 | <state relative-caret-position="207"> | 746 | <state relative-caret-position="207"> |
... | @@ -787,17 +775,17 @@ | ... | @@ -787,17 +775,17 @@ |
787 | </state> | 775 | </state> |
788 | </provider> | 776 | </provider> |
789 | </entry> | 777 | </entry> |
790 | - <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> | 778 | + <entry file="file://$PROJECT_DIR$/views/index.html"> |
791 | <provider selected="true" editor-type-id="text-editor"> | 779 | <provider selected="true" editor-type-id="text-editor"> |
792 | - <state relative-caret-position="494"> | 780 | + <state relative-caret-position="152"> |
793 | - <caret line="26" column="20" lean-forward="true" selection-start-line="26" selection-start-column="20" selection-end-line="26" selection-end-column="20" /> | 781 | + <caret line="65" column="34" lean-forward="true" selection-start-line="65" selection-start-column="34" selection-end-line="65" selection-end-column="34" /> |
794 | </state> | 782 | </state> |
795 | </provider> | 783 | </provider> |
796 | </entry> | 784 | </entry> |
797 | <entry file="file://$PROJECT_DIR$/views/index.ejs"> | 785 | <entry file="file://$PROJECT_DIR$/views/index.ejs"> |
798 | <provider selected="true" editor-type-id="text-editor"> | 786 | <provider selected="true" editor-type-id="text-editor"> |
799 | - <state relative-caret-position="380"> | 787 | + <state relative-caret-position="304"> |
800 | - <caret line="104" column="34" lean-forward="true" selection-start-line="93" selection-start-column="2" selection-end-line="104" selection-end-column="34" /> | 788 | + <caret line="25" column="7" lean-forward="true" selection-start-line="25" selection-start-column="7" selection-end-line="25" selection-end-column="7" /> |
801 | <folding> | 789 | <folding> |
802 | <element signature="n#style#0;n#a#0;n#div#0;n#div#0;n#nav#0;n#body#0;n#html#0;n#!!top" expanded="true" /> | 790 | <element signature="n#style#0;n#a#0;n#div#0;n#div#0;n#nav#0;n#body#0;n#html#0;n#!!top" expanded="true" /> |
803 | <element signature="n#style#0;n#h1#0;n#div#0;n#div#0;n#div#0;n#div#0;n#div#0;n#header#0;n#body#0;n#html#0;n#!!top" expanded="true" /> | 791 | <element signature="n#style#0;n#h1#0;n#div#0;n#div#0;n#div#0;n#div#0;n#div#0;n#header#0;n#body#0;n#html#0;n#!!top" expanded="true" /> |
... | @@ -807,30 +795,48 @@ | ... | @@ -807,30 +795,48 @@ |
807 | </state> | 795 | </state> |
808 | </provider> | 796 | </provider> |
809 | </entry> | 797 | </entry> |
810 | - <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> | 798 | + <entry file="file://$PROJECT_DIR$/views/setting.ejs"> |
811 | <provider selected="true" editor-type-id="text-editor"> | 799 | <provider selected="true" editor-type-id="text-editor"> |
812 | - <state relative-caret-position="475"> | 800 | + <state relative-caret-position="190"> |
813 | - <caret line="70" column="8" lean-forward="true" selection-start-line="70" selection-start-column="8" selection-end-line="70" selection-end-column="8" /> | 801 | + <caret line="10" column="19" lean-forward="true" selection-start-line="10" selection-start-column="19" selection-end-line="10" selection-end-column="19" /> |
814 | <folding> | 802 | <folding> |
815 | <element signature="n#style#0;n#a#0;n#div#0;n#div#0;n#nav#0;n#body#0;n#html#0;n#!!top" expanded="true" /> | 803 | <element signature="n#style#0;n#a#0;n#div#0;n#div#0;n#nav#0;n#body#0;n#html#0;n#!!top" expanded="true" /> |
816 | </folding> | 804 | </folding> |
817 | </state> | 805 | </state> |
818 | </provider> | 806 | </provider> |
819 | </entry> | 807 | </entry> |
820 | - <entry file="file://$PROJECT_DIR$/views/index.html"> | 808 | + <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> |
821 | <provider selected="true" editor-type-id="text-editor"> | 809 | <provider selected="true" editor-type-id="text-editor"> |
822 | - <state relative-caret-position="-988"> | 810 | + <state relative-caret-position="-2633"> |
823 | - <caret line="65" column="34" lean-forward="true" selection-start-line="65" selection-start-column="34" selection-end-line="65" selection-end-column="34" /> | 811 | + <caret line="8" lean-forward="true" selection-start-line="8" selection-end-line="8" /> |
824 | </state> | 812 | </state> |
825 | </provider> | 813 | </provider> |
826 | </entry> | 814 | </entry> |
827 | - <entry file="file://$PROJECT_DIR$/views/setting.ejs"> | 815 | + <entry file="file://$PROJECT_DIR$/views/yourtoons.ejs"> |
828 | <provider selected="true" editor-type-id="text-editor"> | 816 | <provider selected="true" editor-type-id="text-editor"> |
829 | - <state relative-caret-position="469"> | 817 | + <state relative-caret-position="274"> |
830 | - <caret line="135" lean-forward="true" selection-start-line="135" selection-end-line="135" /> | 818 | + <caret line="90" lean-forward="true" selection-start-line="90" selection-end-line="90" /> |
831 | - <folding> | 819 | + </state> |
832 | - <element signature="n#style#0;n#a#0;n#div#0;n#div#0;n#nav#0;n#body#0;n#html#0;n#!!top" expanded="true" /> | 820 | + </provider> |
833 | - </folding> | 821 | + </entry> |
822 | + <entry file="file://$PROJECT_DIR$/routes/yourtoons.js"> | ||
823 | + <provider selected="true" editor-type-id="text-editor"> | ||
824 | + <state relative-caret-position="336"> | ||
825 | + <caret line="31" column="53" lean-forward="true" selection-start-line="31" selection-start-column="53" selection-end-line="31" selection-end-column="53" /> | ||
826 | + </state> | ||
827 | + </provider> | ||
828 | + </entry> | ||
829 | + <entry file="file://$PROJECT_DIR$/app.js"> | ||
830 | + <provider selected="true" editor-type-id="text-editor"> | ||
831 | + <state relative-caret-position="285"> | ||
832 | + <caret line="69" column="12" lean-forward="true" selection-start-line="69" selection-start-column="12" selection-end-line="69" selection-end-column="12" /> | ||
833 | + </state> | ||
834 | + </provider> | ||
835 | + </entry> | ||
836 | + <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> | ||
837 | + <provider selected="true" editor-type-id="text-editor"> | ||
838 | + <state relative-caret-position="247"> | ||
839 | + <caret line="22" lean-forward="true" selection-start-line="22" selection-end-line="22" /> | ||
834 | </state> | 840 | </state> |
835 | </provider> | 841 | </provider> |
836 | </entry> | 842 | </entry> | ... | ... |
... | @@ -10,6 +10,7 @@ var request = require('request'); | ... | @@ -10,6 +10,7 @@ var request = require('request'); |
10 | var index = require('./routes/index'); | 10 | var index = require('./routes/index'); |
11 | var users = require('./routes/users'); | 11 | var users = require('./routes/users'); |
12 | var mytoons = require('./routes/mytoons'); | 12 | var mytoons = require('./routes/mytoons'); |
13 | +var yourtoons=require('./routes/yourtoons'); | ||
13 | var passport = require('passport'); | 14 | var passport = require('passport'); |
14 | var setting = require('./routes/setting'); | 15 | var setting = require('./routes/setting'); |
15 | var session = require('express-session'); | 16 | var session = require('express-session'); |
... | @@ -59,7 +60,7 @@ app.use('/', index); | ... | @@ -59,7 +60,7 @@ app.use('/', index); |
59 | app.use('/users', users); | 60 | app.use('/users', users); |
60 | app.use('/mytoons', mytoons); | 61 | app.use('/mytoons', mytoons); |
61 | app.use('/setting', setting); | 62 | app.use('/setting', setting); |
62 | -app.use('/toonviewer', toonviewer); | 63 | +app.use('/yourtoons', yourtoons); |
63 | //app.use(express.static('views')); | 64 | //app.use(express.static('views')); |
64 | 65 | ||
65 | // catch 404 and forward to error handler | 66 | // catch 404 and forward to error handler | ... | ... |
... | @@ -4,9 +4,6 @@ var request = require('request'); | ... | @@ -4,9 +4,6 @@ var request = require('request'); |
4 | var async = require('async'); | 4 | var async = require('async'); |
5 | var router = express.Router(); | 5 | var router = express.Router(); |
6 | 6 | ||
7 | -function getUpdatedToons(cb){ | ||
8 | -} | ||
9 | - | ||
10 | function getMyToons(id,cb){ | 7 | function getMyToons(id,cb){ |
11 | //id 값을 가진 user가 저장한 웹툰들 가져오기 | 8 | //id 값을 가진 user가 저장한 웹툰들 가져오기 |
12 | var sqlquery = "SELECT t.toon_index, t.name, t.thum_link, t.webtoon_link, t.week, t.site FROM user u, user_toon_relation ur, toon t WHERE u.id = '"+id+"' && u.id=ur.user_id && t.toon_index=ur.toon_index;"; | 9 | var sqlquery = "SELECT t.toon_index, t.name, t.thum_link, t.webtoon_link, t.week, t.site FROM user u, user_toon_relation ur, toon t WHERE u.id = '"+id+"' && u.id=ur.user_id && t.toon_index=ur.toon_index;"; | ... | ... |
routes/yourtoons.js
0 → 100644
1 | +var express = require('express'); | ||
2 | +var cheerio = require('cheerio'); | ||
3 | +var request = require('request'); | ||
4 | +var async = require('async'); | ||
5 | +var router = express.Router(); | ||
6 | + | ||
7 | +function getYourToons(id,cb){ | ||
8 | + //현재 로그인한 유저가 아닌 다른 유저들의 내툰리스트 가져오기 | ||
9 | + var sqlquery = "SELECT u.id, t.toon_index, t.name, t.thum_link, t.webtoon_link, t.week, t.site FROM user u, user_toon_relation ur, toon t WHERE u.id != '"+id+"' && u.id=ur.user_id && t.toon_index=ur.toon_index;"; | ||
10 | + var yourlist = new Array(); | ||
11 | + connection.query(sqlquery,id,function(err,rows,result){ | ||
12 | + if(!err){ | ||
13 | + yourlist=rows; | ||
14 | + cb(yourlist); | ||
15 | + console.log(yourlist); | ||
16 | + }else{ | ||
17 | + console.log("니툰 리스트 가져오는데 실패했습니다!"); | ||
18 | + //throw err; | ||
19 | + } | ||
20 | + }); | ||
21 | +} | ||
22 | + | ||
23 | +/* GET home page. */ | ||
24 | +router.get('/', function(req, res, next) { | ||
25 | + if(!req.isAuthenticated()){ | ||
26 | + res.redirect('/'); | ||
27 | + }else{ | ||
28 | + async.series( | ||
29 | + [ | ||
30 | + function(callback){ | ||
31 | + getYourToons(req.user.user_id, function (yourtoon_list) { | ||
32 | + callback(null,yourtoon_list); | ||
33 | + }); | ||
34 | + } | ||
35 | + ], | ||
36 | + function(err, results){ | ||
37 | + res.render('yourtoons', { | ||
38 | + yourtoons: results[0] | ||
39 | + }); | ||
40 | + } | ||
41 | + ); | ||
42 | + } | ||
43 | +}); | ||
44 | + | ||
45 | +module.exports = router; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
views/index.html
deleted
100644 → 0
1 | -<!DOCTYPE html> | ||
2 | -<html lang="en"> | ||
3 | -<head> | ||
4 | -<meta charset="utf-8"> | ||
5 | -<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
6 | -<title>Touché</title> | ||
7 | -<meta name="description" content=""> | ||
8 | -<meta name="author" content=""> | ||
9 | - | ||
10 | -<!-- Favicons | ||
11 | - ================================================== --> | ||
12 | -<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon"> | ||
13 | -<link rel="apple-touch-icon" href="img/apple-touch-icon.png"> | ||
14 | -<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png"> | ||
15 | -<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png"> | ||
16 | - | ||
17 | -<!-- Bootstrap --> | ||
18 | -<link rel="stylesheet" type="text/css" href="css/bootstrap.css"> | ||
19 | -<link rel="stylesheet" type="text/css" href="fonts/font-awesome/css/font-awesome.css"> | ||
20 | - | ||
21 | -<!-- Stylesheet | ||
22 | - ================================================== --> | ||
23 | -<link rel="stylesheet" type="text/css" href="css/style.css"> | ||
24 | -<link rel="stylesheet" type="text/css" href="css/nivo-lightbox/nivo-lightbox.css"> | ||
25 | -<link rel="stylesheet" type="text/css" href="css/nivo-lightbox/default.css"> | ||
26 | -<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700" rel="stylesheet"> | ||
27 | -<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet"> | ||
28 | -<link href="https://fonts.googleapis.com/css?family=Dancing+Script:400,700" rel="stylesheet"> | ||
29 | - | ||
30 | -<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> | ||
31 | -<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||
32 | -<!--[if lt IE 9]> | ||
33 | - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | ||
34 | - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | ||
35 | - <![endif]--> | ||
36 | -</head> | ||
37 | -<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top"> | ||
38 | -<!-- Navigation | ||
39 | - ==========================================--> | ||
40 | -<nav id="menu" class="navbar navbar-default navbar-fixed-top"> | ||
41 | - <div class="container"> | ||
42 | - <!-- Brand and toggle get grouped for better mobile display --> | ||
43 | - <div class="navbar-header"> | ||
44 | - <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> | ||
45 | - <a class="navbar-brand page-scroll" href="#page-top">Touché</a> </div> | ||
46 | - | ||
47 | - <!-- Collect the nav links, forms, and other content for toggling --> | ||
48 | - <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||
49 | - <ul class="nav navbar-nav navbar-right"> | ||
50 | - <li><a href="#about" class="page-scroll">About</a></li> | ||
51 | - <li><a href="#restaurant-menu" class="page-scroll">Menu</a></li> | ||
52 | - <li><a href="#portfolio" class="page-scroll">Gallery</a></li> | ||
53 | - <li><a href="#team" class="page-scroll">Chefs</a></li> | ||
54 | - <li><a href="#call-reservation" class="page-scroll">Contact</a></li> | ||
55 | - </ul> | ||
56 | - </div> | ||
57 | - <!-- /.navbar-collapse --> | ||
58 | - </div> | ||
59 | -</nav> | ||
60 | -<!-- Header --> | ||
61 | -<header id="header"> | ||
62 | - <div class="intro"> | ||
63 | - <div class="overlay"> | ||
64 | - <div class="container"> | ||
65 | - <div class="row"> | ||
66 | - <div class="intro-text"> | ||
67 | - <h1>Touché</h1> | ||
68 | - <p>Restaurant / Coffee / Pub</p> | ||
69 | - <a href="#about" class="btn btn-custom btn-lg page-scroll">Discover Story</a> </div> | ||
70 | - </div> | ||
71 | - </div> | ||
72 | - </div> | ||
73 | - </div> | ||
74 | -</header> | ||
75 | -<!-- About Section --> | ||
76 | -<div id="about"> | ||
77 | - <div class="container"> | ||
78 | - <div class="row"> | ||
79 | - <div class="col-xs-12 col-md-6 "> | ||
80 | - <div class="about-img"><img src="img/about.jpg" class="img-responsive" alt=""></div> | ||
81 | - </div> | ||
82 | - <div class="col-xs-12 col-md-6"> | ||
83 | - <div class="about-text"> | ||
84 | - <h2>Our Restaurant</h2> | ||
85 | - <hr> | ||
86 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam. Sed commodo nibh ante facilisis bibendum dolor feugiat at. Duis sed dapibus leo nec ornare diam commodo nibh.</p> | ||
87 | - <h3>Awarded Chefs</h3> | ||
88 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam. Sed commodo nibh ante facilisis bibendum dolor feugiat at. Duis sed dapibus leo nec ornare.</p> | ||
89 | - </div> | ||
90 | - </div> | ||
91 | - </div> | ||
92 | - </div> | ||
93 | -</div> | ||
94 | -<!-- Restaurant Menu Section --> | ||
95 | -<div id="restaurant-menu"> | ||
96 | - <div class="section-title text-center center"> | ||
97 | - <div class="overlay"> | ||
98 | - <h2>Menu</h2> | ||
99 | - <hr> | ||
100 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit duis sed.</p> | ||
101 | - </div> | ||
102 | - </div> | ||
103 | - <div class="container"> | ||
104 | - <div class="row"> | ||
105 | - <div class="col-xs-12 col-sm-6"> | ||
106 | - <div class="menu-section"> | ||
107 | - <h2 class="menu-section-title">Breakfast & Starters</h2> | ||
108 | - <hr> | ||
109 | - <div class="menu-item"> | ||
110 | - <div class="menu-item-name"> Delicious Dish </div> | ||
111 | - <div class="menu-item-price"> $35 </div> | ||
112 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
113 | - </div> | ||
114 | - <div class="menu-item"> | ||
115 | - <div class="menu-item-name"> Delicious Dish </div> | ||
116 | - <div class="menu-item-price"> $30 </div> | ||
117 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
118 | - </div> | ||
119 | - <div class="menu-item"> | ||
120 | - <div class="menu-item-name"> Delicious Dish </div> | ||
121 | - <div class="menu-item-price"> $30 </div> | ||
122 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
123 | - </div> | ||
124 | - <div class="menu-item"> | ||
125 | - <div class="menu-item-name"> Delicious Dish </div> | ||
126 | - <div class="menu-item-price"> $30 </div> | ||
127 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
128 | - </div> | ||
129 | - </div> | ||
130 | - </div> | ||
131 | - <div class="col-xs-12 col-sm-6"> | ||
132 | - <div class="menu-section"> | ||
133 | - <h2 class="menu-section-title">Main Course</h2> | ||
134 | - <hr> | ||
135 | - <div class="menu-item"> | ||
136 | - <div class="menu-item-name"> Delicious Dish </div> | ||
137 | - <div class="menu-item-price"> $45 </div> | ||
138 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
139 | - </div> | ||
140 | - <div class="menu-item"> | ||
141 | - <div class="menu-item-name"> Delicious Dish </div> | ||
142 | - <div class="menu-item-price"> $30 </div> | ||
143 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
144 | - </div> | ||
145 | - <div class="menu-item"> | ||
146 | - <div class="menu-item-name"> Delicious Dish </div> | ||
147 | - <div class="menu-item-price"> $30 </div> | ||
148 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
149 | - </div> | ||
150 | - <div class="menu-item"> | ||
151 | - <div class="menu-item-name"> Delicious Dish </div> | ||
152 | - <div class="menu-item-price"> $30 </div> | ||
153 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
154 | - </div> | ||
155 | - </div> | ||
156 | - </div> | ||
157 | - </div> | ||
158 | - <div class="row"> | ||
159 | - <div class="col-xs-12 col-sm-6"> | ||
160 | - <div class="menu-section"> | ||
161 | - <h2 class="menu-section-title">Dinner</h2> | ||
162 | - <hr> | ||
163 | - <div class="menu-item"> | ||
164 | - <div class="menu-item-name"> Delicious Dish </div> | ||
165 | - <div class="menu-item-price"> $45 </div> | ||
166 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
167 | - </div> | ||
168 | - <div class="menu-item"> | ||
169 | - <div class="menu-item-name"> Delicious Dish </div> | ||
170 | - <div class="menu-item-price"> $350 </div> | ||
171 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
172 | - </div> | ||
173 | - <div class="menu-item"> | ||
174 | - <div class="menu-item-name"> Delicious Dish </div> | ||
175 | - <div class="menu-item-price"> $30 </div> | ||
176 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam.. </div> | ||
177 | - </div> | ||
178 | - <div class="menu-item"> | ||
179 | - <div class="menu-item-name"> Delicious Dish </div> | ||
180 | - <div class="menu-item-price"> $30 </div> | ||
181 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
182 | - </div> | ||
183 | - </div> | ||
184 | - </div> | ||
185 | - <div class="col-xs-12 col-sm-6"> | ||
186 | - <div class="menu-section"> | ||
187 | - <h2 class="menu-section-title">Coffee & Drinks</h2> | ||
188 | - <hr> | ||
189 | - <div class="menu-item"> | ||
190 | - <div class="menu-item-name"> Delicious Dish </div> | ||
191 | - <div class="menu-item-price"> $35 </div> | ||
192 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
193 | - </div> | ||
194 | - <div class="menu-item"> | ||
195 | - <div class="menu-item-name"> Delicious Dish </div> | ||
196 | - <div class="menu-item-price"> $30 </div> | ||
197 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
198 | - </div> | ||
199 | - <div class="menu-item"> | ||
200 | - <div class="menu-item-name"> Delicious Dish </div> | ||
201 | - <div class="menu-item-price"> $30 </div> | ||
202 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
203 | - </div> | ||
204 | - <div class="menu-item"> | ||
205 | - <div class="menu-item-name"> Delicious Dish </div> | ||
206 | - <div class="menu-item-price"> $30 </div> | ||
207 | - <div class="menu-item-description"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, duis sed dapibus leo nec ornare diam. </div> | ||
208 | - </div> | ||
209 | - </div> | ||
210 | - </div> | ||
211 | - </div> | ||
212 | - </div> | ||
213 | -</div> | ||
214 | -<!-- Portfolio Section --> | ||
215 | -<div id="portfolio"> | ||
216 | - <div class="section-title text-center center"> | ||
217 | - <div class="overlay"> | ||
218 | - <h2>Gallery</h2> | ||
219 | - <hr> | ||
220 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit duis sed.</p> | ||
221 | - </div> | ||
222 | - </div> | ||
223 | - <div class="container"> | ||
224 | - <div class="row"> | ||
225 | - <div class="categories"> | ||
226 | - <ul class="cat"> | ||
227 | - <li> | ||
228 | - <ol class="type"> | ||
229 | - <li><a href="#" data-filter="*" class="active">All</a></li> | ||
230 | - <li><a href="#" data-filter=".breakfast">Breakfast</a></li> | ||
231 | - <li><a href="#" data-filter=".lunch">Lunch</a></li> | ||
232 | - <li><a href="#" data-filter=".dinner">Dinner</a></li> | ||
233 | - </ol> | ||
234 | - </li> | ||
235 | - </ul> | ||
236 | - <div class="clearfix"></div> | ||
237 | - </div> | ||
238 | - </div> | ||
239 | - <div class="row"> | ||
240 | - <div class="portfolio-items"> | ||
241 | - <div class="col-sm-6 col-md-4 col-lg-4 breakfast"> | ||
242 | - <div class="portfolio-item"> | ||
243 | - <div class="hover-bg"> <a href="img/portfolio/01-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
244 | - <div class="hover-text"> | ||
245 | - <h4>Dish Name</h4> | ||
246 | - </div> | ||
247 | - <img src="img/portfolio/01-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
248 | - </div> | ||
249 | - </div> | ||
250 | - <div class="col-sm-6 col-md-4 col-lg-4 dinner"> | ||
251 | - <div class="portfolio-item"> | ||
252 | - <div class="hover-bg"> <a href="img/portfolio/02-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
253 | - <div class="hover-text"> | ||
254 | - <h4>Dish Name</h4> | ||
255 | - </div> | ||
256 | - <img src="img/portfolio/02-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
257 | - </div> | ||
258 | - </div> | ||
259 | - <div class="col-sm-6 col-md-4 col-lg-4 breakfast"> | ||
260 | - <div class="portfolio-item"> | ||
261 | - <div class="hover-bg"> <a href="img/portfolio/03-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
262 | - <div class="hover-text"> | ||
263 | - <h4>Dish Name</h4> | ||
264 | - </div> | ||
265 | - <img src="img/portfolio/03-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
266 | - </div> | ||
267 | - </div> | ||
268 | - <div class="col-sm-6 col-md-4 col-lg-4 breakfast"> | ||
269 | - <div class="portfolio-item"> | ||
270 | - <div class="hover-bg"> <a href="img/portfolio/04-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
271 | - <div class="hover-text"> | ||
272 | - <h4>Dish Name</h4> | ||
273 | - </div> | ||
274 | - <img src="img/portfolio/04-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
275 | - </div> | ||
276 | - </div> | ||
277 | - <div class="col-sm-6 col-md-4 col-lg-4 dinner"> | ||
278 | - <div class="portfolio-item"> | ||
279 | - <div class="hover-bg"> <a href="img/portfolio/05-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
280 | - <div class="hover-text"> | ||
281 | - <h4>Dish Name</h4> | ||
282 | - </div> | ||
283 | - <img src="img/portfolio/05-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
284 | - </div> | ||
285 | - </div> | ||
286 | - <div class="col-sm-6 col-md-4 col-lg-4 lunch"> | ||
287 | - <div class="portfolio-item"> | ||
288 | - <div class="hover-bg"> <a href="img/portfolio/06-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
289 | - <div class="hover-text"> | ||
290 | - <h4>Dish Name</h4> | ||
291 | - </div> | ||
292 | - <img src="img/portfolio/06-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
293 | - </div> | ||
294 | - </div> | ||
295 | - <div class="col-sm-6 col-md-4 col-lg-4 lunch"> | ||
296 | - <div class="portfolio-item"> | ||
297 | - <div class="hover-bg"> <a href="img/portfolio/07-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
298 | - <div class="hover-text"> | ||
299 | - <h4>Dish Name</h4> | ||
300 | - </div> | ||
301 | - <img src="img/portfolio/07-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
302 | - </div> | ||
303 | - </div> | ||
304 | - <div class="col-sm-6 col-md-4 col-lg-4 breakfast"> | ||
305 | - <div class="portfolio-item"> | ||
306 | - <div class="hover-bg"> <a href="img/portfolio/08-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
307 | - <div class="hover-text"> | ||
308 | - <h4>Dish Name</h4> | ||
309 | - </div> | ||
310 | - <img src="img/portfolio/08-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
311 | - </div> | ||
312 | - </div> | ||
313 | - <div class="col-sm-6 col-md-4 col-lg-4 dinner"> | ||
314 | - <div class="portfolio-item"> | ||
315 | - <div class="hover-bg"> <a href="img/portfolio/09-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
316 | - <div class="hover-text"> | ||
317 | - <h4>Dish Name</h4> | ||
318 | - </div> | ||
319 | - <img src="img/portfolio/09-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
320 | - </div> | ||
321 | - </div> | ||
322 | - <div class="col-sm-6 col-md-4 col-lg-4 lunch"> | ||
323 | - <div class="portfolio-item"> | ||
324 | - <div class="hover-bg"> <a href="img/portfolio/10-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
325 | - <div class="hover-text"> | ||
326 | - <h4>Dish Name</h4> | ||
327 | - </div> | ||
328 | - <img src="img/portfolio/10-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
329 | - </div> | ||
330 | - </div> | ||
331 | - <div class="col-sm-6 col-md-4 col-lg-4 lunch"> | ||
332 | - <div class="portfolio-item"> | ||
333 | - <div class="hover-bg"> <a href="img/portfolio/11-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
334 | - <div class="hover-text"> | ||
335 | - <h4>Dish Name</h4> | ||
336 | - </div> | ||
337 | - <img src="img/portfolio/11-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
338 | - </div> | ||
339 | - </div> | ||
340 | - <div class="col-sm-6 col-md-4 col-lg-4 breakfast"> | ||
341 | - <div class="portfolio-item"> | ||
342 | - <div class="hover-bg"> <a href="img/portfolio/12-large.jpg" title="Dish Name" data-lightbox-gallery="gallery1"> | ||
343 | - <div class="hover-text"> | ||
344 | - <h4>Dish Name</h4> | ||
345 | - </div> | ||
346 | - <img src="img/portfolio/12-small.jpg" class="img-responsive" alt="Project Title"> </a> </div> | ||
347 | - </div> | ||
348 | - </div> | ||
349 | - </div> | ||
350 | - </div> | ||
351 | - </div> | ||
352 | -</div> | ||
353 | -<!-- Team Section --> | ||
354 | -<div id="team" class="text-center"> | ||
355 | - <div class="overlay"> | ||
356 | - <div class="container"> | ||
357 | - <div class="col-md-10 col-md-offset-1 section-title"> | ||
358 | - <h2>Meet Our Chefs</h2> | ||
359 | - <hr> | ||
360 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit duis sed dapibus leonec.</p> | ||
361 | - </div> | ||
362 | - <div id="row"> | ||
363 | - <div class="col-md-4 team"> | ||
364 | - <div class="thumbnail"> | ||
365 | - <div class="team-img"><img src="img/team/01.jpg" alt="..."></div> | ||
366 | - <div class="caption"> | ||
367 | - <h3>Mike Doe</h3> | ||
368 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam.</p> | ||
369 | - </div> | ||
370 | - </div> | ||
371 | - </div> | ||
372 | - <div class="col-md-4 team"> | ||
373 | - <div class="thumbnail"> | ||
374 | - <div class="team-img"><img src="img/team/02.jpg" alt="..."></div> | ||
375 | - <div class="caption"> | ||
376 | - <h3>Chris Doe</h3> | ||
377 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam.</p> | ||
378 | - </div> | ||
379 | - </div> | ||
380 | - </div> | ||
381 | - <div class="col-md-4 team"> | ||
382 | - <div class="thumbnail"> | ||
383 | - <div class="team-img"><img src="img/team/03.jpg" alt="..."></div> | ||
384 | - <div class="caption"> | ||
385 | - <h3>Ethan Doe</h3> | ||
386 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam.</p> | ||
387 | - </div> | ||
388 | - </div> | ||
389 | - </div> | ||
390 | - </div> | ||
391 | - </div> | ||
392 | - </div> | ||
393 | -</div> | ||
394 | -<!-- Call Reservation Section --> | ||
395 | -<div id="call-reservation" class="text-center"> | ||
396 | - <div class="container"> | ||
397 | - <h2>Want to make a reservation? Call <strong>1-887-654-3210</strong></h2> | ||
398 | - </div> | ||
399 | -</div> | ||
400 | -<!-- Contact Section --> | ||
401 | -<div id="contact" class="text-center"> | ||
402 | - <div class="container"> | ||
403 | - <div class="section-title text-center"> | ||
404 | - <h2>Contact Form</h2> | ||
405 | - <hr> | ||
406 | - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit duis sed.</p> | ||
407 | - </div> | ||
408 | - <div class="col-md-10 col-md-offset-1"> | ||
409 | - <form name="sentMessage" id="contactForm" novalidate> | ||
410 | - <div class="row"> | ||
411 | - <div class="col-md-6"> | ||
412 | - <div class="form-group"> | ||
413 | - <input type="text" id="name" class="form-control" placeholder="Name" required="required"> | ||
414 | - <p class="help-block text-danger"></p> | ||
415 | - </div> | ||
416 | - </div> | ||
417 | - <div class="col-md-6"> | ||
418 | - <div class="form-group"> | ||
419 | - <input type="email" id="email" class="form-control" placeholder="Email" required="required"> | ||
420 | - <p class="help-block text-danger"></p> | ||
421 | - </div> | ||
422 | - </div> | ||
423 | - </div> | ||
424 | - <div class="form-group"> | ||
425 | - <textarea name="message" id="message" class="form-control" rows="4" placeholder="Message" required></textarea> | ||
426 | - <p class="help-block text-danger"></p> | ||
427 | - </div> | ||
428 | - <div id="success"></div> | ||
429 | - <button type="submit" class="btn btn-custom btn-lg">Send Message</button> | ||
430 | - </form> | ||
431 | - </div> | ||
432 | - </div> | ||
433 | -</div> | ||
434 | -<div id="footer"> | ||
435 | - <div class="container text-center"> | ||
436 | - <div class="col-md-4"> | ||
437 | - <h3>Address</h3> | ||
438 | - <div class="contact-item"> | ||
439 | - <p>4321 California St,</p> | ||
440 | - <p>San Francisco, CA 12345</p> | ||
441 | - </div> | ||
442 | - </div> | ||
443 | - <div class="col-md-4"> | ||
444 | - <h3>Opening Hours</h3> | ||
445 | - <div class="contact-item"> | ||
446 | - <p>Mon-Thurs: 10:00 AM - 11:00 PM</p> | ||
447 | - <p>Fri-Sun: 11:00 AM - 02:00 AM</p> | ||
448 | - </div> | ||
449 | - </div> | ||
450 | - <div class="col-md-4"> | ||
451 | - <h3>Contact Info</h3> | ||
452 | - <div class="contact-item"> | ||
453 | - <p>Phone: +1 123 456 1234</p> | ||
454 | - <p>Email: info@company.com</p> | ||
455 | - </div> | ||
456 | - </div> | ||
457 | - </div> | ||
458 | - <div class="container-fluid text-center copyrights"> | ||
459 | - <div class="col-md-8 col-md-offset-2"> | ||
460 | - <div class="social"> | ||
461 | - <ul> | ||
462 | - <li><a href="#"><i class="fa fa-facebook"></i></a></li> | ||
463 | - <li><a href="#"><i class="fa fa-twitter"></i></a></li> | ||
464 | - <li><a href="#"><i class="fa fa-google-plus"></i></a></li> | ||
465 | - </ul> | ||
466 | - </div> | ||
467 | - <p>© 2016 Touché. All rights reserved. Designed by <a href="http://www.templatewire.com" rel="nofollow">TemplateWire</a></p> | ||
468 | - </div> | ||
469 | - </div> | ||
470 | -</div> | ||
471 | -<script type="text/javascript" src="js/jquery.1.11.1.js"></script> | ||
472 | -<script type="text/javascript" src="js/bootstrap.js"></script> | ||
473 | -<script type="text/javascript" src="js/SmoothScroll.js"></script> | ||
474 | -<script type="text/javascript" src="js/nivo-lightbox.js"></script> | ||
475 | -<script type="text/javascript" src="js/jquery.isotope.js"></script> | ||
476 | -<script type="text/javascript" src="js/jqBootstrapValidation.js"></script> | ||
477 | -<script type="text/javascript" src="js/contact_me.js"></script> | ||
478 | -<script type="text/javascript" src="js/main.js"></script> | ||
479 | -</body> | ||
480 | -</html> |
... | @@ -60,6 +60,7 @@ | ... | @@ -60,6 +60,7 @@ |
60 | <ul class="nav navbar-nav navbar-right"> | 60 | <ul class="nav navbar-nav navbar-right"> |
61 | <li><a href="#mylist" class="page-scroll">MyList</a></li> | 61 | <li><a href="#mylist" class="page-scroll">MyList</a></li> |
62 | <li><a href="/setting/"><!--<img src = "/images/basket.png" height="50" witdh="50">-->웹툰 담기</a> | 62 | <li><a href="/setting/"><!--<img src = "/images/basket.png" height="50" witdh="50">-->웹툰 담기</a> |
63 | + <li><a href="/yourtoons/">OtherList</a> | ||
63 | <li><a href="/auth/logout/kakao" class="page-scroll">Logout</a></li> | 64 | <li><a href="/auth/logout/kakao" class="page-scroll">Logout</a></li> |
64 | </ul> | 65 | </ul> |
65 | </div> | 66 | </div> | ... | ... |
... | @@ -132,8 +132,6 @@ | ... | @@ -132,8 +132,6 @@ |
132 | </table> | 132 | </table> |
133 | </form> | 133 | </form> |
134 | </div> | 134 | </div> |
135 | - | ||
136 | - | ||
137 | <a onclick="navertoons.style.display=(navertoons.style.display=='none')?'block':'none';" href="javascript:void(0)"> | 135 | <a onclick="navertoons.style.display=(navertoons.style.display=='none')?'block':'none';" href="javascript:void(0)"> |
138 | <img src ='/images/navericon.png' width="83" height="90"/> | 136 | <img src ='/images/navericon.png' width="83" height="90"/> |
139 | </a> | 137 | </a> |
... | @@ -179,7 +177,6 @@ | ... | @@ -179,7 +177,6 @@ |
179 | } | 177 | } |
180 | %> | 178 | %> |
181 | </tr> | 179 | </tr> |
182 | - | ||
183 | </table> | 180 | </table> |
184 | </form> | 181 | </form> |
185 | </div> | 182 | </div> | ... | ... |
views/yourtoons.ejs
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | + <title>니툰</title> | ||
5 | + <link rel='stylesheet' href='/stylesheets/style2.css' /> | ||
6 | + <<!-- Bootstrap --> | ||
7 | + <link rel="stylesheet" type="text/css" href="/stylesheets/bootstrap.css"> | ||
8 | + <link rel="stylesheet" type="text/css" href="/stylesheets/font-awesome.css"> | ||
9 | + | ||
10 | + <!-- Stylesheet | ||
11 | + ================================================== --> | ||
12 | + <link rel="stylesheet" type="text/css" href="/stylesheets/style.css"> | ||
13 | + <link rel="stylesheet" type="text/css" href="/stylesheets/nivo-lightbox/nivo-lightbox.css"> | ||
14 | + <link rel="stylesheet" type="text/css" href="/stylesheets/nivo-lightbox/default.css"> | ||
15 | + <link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700" rel="stylesheet"> | ||
16 | + <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet"> | ||
17 | + <link href="https://fonts.googleapis.com/css?family=Dancing+Script:400,700" rel="stylesheet"> | ||
18 | + <link href="https://fonts.googleapis.com/css?family=Gugi&subset=korean" rel="stylesheet"> | ||
19 | + | ||
20 | + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> | ||
21 | + <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||
22 | + <!--[if lt IE 9]> | ||
23 | + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | ||
24 | + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | ||
25 | + <![endif]--> | ||
26 | + <style> | ||
27 | + .toon_name,.toon_thumbnail{ | ||
28 | + width:10%; | ||
29 | + } | ||
30 | + | ||
31 | + td{ | ||
32 | + vertical-align: middle; | ||
33 | + border-bottom: 1px solid #bcbcbc; | ||
34 | + border-left: 1px solid #bcbcbc; | ||
35 | + border-right: 1px solid #bcbcbc; | ||
36 | + margin:0; | ||
37 | + Text-align:center; | ||
38 | + } | ||
39 | + table{ | ||
40 | + border-collapse:collapse; | ||
41 | + border: 2px solid #474747; | ||
42 | + } | ||
43 | + th{ | ||
44 | + border-bottom:2px solid #474747; | ||
45 | + } | ||
46 | + </style> | ||
47 | + | ||
48 | +</head> | ||
49 | +<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top"> | ||
50 | +<!-- Navigation | ||
51 | + ==========================================--> | ||
52 | +<nav id="menu" class="navbar navbar-default navbar-fixed-top"> | ||
53 | + <div class="container"> | ||
54 | + <!-- Brand and toggle get grouped for better mobile display --> | ||
55 | + <div class="navbar-header"> | ||
56 | + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> | ||
57 | + <a class="navbar-brand page-scroll" href="#page-top" style="font-family:Gugi">니툰</a> </div> | ||
58 | + <!-- Collect the nav links, forms, and other content for toggling --> | ||
59 | + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||
60 | + <ul class="nav navbar-nav navbar-right"> | ||
61 | + <li><a href="#mylist" class="page-scroll">OtherList</a></li> | ||
62 | + <li><a href="/mytoons" class="page-scroll">MyList</a></li> | ||
63 | + <li><a href="/auth/logout/kakao" class="page-scroll">Logout</a></li> | ||
64 | + </ul> | ||
65 | + </div> | ||
66 | + <!-- /.navbar-collapse --> | ||
67 | + </div> | ||
68 | +</nav> | ||
69 | + | ||
70 | +<table> | ||
71 | + <tr> | ||
72 | + <th>썸네일</th> | ||
73 | + <th>웹툰명</th> | ||
74 | + <th>요일</th> | ||
75 | + <th>사이트</th> | ||
76 | + <th>바로가기</th> | ||
77 | + </tr> | ||
78 | + <!--로그인한 회원이 내툰에 웹툰이 없을시--> | ||
79 | + <%if (yourtoons.length==0){ | ||
80 | + %> | ||
81 | + <th>니툰리스트에 웹툰이 없습니다! </th> | ||
82 | + <%}%> | ||
83 | + <% for(i=0;i<yourtoons.length; i++){ | ||
84 | + %><tr> | ||
85 | + <td class="toon_name"><%= yourtoons[i].id %></td> | ||
86 | + <td class="toon_thumbnail"><image src="<%= yourtoons[i].thum_link%>"/></td> | ||
87 | + <td class="toon_name"><%= yourtoons[i].name %></td> | ||
88 | + <td class="week"><%= yourtoons[i].week.toLowerCase() %></td> | ||
89 | + <td class="site"><%= yourtoons[i].site %></td> | ||
90 | + <td class="webtoon_link"><a href="<%=yourtoons[i].webtoon_link%>">바로가기</a></td> | ||
91 | + | ||
92 | + </td> | ||
93 | + | ||
94 | + </tr> | ||
95 | + <% } %> | ||
96 | + | ||
97 | +</table> | ||
98 | + | ||
99 | +</br> | ||
100 | + | ||
101 | + | ||
102 | +</body> | ||
103 | + | ||
104 | +</html> |
-
Please register or login to post a comment