Add small announcement on /qa/.
This commit is contained in:
parent
78b5ef6042
commit
19deb7c065
9
src/Miscellaneous/PSA.coffee
Normal file
9
src/Miscellaneous/PSA.coffee
Normal file
@ -0,0 +1,9 @@
|
||||
PSA =
|
||||
init: ->
|
||||
return unless g.SITE.software is 'yotsuba'
|
||||
if g.BOARD.ID is 'qa'
|
||||
announcement = <%= html('Stay in touch with your <a href="https://www.4chan-x.net/qa_friends.html" target="_blank" rel="noopener">/qa/ friends</a>!') %>
|
||||
return unless announcement
|
||||
el = $.el 'div', {className: 'fcx-announcement'}, announcement
|
||||
$.onExists doc, '.boardBanner', (banner) ->
|
||||
$.after banner, el
|
||||
@ -2433,3 +2433,11 @@ a:only-of-type > .remove {
|
||||
.postJumper > .next {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
/* PSA */
|
||||
.fcx-announcement {
|
||||
text-align: center;
|
||||
}
|
||||
.fcx-announcement a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@ -668,6 +668,7 @@ Main =
|
||||
['Index Navigation', Nav]
|
||||
['Keybinds', Keybinds]
|
||||
['Banner', Banner]
|
||||
['Announcements', PSA]
|
||||
['Flash Features', Flash]
|
||||
['Reply Pruning', ReplyPruning]
|
||||
['Mod Contact Links', ModContact]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user