anchor.diff: -//- textured maincolor
  -
   extends layout
   block content
     p
  
positive.code: 
    script.
      $(document).ready(function() {
        var uploadForm = document.getElementById('upload-form');
        
        deactivateSubmit();
  
        $('#file').change(function() {
          var fileVal = document.getElementById('file').value;
          if (fileVal) {
            activateSubmit();
          }
          else { 
            deactivateSubmit(); 
          }
        });
  
        form.onsubmit = sendFile();
  
  
negative.code:         return false;
        }
  
        function deactivateUpload() {
          uploadButton.disabled = true;
          uploadButton.style.opacity = 0.4;
        }
  
        function activateUpload() {
          uploadButton.disabled = false;
          uploadButton.style.opacity = 1;
        }
  
        function deactivateDownload() {
          downloadButton.disabled = true;
          downloadButton.style.opacity = 0.4;
        }
  
        function activateDownload() {
          downloadButton.disabled = false;
          downloadButton.style.opacity = 1;
        }
  
      });
  