Toggle navigation
Toggle navigation
This project
Loading...
Sign in
한요섭
/
OSS_Project
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 15:45:51 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0fc70cc7231369a78d58f22649f121a587837a90
0fc70cc7
1 parent
09711342
1207
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
44 deletions
app.js
main.ejs
test.py
views/actor_info.ejs
views/movie_info.ejs
app.js
View file @
0fc70cc
...
...
@@ -214,7 +214,6 @@ function get_info_using_genre(code,search, res) {
var
data
=
JSON
.
parse
(
body
);
var
total
=
data
[
'total'
];
var
items
=
data
[
'items'
];
console
.
log
(
data
);
res
.
render
(
'movie_info'
,{
item
:
items
});
}
...
...
main.ejs
View file @
0fc70cc
...
...
@@ -17,28 +17,28 @@ $(function () {
$
(
'.click_genre'
).
click
(
function
()
{
var
str
=
$
(
this
).
text
();
$
.
ajax
({
type
:
"GET"
,
url
:
"errata"
,
data
:{
'query'
:
$
(
"#search_input"
).
val
()},
success
:
function
(
args2
){
if
(
args2
.
errata
==
""
){
var
search
=
$
(
"#search_input"
).
val
();
}
else
{
var
search
=
args2
.
errata
;
}
$
.
ajax
({
type
:
"GET"
,
url
:
"errata"
,
data
:{
'query'
:
$
(
"#search_input"
).
val
()},
success
:
function
(
args2
){
if
(
args2
.
errata
==
""
){
var
search
=
$
(
"#search_input"
).
val
();
}
else
{
var
search
=
args2
.
errata
;
}
$
.
ajax
({
type
:
"GET"
,
url
:
"serach"
,
data
:{
'genre'
:
str
,
'search'
:
search
},
success
:
function
(
args
){
$
(
'#info'
).
html
(
args
);
//alert(args);
alert
(
str
+
" 장르를 선택하셨습니다"
);
},
});
},
});
url
:
"serach"
,
data
:{
'genre'
:
str
,
'search'
:
search
},
success
:
function
(
args
){
$
(
'#info'
).
html
(
args
);
//alert(args);
alert
(
str
+
" 장르를 선택하셨습니다"
);
},
});
},
});
})
})
...
...
test.py
deleted
100644 → 0
View file @
0971134
import
sys
print
sys
.
argv
views/actor_info.ejs
deleted
100644 → 0
View file @
0971134
<table class="table table-condensed">
<thead>
<tr>
<th>제목</th>
<th>사진</th>
</tr>
</thead>
<tbody>
<% for(var i=0; i < item.length; i++) { %>
<tr>
<td> <p><%= item[i]["title"]%></p></td>
</tr>
<% } %>
</tbody>
</table>
views/movie_info.ejs
View file @
0fc70cc
...
...
@@ -17,8 +17,8 @@
<tbody>
<% for(var i=0; i < item.length; i++) { %>
<tr>
<td> <p><%= item[i]["title"]%></p></td>
<td><img src="<%=
item[i].image
%>"></td>
<td> <p><%= item[i]["title"]
%></p></td>
<td><img src="<%=
item[i].image
%>"></td>
<td> <p><%= item[i]["subtitle"]%></p></td>
<td> <p><%= item[i]["pubDate"]%></p></td>
<td> <p><%= item[i]["director"]%></p></td>
...
...
Please
register
or
login
to post a comment