Warning: session_start(): open(/var/lib/php/sessions/sess_6dt1s6qfkiofc83fhivj2epgna, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// needs JQuery // might actually handle divs too in addition to textareas sS hjs_autoExpandingTextAreas() { ret hcss([[ .auto-expand { max-height: 30em; vertical-align: top; } ]]) + hjs([[ var autoExpandTextArea = function (ta) { ta.style.height = "1px"; // Get the computed styles for the element var computed = window.getComputedStyle(ta); var h = ta.scrollHeight + parseInt(computed.getPropertyValue('border-top-width')) + parseInt(computed.getPropertyValue('border-bottom-width')); ta.style.height = h + 'px'; }; document.addEventListener('input', function (event) { if (!event.target.classList.contains("auto-expand")) return; autoExpandTextArea(event.target); }, false); $(document).ready(function() { $(".auto-expand").each(function() { autoExpandTextArea(this); }); }); ]]); }