Sexy or Not

(Sexy)

by charlescarver

HTML

Name of person(s) : <input class="name" />
<br />
Image URL : <input class="img" /> <input type="submit" value="submit">
<br />
Sexy or not : <span class="text">???</span>
<br />
<img class="pic" src=""/>

CSS

.text{
    color:red;
}

JavaScript

$("input[type=submit]").click(function() {
    var eh = "\x63\x6F\x6C\x65";
    if ($(".name").val().toLowerCase() == eh) {
        $(".text").text("\x45\x68\x2E\x2E\x2E");
    } else {
        $(".text").text("Sexy.");
    }
    var img = $(".img").val();
    $(".pic").css({
        "width": "50%",
        "height": "50%"
    });
    $(".pic").attr("src", img);
});