anchor.diff:          document.getElementById("translateWait").classList.add("hidden");
           document.getElementById("markdownRIGHT").value = data;
           onchangeRIGHT();
  +      }).fail(function(){
  +        document.getElementById("translateWait").classList.add("hidden");
  +        document.getElementById("translateError").classList.remove("hidden");
         });
  +    }
  +    function copyText() {
  +      document.getElementById("translateLink").classList.add("hidden");
  +      document.getElementById("copyLink").classList.add("hidden");
  +      document.getElementById("markdownRIGHT").value = document.getElementById("markdownLEFT").value ;
  +      onchangeRIGHT();
       }
   
       function onleaveLEFT() {
  
positive.code:         button#translateWait.btn.btn-small.btn-warning.hidden
            span.glyphicon.glyphicon-refresh.glyphicon-refresh-animate
            span=" Please Wait"
  
  
  
  
negative.code:         f();
        }
        window.translate = translate;
        window.copyText = copyText;
      }
  
      function translate() {
        document.getElementById("translateLink").classList.add("hidden");
        document.getElementById("copyLink").classList.add("hidden");
        document.getElementById("translateWait").classList.remove("hidden");
        var leftLang = "#{params.left_lang.toLowerCase()}";
        var rightLang = "#{(params.right_lang) ? params.right_lang.toLowerCase():'--'}";
  