System wide in OS X, Opt + left/right arrows moves the cursor to the next word.
Been using this like wild since I found it earlier this week.
In Mobile Safari, the iPhone can ‘listen’ to up to 5 touches. The iPad’s limit is 11 (testing 4.2 beta).
I speculate that iPad maxes out at 11 instead of 10, for any weird issue where you already have all 10 figures touching and you move one extra quick and it registers as another ‘touchstart’ event.
The low-fi approach is to call
console.time("timing foo")
before the code you want to measure, and thenconsole.timeEnd("timing foo")
afterwards. Firebug will then log the time that was spent in between.
Easy way to measure performance, rather than invoking console.profile()
. Also works with the WebKit Inspector.
Mobile Safari in iPad currently does not support elliptical border-radius.
You can make a jQuery object using standard DOM methods
$( document.getElementsByTagName('input') );
Is the same thing as
$('input');
-webkit-line-clamp
is an unsupported WebKit property that limits the number of lines of text displayed in a block element. In order to achieve the effect, it needs to be combo-ed with a couple of other exotic WebKit properties.
<p style="
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
">
WebKit Browsers will clamp the number of lines
in this paragraph to 2. Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis
aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui
officia deserunt mollit anim id est laborum.
</p>