anchor.diff: -//- textured maincolor
  -
   extends layout
   block content
     p
  
positive.code:         return false;
        }
  
        function deactivateSubmit() {
          document.getElementById('upload-button').disabled = true;        
          //- gray out button
        }
  
        function activateSubmit() {
          document.getElementById('upload-button').disabled = false;
          //- restore color
        }
  
      });
  
negative.code: 
    script.
      $(document).ready(function() {
        
        var uploadForm = document.getElementById('upload-form');
        var uploadButton = document.getElementById('upload-button')
        var downloadButton = document.getElementById('download-button');
        var tag = document.getElementById('tag');
  
        deactivateUpload();
        deactivateDownload();
  
        //- Upload button handler
        $('#file').change(function() {
          var fileVal = document.getElementById('file').value;
          if (fileVal) {
            activateUpload();
          }
          else { 
            deactivateUpload();
          }
        });
  
        //- Download button handler
        tag.onkeyup = function() {
          var tagVal = document.getElementById('tag').value;
          if (tagVal.length == 0 || tagVal.length < 6) {
            deactivateDownload();
          }
          else {
            activateDownload();
          }
        }
  
        form.onsubmit = sendFile();
  
  