"Life is a dream for the wise, a game for the fool, a comedy for the rich, a tragedy for the poor." - שלום־עליכם

English

Pseudo element 란 (adv.)

예를들어 paragraph 에 첫번째 단어만 크기를 키우고 강조하고 싶을때 pseudo element 를 사용합니다. 이렇게 p:first-letter { font-size: 2em; float: left; } p:first-line { font-weight: 600; } 한 paragraph 의 …

php/js referrer comparison

.js two different referrer if (document.referrer == (“http://example.com/foo.html” || “http://example.com/bar.html“))       location.href = "foobar.html"; php $referrer = $_SERVER; if (preg_match("/site1.com/",$referrer)) {       header('Location: http://www.example.com/page-site1.html'); } elseif (preg_match("/site2.com/",$referrer)) {       header('Location: http://www.example.com/page-site2.html'); } …