곽교린

Feat loading next comment page button

......@@ -40,6 +40,7 @@ function showcomment(response, VideoNum){
<iframe width="560" height="315" src="https://www.youtube.com/embed/${VideoNum}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
<a href="http://localhost:3000/search?videourl=${VideoNum}&nextpage=${savednpt}"><input type="button" value="댓글 더 불러오기"></a>
<br>
${commentDisplay}
</body>
......@@ -122,8 +123,8 @@ var app = http.createServer(function(request,response){ // request는 브라우
commentNum = 0; //코멘트 리스트 초기화
videoNum = queryData.videourl;
console.log(videoNum);
let npt = ""
if(queryData.nextpage != null) npt = queryData.nextpage
loadcomment(apiKey,videoNum,npt,2, response);
}
});
......