본문 바로가기

분류 전체보기

Javascript DOM 위치 이동 el.appendChild(el1); el의 마지막 자식요소로 el1을 추가 el.prepend(el1); el의 첫번째 자식요소로 el1을 추가 el.insertBefore(el1, el2); el의 자식요소 중 el2의 앞에 el1을 추가한다. el2자리에 null을 입력하면 가장 마지막 위치에 추가된다.
HDD 복구 안 되게 포맷하기 1. 내 PC 탐색기에서 드라이브 우클릭 -> BitLocker 켜기 -> 암호를 복잡하게 입력 -> 복구키를 파일에 저장 (불필요하니 바로 삭제) 2. cipher 실행 cipher /w:삭제한복구키경로 3. BitLocker 계속 진행 전체 드라이브 암호화 -> 새암호화 모드 클릭 -> 완료 후 재부팅 4. 빠른 포맷 3. cipher 실행 cipher /w:드라이브명:
Windows SSD trim 설정 1. cmd를 관리자 권한으로 실행한다. 2. 아래 명령어를 입력한다. fsutil behavior query DisableDeleteNotify 3. 위의 명령어 입력후 결과에 따라 아래를 판단한다. DisableDeleteNotify=0 trim이 활성화 됨 DisableDeleteNotify=1 trim이 비활성화됨
CSS 주석 1. 한줄 // 한줄 주석 {} 주의사항: {}이 빠지면, 상황에 따라 한줄만 주석처리 될 수도 있고, 다음 여러줄까지 주석처리 될 수도 있다. 2. 여러줄 /* 여 러 줄 */ 3. 결론 CSS 에서는 원칙적으로는 한줄 주석이 없다고 봐야 한다. 그래서 한 줄 주석도 아래와 같이 처리하는 것이 안전하다. /* 한줄도 이렇게 주석처리하자 */
Javascript sticky CSS .sticky { position: fixed; top: 0; } Javascript // When the user scrolls the page, execute myFunction window.onscroll = function() {myFunction()}; // Get the navbar var navbar = document.getElementById("navbar"); // Get the offset position of the navbar var sticky = navbar.offsetTop; // Add the sticky class to the navbar when you reach its scroll position. Remove "sticky" when you leave the ..