Showing
5 changed files
with
23 additions
and
44 deletions
... | @@ -214,7 +214,6 @@ function get_info_using_genre(code,search, res) { | ... | @@ -214,7 +214,6 @@ function get_info_using_genre(code,search, res) { |
214 | var data = JSON.parse(body); | 214 | var data = JSON.parse(body); |
215 | var total = data['total']; | 215 | var total = data['total']; |
216 | var items = data['items']; | 216 | var items = data['items']; |
217 | - | ||
218 | console.log(data); | 217 | console.log(data); |
219 | res.render('movie_info',{item:items}); | 218 | res.render('movie_info',{item:items}); |
220 | } | 219 | } | ... | ... |
... | @@ -17,28 +17,28 @@ $(function () { | ... | @@ -17,28 +17,28 @@ $(function () { |
17 | $('.click_genre').click(function () { | 17 | $('.click_genre').click(function () { |
18 | var str = $(this).text(); | 18 | var str = $(this).text(); |
19 | $.ajax({ | 19 | $.ajax({ |
20 | + type:"GET", | ||
21 | + url:"errata", | ||
22 | + data:{'query':$("#search_input").val()}, | ||
23 | + success:function(args2){ | ||
24 | + if( args2.errata==""){ | ||
25 | + var search = $("#search_input").val(); | ||
26 | + } | ||
27 | + else{ | ||
28 | + var search =args2.errata; | ||
29 | + } | ||
30 | + $.ajax({ | ||
20 | type:"GET", | 31 | type:"GET", |
21 | - url:"errata", | 32 | + url:"serach", |
22 | - data:{'query':$("#search_input").val()}, | 33 | + data:{'genre':str, 'search':search}, |
23 | - success:function(args2){ | 34 | + success:function(args){ |
24 | - if( args2.errata==""){ | 35 | + $('#info').html(args); |
25 | - var search = $("#search_input").val(); | 36 | + //alert(args); |
26 | - } | 37 | + alert(str + " 장르를 선택하셨습니다"); |
27 | - else{ | 38 | + }, |
28 | - var search =args2.errata; | 39 | + }); |
29 | - } | 40 | + }, |
30 | - $.ajax({ | 41 | + }); |
31 | - type:"GET", | ||
32 | - url:"serach", | ||
33 | - data:{'genre':str, 'search':search}, | ||
34 | - success:function(args){ | ||
35 | - $('#info').html(args); | ||
36 | - //alert(args); | ||
37 | - alert(str + " 장르를 선택하셨습니다"); | ||
38 | - }, | ||
39 | - }); | ||
40 | - }, | ||
41 | - }); | ||
42 | }) | 42 | }) |
43 | }) | 43 | }) |
44 | 44 | ... | ... |
test.py
deleted
100644 → 0
views/actor_info.ejs
deleted
100644 → 0
... | @@ -17,8 +17,8 @@ | ... | @@ -17,8 +17,8 @@ |
17 | <tbody> | 17 | <tbody> |
18 | <% for(var i=0; i < item.length; i++) { %> | 18 | <% for(var i=0; i < item.length; i++) { %> |
19 | <tr> | 19 | <tr> |
20 | - <td> <p><%= item[i]["title"]%></p></td> | 20 | + <td> <p><%= item[i]["title"] %></p></td> |
21 | - <td><img src="<%=item[i].image%>"></td> | 21 | + <td><img src="<%= item[i].image %>"></td> |
22 | <td> <p><%= item[i]["subtitle"]%></p></td> | 22 | <td> <p><%= item[i]["subtitle"]%></p></td> |
23 | <td> <p><%= item[i]["pubDate"]%></p></td> | 23 | <td> <p><%= item[i]["pubDate"]%></p></td> |
24 | <td> <p><%= item[i]["director"]%></p></td> | 24 | <td> <p><%= item[i]["director"]%></p></td> | ... | ... |
-
Please register or login to post a comment