create meta.faq variable

This commit is contained in:
ccd0 2014-05-13 22:15:07 -07:00
parent 5872940524
commit c90c30f243
4 changed files with 6 additions and 5 deletions

View File

@ -7,6 +7,7 @@
"repo": "https://github.com/ccd0/4chan-x/",
"page": "https://github.com/ccd0/4chan-x",
"downloads": "https://ccd0.github.io/4chan-x/builds/",
"faq": "https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions",
"appid": "lacclbnghgdicfifcamcmcnilckjamag",
"buildsPath": "builds/",
"mainBranch": "master",

View File

@ -575,7 +575,7 @@ mu-replace
sp-replace
tv-replace
vp-replace
[external-text:"FAQ","https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions"]
[external-text:"FAQ","<%= meta.faq %>"]
"""
QR:

View File

@ -461,7 +461,7 @@ Header =
el = $.el 'span',
innerHTML: '''
<%= meta.name %> needs your permission to show desktop notifications.
[<a href='https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions#why-is-4chan-x-asking-for-permission-to-show-desktop-notifications' target=_blank>FAQ</a>]<br>
[<a href='<%= meta.faq %>#why-is-4chan-x-asking-for-permission-to-show-desktop-notifications' target=_blank>FAQ</a>]<br>
<button>Authorize</button> or <button>Disable</button>
'''
[authorize, disable] = $$ 'button', el

View File

@ -715,10 +715,10 @@ QR =
QR.cooldown.auto = false
QR.status()
QR.error $.el 'span',
innerHTML: """
innerHTML: '''
4chan X encountered an error while posting.
[<a href="//4chan.org/banned" target=_blank>Banned?</a>] [<a href="https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean" target=_blank>More info</a>]
"""
[<a href="//4chan.org/banned" target=_blank>Banned?</a>] [<a href="<%= meta.faq %>#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean" target=_blank>More info</a>]
'''
extra =
form: $.formData formData
upCallbacks: