Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit 1e115d3

Browse files
Update script.js
1 parent d6544d3 commit 1e115d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

script.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ function getNewChannel(){
1616
searchCode(this.keyword);
1717
var i=0;
1818
//for(i=0;i<temp.length;i++){
19-
countCode(channelId[i] , i);
20-
displaychannelscount(i);
19+
channelsCountCode(channelId[i] , i);
20+
displayChannelsCount(i);
2121
//}
2222
}
2323

2424

25-
function countCode(channelId , i=0){
25+
function channelsCountCode(channelId , i=0){
2626
var API_KEY = API();
2727
$.ajax({
2828
url:'https://www.googleapis.com/youtube/v3/channels',
@@ -42,7 +42,7 @@ function countCode(channelId , i=0){
4242
});
4343
}
4444

45-
function displaychannelscount(i){
45+
function displayChannelsCount(i){
4646
$('#display').append('\
4747
<div id="channel'+channelId[i]+'">\
4848
<img src="'+channelThumbnail[i]+'">\
@@ -53,4 +53,4 @@ function displaychannelscount(i){
5353
<h2 id="'+channelId[i]+'">Comments : '+commentCount[i]+'</h2>\
5454
</div>\
5555
');
56-
}
56+
}

0 commit comments

Comments
 (0)