anchor.diff:      $('.btn-obtener').click(function(event) {
         $('.item').remove();
         $('.alert').remove();
  -
  -      //var url_input = e.originalEvent.clipboardData.getData('text');
         var url_input = $("#deal_link").val();
  -      /*
  -        $.ajax({
  -        url:  "/validate/link",
  -        dataType: "json",
  -        data: {
  -           url_host: url_input
  -        },
  -        success: function(data) { 
  -          if(data.message == "exists"){
  -            console.log("La promoción ya existe");
  -          }else{
  -            console.log("La promoción no existe");
  -          }
  -        }
  -        });
  -      */
         var expression = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi;
         var regex = new RegExp(expression);
         if (url_input.match(regex)) {
  
positive.code:                   var price = Number(data.price.replace(/[^0-9\.]+/g,""));
                    $('#deal_price').val(price);  
                  }
                  for (i in data.images) {
                    $('#scrapp-images').append('<div class="col-sm-2 col-xs-4 imgscrappcontainer" style="margin-bottom:5px;"><img src="'+data.images[i]+'" class="image-to-load" id="imgscrapp-'+i+'" style="display:none; max-height:101px;"></div>');
                  }
                  count=0;
                  $('.imgscrappcontainer img').each(function(index, el) {
                    
                    idIm = $(this).attr('id');
                    if (checkURL($("#"+idIm).attr('src'))){
                      $("#"+idIm).load(function() {
                          if($(this).height() > 100 && $(this).width() > 100){
                            if(count < 24){
                            $(this).show();
                            $(this).addClass('img-responsive');
                            count++;
                            }
                          }else{
                            $(this).parent().remove();
                          }
                      });
                    }else{
                      $(this).parent().remove();
                    }
                  });
                  $('.imgscrappcontainer img').click(function(event) {
                    $('.imgscrappcontainer img').css({
                      'opacity': '0.7',
  
negative.code:                   route = $(this).attr('src');
                    $('#deal_imagen').val(route);
                  });
                  
                }else{
                  $('#scrapp-images').append('<div class="alert alert-danger">No pudimos recuperar la imagen de tu promoción, intenta de nuevo o sube una imagen</div>');
                }
              }
            });
  