diff --git a/customize.dist/index.html b/customize.dist/index.html index fd6e6edbe..cc2e47e09 100644 --- a/customize.dist/index.html +++ b/customize.dist/index.html @@ -46,7 +46,7 @@ table.scroll thead { display: block; } table.scroll tbody { - height: 100px; + max-height: 100px; overflow-y: auto; overflow-x: hidden; } @@ -142,6 +142,7 @@ recentPads.sort(function (a,b) { return b[1] - a[1]; }); var $table = $('table.scroll'); var $tbody = $table.find('tbody'); + var $tryit = $('#tryit'); var now = new Date(); var hasRecent = false; @@ -194,19 +195,28 @@ forgetPad(pad[0]); $row.fadeOut(750, function () { $row.remove(); - if (!$table.find('tr').length) { $table.remove(); } + if (!$table.find('tr').length) { + $table.remove(); + $tryit.text("Try it out!"); + } + setTableHeight(); }); }); }); - if (recentPads.length < 5) { - $tbody.attr('style', 'height: ' + (28 * recentPads.length + 2) + 'px'); - } else { - $tbody.attr('style', 'height: ' + (28 * 5) + 'px'); - } + var setTableHeight = function () { + if (recentPads.length < 5) { + $tbody.attr('style', 'height: ' + (28 * recentPads.length + 2) + 'px'); + } else { + $tbody.attr('style', 'height: ' + (28 * 5) + 'px'); + } + }; + + setTableHeight(); + if (hasRecent) { $('table').attr('style', ''); - $('#tryit').text('Your Recent pads (stored only in browser)'); + $tryit.text('Your Recent pads (stored only in browser)'); } }); @@ -218,8 +228,8 @@
- CREATE NEW WYSIWYG PAD - CREATE NEW CODE PAD + CREATE NEW WYSIWYG PAD + CREATE NEW CODE PAD