From f285e5e51f13864661d1e3c4a300808e9267652d Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 23 Jan 2018 13:03:07 -0800 Subject: [PATCH] Add link in settings to captcha FAQ. --- package.json | 1 + src/General/Settings.coffee | 7 +++++-- src/css/style.css | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cb3232ddd..422eac6f3 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "downloads": "https://www.4chan-x.net/builds/", "oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/", "faq": "https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions", + "captchaFAQ": "https://github.com/ccd0/4chan-x/wiki/Captcha-FAQ", "cssGuide": "https://github.com/ccd0/4chan-x/wiki/Styling-Guide", "license": "https://github.com/ccd0/4chan-x/blob/master/LICENSE", "changelog": "https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md", diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index 670a9cd4b..3bc937944 100644 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -156,10 +156,13 @@ Settings = containers.splice level+1, containers.length - (level+1) $.add containers[level], div - for key, obj of Config.main + for keyFS, obj of Config.main fs = $.el 'fieldset', - <%= html('${key}') %> + <%= html('${keyFS}') %> addCheckboxes fs, obj + if keyFS is 'Posting and Captchas' + $.add fs, $.el 'p', + <%= html('For more info on captcha options and issues, see the captcha FAQ.') %> $.add section, fs addCheckboxes $('div[data-name="JSON Index"] > .suboption-list', section), Config.Index diff --git a/src/css/style.css b/src/css/style.css index 601258d41..794e93571 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -597,6 +597,9 @@ div[data-checked="false"] > .suboption-list { border-left: 1px solid; border-bottom: 1px solid; } +#fourchanx-settings .section-main p { + margin: .5em 0 0; +} .section-filter ul { padding: 0; }