vgquotes/Src/VideoGameQuotes.Web/Views/Shared/CaptchaJavaScript.ascx
tmont 25172d14a3 * compressed javascript
* renamed css file
* removed copypaste code for js includes
* added pdn files
* changed unused images/javascript build type from Content to None
2011-03-01 00:11:17 +00:00

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>