본문 바로가기

[javascript] Compare Date 특정시간과 현재 시간 비교 const initDate = new Date(2021, 5, 27, 12, 44, 30);//yyyy, mm, dd, hh, mm, ss function compareDate(targetDate){ let nowDate = new Date(); nowDate.setMonth(nowDate.getMonth() + 1); return targetDate < nowDate ? true : false } console.log(compareDate(initDate)); //특정시간이 지나면 true 출력
Google Slides Short Cuts Move Element by pixel : shift + arrow keys Group : ctrl + alt + g Copy(Paste) Styles : ctrl + alt + c(v) bring to front(Send to back) : ctrl + up(down) arrow
[Javascript] Cover Up Scrolling layout. [스크롤시 덮이는 레이아웃] [완성본 Complete] https://nam-h-j.github.io/cover_up_scroll_layout/index.html [잡설 Small talks] 정확한 레이아웃 명칭을 몰라서 구글링 실패 이벤트 관련 소스코드가 제이쿼리로 구현하는게 너무 많아서 참고하기가 어려웠음 10시간 정도 삽질..(absolute 로 하려다가 개망함) 보통 CSS에 fixed 속성 만 주면 매우 쉽게 만들 수 있지만 덮이는 효과가 나오는 레이아웃이 스크롤 되다가 중간에 나타나야 했음.. 라이브러리 사용하는게 정신건강에 좋지만.. 뿌듯...^^... [Code] //변수 var bodyElem = document.body,// 전체 바디 fixedArea = document.querySelector('.fixed_..
[React] Styled-Components It provides what for React can use sass in react (sass 사용가능) can extends style properties (style 속성 확장 가능) don&#39;t need className and css files anymore (className 사용 할 필요 없음, css파일 따로 필요없음) It provides what for React-Native you can use pure css properties when write styles(리액트 네이티브 스타일 문법 안써도 됨) install npm intall --save styled-componentshow to use import React, { Component, Fragment } from &#..
[Compass / 컴퍼스] Create compass project compass 프로젝트 생성 [터미널, 생성하고 싶은 위치에서] compass create projectFolderName 해당 디렉터리에 config.rb 파일과 .sass-cache, sass, stylesheets 폴더가 생성 됨 기존 프로젝트에 compass 임포팅 compass install compass 완료시 아래 메시지가 출력됨 To import your new stylesheets add the following lines of HTML (or equivalent) to your webpage: 2.메시지가 시키는대로 HTML 헤드에 복붙 3.생성된 sass파일 -> sass 폴더로 4.sass와 같은 이름의 css 파일을 만들고 -> stylesheets 폴더로 5.sass 파일 최상단..
Modernizr - 모더나이저, 브라우저 기능 검사 내용링크: https://webdir.tistory.com/82
[Compass] Sass, Compass, ruby install rbenv install with homebrew brew update //homebrew update brew install rbenv ruby-buildruby install rbenv install 2.x.x //install 2.x.x version rbenv rehash //start new version of rubyruby -v(version check) ruby -vruby setiing rbenv global 2.x.x //set global ruby version rbenv local 2.x.x //set local ruby version Homebrew: https://brew.sh/index_ko Sass install gem install sassCompass install gem..
마크다운 작성법 MARKDOWN 원본링크 : <https://gist.github.com/ihoneymon/652be052a0727ad59601> [공통] 마크다운 markdown 작성법 ====================== 1. 마크다운에 관하여 1.1. 마크다운이란? Markdown은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누..