2 Jun 2014

make a smarter Enlighter Syntax Highlighter

10:25 | wordpress | 1468 views

Goal: to add some usefull functionality to the Enlighter plugin In my blog I use the Enlighter plugin to colorize my code sections. The plugin is great, but have some defect. My extender/customzier is the following: 1. the code block height maximized to 140px and added to div style 2. I’ve added 2 controller to […]


1 Jun 2014

animated funny mushroom on the date brick

21:17 | javascript | 1102 views

This is a funny post… 2 June 2014 1 June 2014 this post is about he and his brothers. Yes, he is not alone… Click on the date block on the left side. The mushroom jumping on from the far. Twinkling, bored, jumping, for a while waiting and jumping down to nowhere. Let’s check the […]


1 Jun 2014

bindable none DOM objects

17:52 | javascript | 1033 views

Goal: to build an effective handshake mechanism between objects In jQuery we have the very useful bind/trigger logic. I want to use some similar on my objects. What I will do I will extend the Object class with 3 methods, like _bind, _unbind, _trigger _bind: to attach a function to my object _unbind: to detach […]


1 Jun 2014

shrink an array

17:06 | javascript | 1021 views

When you drop an element from an array by The second item will be there with value. Let’s delete more than one item from the array and there will be many holes in the line. Here is a simple shrink function to solve this problem. This is a simple Array extension. var shrink = function() […]


1 Jun 2014

extender – Array

16:52 | javascript | 1055 views

Goal: give some additional function to the Array type // 1. remove the specified element TypeExtend(Array, ‘remove’, function(from, to) { try{ var rest = this.slice((to || from) + 1 || this.length); this.length = from < 0 ? this.length + from : from; return this.push.apply(this, rest); } catch(e){ return false; } }); // 2. remove all […]


1 Jun 2014

arrange text to the center of a container div (single or multiline)

10:21 | web trick | 1116 views

Goal: show text in a div like in a table cell That’s all. Add some additional styles to the container (size, decoration) and… I’m on the centerof my parent Here is a small extra: center a div in a div. The old technik play with the margins.


31 May 2014

extender – Object

22:52 | javascript | 1248 views

Goal: give some additional function to the Object type available extends: objectId: global unique identifier for every DOM and non DOM object _bind, _unbind, _trigger: bind logic for every DOM and non DOM object _trace, _watch: easy setable trace and watch functionality _catch (SET catching): bind a function to the variable setter _chain: to investigate […]


31 May 2014

jquery plugin skeleton

21:30 | jquery | 1158 views

Goal: to provide an usable plugin skeleton


31 May 2014

cursor to hand or custom

20:03 | css | 1219 views

Goal: to customize the cursor over an object


31 May 2014

extender – Math

15:05 | javascript | 1134 views

Goal: give some additional function to the Math object


#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; }