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-06 13:02:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2785ce2998bccacd86e16bce89e695cda04832a4
2785ce29
1 parent
753a17dd
some remarks added
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
MelonChart_Crawling/MelonChart.js
MelonChart_Crawling/MelonChart.js
View file @
2785ce2
...
...
@@ -69,13 +69,13 @@ const parsing_exception = (genre) => { // 'snow' 또는 'classic' 에만 작동
classic
=
[
'G선상의 아리아'
,
'트로이메라이'
,
'무언가'
,
'백조'
,
'세레나데'
,
'울게하소서'
,
'카발레리아 루스티카나'
,
'사랑의 인사'
,
'보칼리제'
,
'뱃노래'
,
'안단테 칸타빌레'
,
'월광의 소나타'
,
'미뉴엣 G장조'
,
'엘리제를 위하여'
,
'로망스'
];
function
shuffleArray
(
array
)
{
function
shuffleArray
(
array
)
{
// array의 요소들을 임의로 섞어주는 함수
array
.
sort
(()
=>
Math
.
random
()
-
0.5
);
}
shuffleArray
(
snow
);
shuffleArray
(
snow
);
//실행할 때마다 snow와 classic에 들어있는 요소들을 랜덤으로 배치
shuffleArray
(
classic
);
let
snow5
=
[];
let
snow5
=
[];
// 그 중 앞에서 5개를 뽑아 제공
let
classic5
=
[];
for
(
i
=
0
;
i
<=
4
;
i
++
){
snow5
.
push
(
snow
[
i
])
...
...
Please
register
or
login
to post a comment