25 lines
809 B
Plaintext
25 lines
809 B
Plaintext
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VideoGameQuotes.Web.Models.ICaptchaModel>" %>
|
||
|
<script type="text/javascript">//<![CDATA[
|
||
|
$(document).ready(function() {
|
||
|
$("#captcha-question").click(function() {
|
||
|
if ($("#captcha-dialog").length) {
|
||
|
$("#captcha-dialog").remove();
|
||
|
$(this).text("[click for correct answer]");
|
||
|
} else {
|
||
|
$("<div/>")
|
||
|
.attr("id", "captcha-dialog")
|
||
|
.addClass("dialog")
|
||
|
.css({ top: "20px" })
|
||
|
.append(
|
||
|
$("<span/>")
|
||
|
.css("white-space", "nowrap")
|
||
|
.text("<%= Model.UnhashedCaptchaAnswer %>")
|
||
|
).insertAfter($("#captcha-question"));
|
||
|
|
||
|
$(this).text("[click to hide]");
|
||
|
}
|
||
|
|
||
|
return false;
|
||
|
});
|
||
|
});
|
||
|
//]]></script>
|