$('body').scrollspy({
    target: '.bs-docs-sidebar',
    offset: 40
});

@@ -66,8 +66,565 @@
  40%0A%7D);%0A
+%0Aif ($('textarea#content').length %3E 0) %7B%0A%09var regex = new RegExp('https?://%5B%5E%5C%5Cs%5D*', 'g');%0A%09var subst = new Array(24).join('.');%0A%0A%09$('label%5Bfor=%22content%22%5D').append('%3Cdiv class=%22small text-muted%22%3E(%3Cspan id=%22charcount%22%3E0%3C/span%3E of 140 chars)%3C/div%3E');%0A%0A%09$('textarea#content').on('input propertychange', function() %7B%0A%09%09var content = $(this).val().replace(regex, subst);%0A%09%09var length = $(this).val().length - content.length;%0A%0A%09%09$(this).val($(this).val().substring(0, 140 + length));%0A%09%09$('span#charcount').html($(this).val().replace(regex, subst).length);%0A%09%7D);%0A%7D%0A

Add JS char counter for Tweet content