Archive for September, 2014


28 Sep 2014

check ctrl key is pressed

18:30 | javascript | 719 views

Goal: etxend mouse interaction by handling the ctrl key


18 Sep 2014

javascript array rotate

22:28 | javascript | 791 views

Goal: to rotate a javascript array This is similar to the assembly shift operation with bites 01011 -> rotate left 2 -> 01101 The solution is simple: for (var i = 0; i < 2; i++) { array.push(array.shift()); } [/js] The shift() will cut/remove the first element from the array. The second step is to […]


13 Sep 2014

js array Cheet Sheet

19:26 | , javascript | 934 views

Goal: Collect the array manipulation methods 1. add item to an array shift: The shift() method removes the first element from an array and returns that element. This method changes the length of the array. pop: The pop() method removes the last element from an array and returns that element. 3. insert item to an […]


3 Sep 2014

wordpress date format Cheet Sheet

21:23 | , wordpress | 875 views

Goal: wordpress date formatting reference sample Day of Month Weekday Month Year Time Full Date/Time see also: http://codex.wordpress.org/Formatting_Date_and_Time


3 Sep 2014

edit in place

14:56 | javascript, web trick | 733 views

Goal: To create a simple editable field on my page There is a simple way to create an editable DIV field. We can start the editing by click or simple on getting focus. So in this case the editor is the container itself. Forget to create input boxes or textarea-s and forget the additional event […]



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