This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Adapted from Autogrow Textarea Plugin | |
* @see http://www.technoreply.com/autogrow-textarea-plugin/ | |
*/ | |
(function($) { | |
$.fn.autoGrow = function() { | |
return this.each(function() { | |
var txtArea = $(this); | |
var colsDefault = txtArea.attr('cols'); | |
var rowsDefault = txtArea.attr('rows'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Here is the simplified version. Courtesy of Mike Koss. | |
* | |
* See, http://labnote.beedesk.com/the-pitfalls-of-html5-applicationcache | |
*/ | |
function handleAppCache() { | |
if (applicationCache == undefined) { | |
return; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code | |
$("button").single_double_click(function () { | |
alert("Try double-clicking me!") | |
}, function () { | |
alert("Double click detected, I'm hiding") | |
$(this).hide() | |
}) | |