5. 프로젝트 똥파리 - 자동재생 적용하기
서론 마지막 효과로 소리를 적용해보 겠습니다. HTML 오디오 태그를 추가해준뒤 어트리뷰트로 보이는거처럼 추가해 줍니다. 오디오태그 자동재생은 브라우저에서 막아둔곳이 많아서 다음과 같이 자바스크립트를 수정해 줍니다. const beeSound = document.getElementById("bee-sound"); const [body] = document.getElementsByTagName("body"); function play() { if (!beeSound instanceof HTMLAudioElement) return; if (beeSound.paused) { beeSound.play(); } else { body.removeEventListener("click", play); } console..
Projects/똥파리
2019. 12. 6. 00:32
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- fyling fly
- scss slider
- 도매인 가격비교
- 오류
- Visual Studio 2017
- responsive slider
- JS
- slider
- CSS 슬라이더
- 도메인 가격비교
- C++
- CSS
- xgettext
- #비주얼스튜디오
- C
- #C
- Generic()
- dropdown list
- flying bee
- wxWidgets
- 1000 자리 계산기
- scanf()
- C11
- gettext
- .editorconfig
- stdarg.h
- css slider
- _Generic()
- HTML
- SCSS @for
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함