diff --git a/Website/resolve.php b/Website/resolve.php index f22c95d..dddadb7 100644 --- a/Website/resolve.php +++ b/Website/resolve.php @@ -30,8 +30,9 @@
http://lob.li/ + - @@ -47,46 +48,6 @@
- - - -
- Oh noes! An error has occured. -
- - - -
- Your link: - Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. - - - - - -
- - - -
- Your link: - Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. - is not a lob.li link.
However we found that it has been shortened. lob.li/123 - - - -
- - - -
- Your link: - Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. - is not a lob.li link and has not been shortened. -
- - -
@@ -94,7 +55,7 @@ @@ -141,14 +102,12 @@ $.post("process.php?token=", $(this).serialize(), function(data){ $("#message").hide().slideDown("fast"); $("#theLoader").hide(); - if($('#error').length){ - $('#short-button').removeClass('btn-primary'); - $('#short-button').removeClass('btn-success'); - $('#short-button').addClass('btn-danger'); + if($('#danger').length){ + $('#short-button').removeClass("btn-primary btn-success btn-warning").addClass("btn-danger"); }else if($('#success').length){ - $('#short-button').removeClass('btn-primary'); - $('#short-button').removeClass('btn-danger'); - $('#short-button').addClass('btn-success'); + $('#short-button').removeClass("btn-primary btn-danger btn-warning").addClass("btn-success"); + }else if($('#warning').length){ + $('#short-button').removeClass("btn-primary btn-success btn-danger").addClass("btn-warning"); } }); });