Know2Comment 是一款 Wordpress 的开源评论插件,插件的功能很简单,就是给出一道与文章内容有关的谜题,并要求读者在评论前正确回答谜题,以证明他们已经读过了文章。
该插件会禁用评论表单,直到读者通过测评以证明他们读过文章。
完整的实现示例
<script src="nrkbetaquiz.js"></script> <div class="nrkbetaquiz" data-nrkbetaquiz="[{ text: 'Who is the current president of the United States?' answers: ['Barack Obama', 'Donald Trump', 'Steve Bannon'], correct: 2 }, { text: 'What is the radius of Earth?' answers: ['6 371 kilometers', '371 kilometers', '200 kilometers'], correct: 0 }]" data-nrkbetaquiz-error="You fail"> </div> <div id="YOUR_COMMENT_FORM_CONTAINER"></div>