anchor.diff:                    f.lastModifiedDate.toLocaleDateString(), '</li>'
                    );
       }
  -    document.getElementById('bar').innerHTML = '<div id="uploading"><div id="progress" class="bar"><div id="progressbar">&nbsp;</div><div id="percents"></div></div></div>';
       document.getElementById('list').innerHTML = '<ul>' + output.join('') + '</ul>';
     }
     document.getElementById('album_photos_photo').addEventListener('change', handleFileSelect, false);
  
positive.code: <% if !current_user.nil? && @album.user_id == current_user.id %>
    <%= link_to 'Edit', edit_album_path(@album), class: "btn btn-link" %> 
  <% end %>
  
  
  
  <br />
  <ul class="snsb">
  
negative.code:     /* scripts locations for safari */
      jqueryPath: "/assets/jquery.js",
      uploadProgressPath: "/assets/jquery.uploadProgress.js",
      });
  });
  
  $("#image-new-form").on("ajax:error", function() {
    $("#image-new-error-message").removeClass('hide').show();
    $("#image-new-success-message").hide();
    $("#image-new-progress-message").hide();
  }).on("ajax:success", function() {
    $("#image-new-error-message").hide();
    $("#image-new-success-message").removeClass('hide').show();
    $("#image-new-progress-message").hide();
  }).on("ajax:before", function() {
    $("#image-new-error-message").hide();
    $("#image-new-success-message").hide();
    $("#image-new-progress-message").removeClass('hide').show();
    setTimeout(function(){
      var currentPercentage = 0;
      var progress = setInterval(function() {
          if (currentPercentage == 100) {
              clearInterval(progress);
          } else {
              currentPercentage += 5;
              $("#image-new-progress-message .bar").css('width', (currentPercentage) + '%').attr('aria-valuenow', currentPercentage);
          }
          $("#image-new-progress-message .bar").text((currentPercentage) + '%');
      }, 500);
   }, 1000);
  });
  
  </script>
  