?? textarea.js
字號:
// $Id: textarea.js,v 1.11 2006/09/07 08:05:31 dries Exp $Drupal.textareaAttach = function() { $('textarea.resizable:not(.processed)').each(function() { var textarea = $(this).addClass('processed'), staticOffset = null; $(this).wrap('<div class="resizable-textarea"></div>') .parent().append($('<div class="grippie"></div>').mousedown(startDrag)); var grippie = $('div.grippie', $(this).parent())[0]; grippie.style.marginRight = (grippie.offsetWidth - $(this)[0].offsetWidth) +'px'; function startDrag(e) { staticOffset = textarea.height() - Drupal.mousePosition(e).y; textarea.css('opacity', 0.25); $(document).mousemove(performDrag).mouseup(endDrag); return false; } function performDrag(e) { textarea.height(Math.max(32, staticOffset + Drupal.mousePosition(e).y) + 'px'); return false; } function endDrag(e) { $(document).unmousemove(performDrag).unmouseup(endDrag); textarea.css('opacity', 1); } });}if (Drupal.jsEnabled) { $(document).ready(Drupal.textareaAttach);}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -