From 8f05e37ee464eaffcff638f1b1806e2c555e9cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Mon, 19 Oct 2015 23:16:47 +0800 Subject: [PATCH] Check for grecaptcha availibility --- botanjs/src/Astro/Blog/Components/Comment.css | 3 ++- botanjs/src/Astro/Blog/Components/Comment.js | 8 ++++++++ botanjs/src/Astro/Blog/Components/VerticalNote.css | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/botanjs/src/Astro/Blog/Components/Comment.css b/botanjs/src/Astro/Blog/Components/Comment.css index a23955b..9597cac 100644 --- a/botanjs/src/Astro/Blog/Components/Comment.css +++ b/botanjs/src/Astro/Blog/Components/Comment.css @@ -284,5 +284,6 @@ iframe[src="about:blank"] { .c_so_sorry { padding: 0.2em; font-size: 0.8em; - color: coral; + color: orangered; + display: none; } diff --git a/botanjs/src/Astro/Blog/Components/Comment.js b/botanjs/src/Astro/Blog/Components/Comment.js index ad19e80..bb7b642 100644 --- a/botanjs/src/Astro/Blog/Components/Comment.js +++ b/botanjs/src/Astro/Blog/Components/Comment.js @@ -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 ); diff --git a/botanjs/src/Astro/Blog/Components/VerticalNote.css b/botanjs/src/Astro/Blog/Components/VerticalNote.css index 6d9c556..9961c1f 100644 --- a/botanjs/src/Astro/Blog/Components/VerticalNote.css +++ b/botanjs/src/Astro/Blog/Components/VerticalNote.css @@ -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; } +