티스토리 뷰


var times = document.querySelectorAll('.style-scope .style-scope .yt-simple-endpoint .style-scope .yt-simple-endpoint .style-scope .style-scope span');
var duration = 0;
for(var i=0; i<times.length; i++) {
var t = times[i];
t = t.innerText;
t = t.split(':');
min = t[0];
sec = t[1];
duration = duration + parseInt(sec) + parseInt(min)*60;
}
console.log(duration/60/60);
'Front, JavaScript' 카테고리의 다른 글
JavaScript) Fetch API와 FormData를 이용해 파일을 업로드 하기 (0) | 2019.09.13 |
---|---|
JavaScript) JS의 Callback 예제 (0) | 2019.09.13 |
JavaScript) prototype과 상속 (0) | 2019.09.13 |
JavaScript) arguments / apply&call (0) | 2019.09.13 |
JavaScript) Closure (클로저) (0) | 2019.09.13 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- webhacking.kr
- bfs
- 해외여행
- reversing
- JPA
- Stack
- Java
- C
- 웹해킹
- FRAGMENT
- git
- queue
- Vo
- 프로그래머스
- 개발자
- javascript
- 리버싱
- 우아한 테크코스
- sort
- brute-force
- Data Structure
- Algorithm
- Android
- dfs
- Android Studio
- 회고
- mysql
- OneToMany
- graph
- socket
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함