$(document).ready(function() {
  $('#text').focus(function() {
    $('#text').select();
  });

  $('#text').focus();

  // TODO there is only one element so each should not be used
  $('#text').each(function () {
    this.setAttribute('style', 'height:' + (this.scrollHeight) + 'px;overflow:hidden;resize:none');
  }).on('input', function () {
    this.style.height = 'auto';
    this.style.height = (this.scrollHeight) + 'px';
  });

  $('#supported').text('Supported/allowed: ' + !!screenfull.enabled);

  if (!screenfull.enabled) {
    return false;
  }

  $('#the-button').click(function () {
    ga('send', 'event', 'button', 'click', 'Go Fullscreen');
    screenfull.request($('#text-wrapper')[0]);
  });

  $('#text').keydown(function (e) {
    if ((event.keyCode == 10 || event.keyCode == 13) && (event.ctrlKey || event.metaKey)) {
      $('#the-button').trigger('click');
    }
  });

  if (screenfull.enabled) {
    document.addEventListener(screenfull.raw.fullscreenchange, function () {
      if (screenfull.isFullscreen) {
        $('#text-wrapper').addClass('fullscreen');
        $('#helper').addClass('helper');

        // Set #text-follower content to whatever was typed in the #text textarea
        $("#text-follower").text($("#text").val());

        // Exit fullscreen on tap, click, or keyboard press
        $('#text-wrapper').click(function() { screenfull.exit(); });
        $(document).keypress(function()     { screenfull.exit(); });

        var idleTime     = 0;
        var idleInterval = setInterval(timerIncrement, 1000);

        // Zero the idle timer on mouse movement.
        $(this).mousemove(function (e) {
          idleTime = 0;
          $('#text-wrapper').removeClass('hide-cursor');
        });
        $(this).keypress(function (e) {
          idleTime = 0;
          $('#text-wrapper').removeClass('hide-cursor');
        });

        function timerIncrement() {
          idleTime = idleTime + 1;
          if (idleTime > 1) {
            $('#text-wrapper').addClass('hide-cursor');
          }
        }
      } else {
        $('#text-wrapper').removeClass('fullscreen');
        $('#helper').removeClass('helper');
        $('#text').focus();
      }
    });
  }
});

@@ -647,24 +647,272 @@
 llscreen');%0A
+%0A    // Set #text-follower content to whatever was typed in the #text textarea%0A    textToShow = $(%22#text%22).val()%0A%0A    if (textToShow.trim().length %3C 1) %7B%0A      textToShow = 'Did you type anything?'%0A    %7D%0A%0A    $(%22#text-follower%22).text(textToShow);%0A%0A
     screenfu
@@ -1226,33 +1226,32 @@
 change, function
- 
 () %7B%0A      if (s
@@ -1330,184 +1330,8 @@
 n');
-%0A        $('#helper').addClass('helper');%0A%0A        // Set #text-follower content to whatever was typed in the #text textarea%0A        $(%22#text-follower%22).text($(%22#text%22).val());
 %0A%0A  
@@ -1523,24 +1523,54 @@
 xit(); %7D);%0A%0A
+        // Hide mouse pointer%0A
         var 
@@ -2154,16 +2154,22 @@
 %0A      %7D
+%0A     
  else %7B%0A
@@ -2226,52 +2226,8 @@
 ');%0A
-        $('#helper').removeClass('helper');%0A
     

Add fallback string for empty input