Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update main.js
  • Loading branch information
ligopsychakis-michalis authored Mar 1, 2020
commit 246fbaac1329f9e6019adfde0a0bba339d9ac862
4 changes: 2 additions & 2 deletions Week3/homework/y-tube-api/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function getChannel(channel){
<li class='collection-item'>Views: ${numberWithDots(channel.statistics.viewCount)}</li>
<li class='collection-item'>Videos: ${numberWithDots(channel.statistics.videoCount)}</li>
</ul>
<p>${channel.snippet.discription}</p>
<p>${channel.snippet.description}</p>
<hr>
<a class='btn grey darken-2' href='https://youtube.com/${channel.snippet.customUrl}'>Visit Channel</a>
`;
Expand Down Expand Up @@ -139,4 +139,4 @@ function requestVideoPlaylist(playListId){
//add dots to numbers
function numberWithDots(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
}
}