본문 바로가기

전체 글

(152)
css 2025. 11. 28. 14:13
[css] 미디어쿼리 직관적으로 @media (width >= 768px) { // 코드작성}
js 2025. 11. 10. 16:20
[js]swiper 정방향으로 loop가 안 돌때 (역방향 루프만 될때) 1. loopAdditionalSlides를 이용하여 복제된 슬라이드 갯수 늘려주기2. 도큐먼트 레디펑션줘보기 (이게 가장클듯)
js 2025. 9. 24. 11:54
[js] load에서 텍스트만 가져오기 $(".cell").load("/home?r=event&type=gacha .cell")// 이렇게 적으면 .cell안에 .cell이 또 생김// // 여러번해도 계속 생기는게 아니기때문에 상관은 없지만// 텍스트만 가져오고싶을 경우 ajax로 변경해야함// text만 추출$.get("/home?r=event&type=gacha", function(data) {let text = $(data).find(".cell").text();$(".cell").text(text);});// 태그 전체 가져오기$.get("/home?r=event&type=gacha", function(data) { let text = $(data).find(".cell").prop("outerHTML"); $(".cell").h..
js 2025. 9. 22. 13:44
[js]흐르듯이 움직이는 swiper See the Pen 흐르듯이 움직이는 swiper by sangmok-ye (@sangmok-ye) on CodePen.
js 2025. 9. 3. 15:28
[js]lottie 로띠 애니메이션 See the Pen lottie animation by sangmok-ye (@sangmok-ye) on CodePen.https://lottiefiles.com/kr/
js 2025. 9. 3. 11:23
[js]부트스트랩 온클릭으로 모달 열기 onclick function openModal() { const myModal = new bootstrap.Modal(document.getElementById('modal')); myModal.show();}
js 2025. 8. 29. 10:17
[js]input checkbox 전체동의 함수 전체동의 일 때 1, 하단 개별 동의일때 2 let agreeToggleAll = (target, items, idx) => { let itemsLen = $(`${items}`).length let chkedLen = $(`${items}:checked`).length if(idx == 1){ if($(`${target}`).prop("checked")){ $(`${items}`).prop("checked",true) }else{ $(`${items}`).prop("checked",false) } } if(idx == 2){ $(`${items}`).each(function () { if(chkedLe..
html 2025. 8. 13. 13:17
[html]원형 테두리를 따라 적히는 글자 SmartPay WhitePaper Ver1.0

top