Check for grecaptcha availibility

This commit is contained in:
斟酌 鵬兄 2015-10-19 23:16:47 +08:00
parent dedb6bdae2
commit 8f05e37ee4
3 changed files with 15 additions and 1 deletions

View File

@ -284,5 +284,6 @@ iframe[src="about:blank"] {
.c_so_sorry {
padding: 0.2em;
font-size: 0.8em;
color: coral;
color: orangered;
display: none;
}

View File

@ -691,10 +691,18 @@
if( !loggedIn )
{
var limit = 5;
var i = 0;
var reUUID = Perf.uuid;
Cycle.perma(
reUUID, function()
{
if( limit < i ++ )
{
var mesg = Dand.glass( "c_so_sorry" );
if( mesg.length ) mesg[0].style.display = "block";
}
if( Recaptcha = window["grecaptcha"] )
{
Cycle.permaRemove( reUUID );

View File

@ -66,6 +66,10 @@
height: 400px;
}
.vertical-text > p[data-flag="date"] {
color: #BBB;
}
.vertical-text.source > * {
height: auto;
}
@ -76,3 +80,4 @@
padding: 0;
visibility: hidden;
}