Sha256: 1fe921f363874b673722bad028ddca2df03e1e3cbb02240b352623d17ff10e11
Contents?: true
Size: 1.18 KB
Versions: 10
Compression:
Stored size: 1.18 KB
Contents
$(document).ready(function(){ //textarea increase / decrease $(".text_area_animate").focus(function() { var val_length = $(this).val().length; var size = $(this).attr("expand-height"); if (val_length <= 0 ) { $(this).animate({"height": size}, "fast" ); } } ); $(".text_area_animate").focusout(function() { var val_length = $(this).val().length; var row = $(this).attr("row"); // 1 row = 16px var size = $(this).attr("expand-height"); if (val_length <= 0 ) { $(this).animate({"height": "30px" }, "fast" ); } } ); //form hint $(".form-control").focus(function() { var text_hint = $(this).attr("hint"); if (text_hint.length > 0) { var text_id = $(this).attr("id"); var text_hint = $(this).attr("hint"); $("#" + text_id).after("<span class='input-error-hint'>"+ text_hint+ "</span>"); $(".input-error-hint").css("font-size", "11px").css("color", "grey"); } }); Tinycon.setOptions({ width: 7, height: 9, font: '10px arial', colour: '#ffffff', background: '#549A2F', fallback: true }); });
Version data entries
10 entries across 10 versions & 1 rubygems