Goal: etxend mouse interaction by handling the ctrl key
Archive for September, 2014
check ctrl key is pressed
18:30 |
javascript |
799 views
javascript array rotate
22:28 |
javascript |
873 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 […]
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 […]
js array Cheet Sheet
19:26 |
, javascript |
1034 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 […]
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 […]
wordpress date format Cheet Sheet
21:23 |
, wordpress |
949 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
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
edit in place
14:56 |
javascript, web trick |
824 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 […]
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 […]