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 […]
make a smarter Enlighter Syntax Highlighter
10:25 |
wordpress
|
1468 views
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 […]
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 […]
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 […]
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 […]
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() […]
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() […]
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 […]
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 […]
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.
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.
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 […]
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 […]
jquery plugin skeleton
21:30 |
jquery
|
1158 views
Goal: to provide an usable plugin skeleton
Goal: to provide an usable plugin skeleton
cursor to hand or custom
20:03 |
css
|
1219 views
Goal: to customize the cursor over an object
Goal: to customize the cursor over an object
extender – Math
15:05 |
javascript
|
1134 views
Goal: give some additional function to the Math object
Goal: give some additional function to the Math object

