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.
Archive for March, 2015
24 Mar 2015
get all the parents
2:43 |
javascript |
982 views
19 Mar 2015
autofit div variant
12:41 |
web trick |
913 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 […]
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 |
955 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 […]
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 […]