Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강희주
/
Music_Recommendation_Website
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
강희주
2022-06-09 10:01:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
242e518eb20624503da24204d2942e9eca18fd13
242e518e
1 parent
a72911ec
Update main
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
main_/main.html
main_/main.js
main_/main.html
View file @
242e518
...
...
@@ -56,13 +56,27 @@
<fieldset>
<legend>
추천 음악 정보
</legend>
<div><input
type=
"button"
value=
"음악 추천 받기"
></div><br>
<h4>
추천 음악 1
</h4>
<iframe
id=
"video1"
width=
"450"
height=
"280"
src=
""
frameborder=
"0"
allowtransparency=
"true"
allowfullscreen
></iframe>
<a
href=
"#"
id=
"playvideo"
>
Play button
</a>
<script>
var
userLat
=
37
;
var
userLng
=
127
;
fetch
(
"http://localhost:3000/music"
)
.
then
(
res
=>
res
.
json
())
.
then
(
function
(
data
)
{
$
(
"#playvideo"
).
click
(
function
(){
$
(
"#video1"
)[
0
].
src
+=
data
.
link
;
});
})
</script>
<!-- <h4>추천 음악 1</h4>
<iframe width="942" height="530" src="https://www.youtube.com/embed/vnS_jn2uibs" title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><br>
<h4>추천 음악 2</h4>
<iframe width="942" height="530" src="https://www.youtube.com/embed/P6gV_t70KAk" title="YouTube video player" frameborder="0"
allow=
"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe><br>
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><br>
-->
</fieldset>
...
...
main_/main.js
View file @
242e518
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment