Archive for March, 2015


24 Mar 2015

get all the parents

2:43 | javascript | 907 views

Goal: create a simple way to collect all the parents The code is the simpliest on the world: …the result is an array with the parents of the element. The same idea but width size: …the result is an array with the width of all the parents of the element.


19 Mar 2015

autofit div variant

12:41 | web trick | 825 views

Goal: to find a good way to create an autofit div How can I use a divs to fill spaces like panels in the desktop applications? 1. css calc() This is brilliant but maybe dangerous because of the browsers. 2. content shifting with padding 3. stretched sail – div glued to the edges This way […]


11 Mar 2015

replace a frame

11:59 | javascript | 872 views

Goal: remove marker from a text The problem is simple. I have a markered text like this: and I want to remove the marker structure quickly. The solution with regex back-reference: where x the markered text itself $1 (not used) is the main regex: (<span class=”mark”>…) $2 (what we need to keep) is the second […]



#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }