From 3e42ce191ed9a72ed8aa69ee7819a20bb4d23048 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Tue, 2 Feb 2021 23:28:35 -0800 Subject: added rules.html and faq.html change to fit your own instance specs. --- static/faq.html | 35 +++++++++++++++++++++++++++++++++++ static/main.html | 4 ++++ static/npost.html | 8 ++++---- static/posts.html | 4 ++-- static/rules.html | 12 ++++++++++++ 5 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 static/faq.html create mode 100644 static/rules.html (limited to 'static') diff --git a/static/faq.html b/static/faq.html new file mode 100644 index 0000000..0d929f9 --- /dev/null +++ b/static/faq.html @@ -0,0 +1,35 @@ + + + + [Back] +

FAQ

+
+

What is fchan

+

fchan short for fchannel and is a federated image board based on activity pub. it removes the centralization aspect that so many of us have become accustom to. it is not trying to re-invent the wheel and draws likeness from other chans for ease of familiarity. you can get the source code here https://github.com/FChannel0 any help is appreciated.

+ +

Options

+

the options field when posting can be used for special options when posting. type noko in the options field to return to the thread you posting to. use sage to ignore updating the thread bump order. nokosage will do both.

+ +

Tripcode

+

you can identify yourself with a tripcode by adding a hash mark (#) after your name followed by your unique identifying string, example anon#myunique.

+ +

Quote

+

use a greater than symbols (>) to quote strings of text. use double (>>) followed by the url id of the post you are referencing (this will be changed later for better use).

+ +

No. Link

+

click on "No." next to a post to view its thread.

+ +

Uploading files

+

max file size is 7MB. the supported file types are "image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/avif","image/apng","video/mp4","video/ogg","video/webm","audio/mpeg","audio/ogg","audio/wav", "audio/wave", "audio/x-wav". these were choosen based on browser support for embeding

+ +

JavaScript why?

+

a version of the client with no javascript will be made eventually. current version requires it, because of basic functionality needed. no libraries or frameworks for javascript is used besides ECMAScript, just basic selection of DOM elements and modifying their styling. maybe someone would be willing to make a client that uses no javascript.

+ +

Why are the posts not sequential numbers?

+

sequential numbers have run their course. random base 16 (now base 36) is better.

+ +

Activitypub specific examples

+

coming soon(tm).

+
+ + diff --git a/static/main.html b/static/main.html index 2f0cb40..59852ed 100644 --- a/static/main.html +++ b/static/main.html @@ -76,6 +76,10 @@ {{ template "content" . }} {{ template "bottom" . }} +
+ [Home][Rules][FAQ] +

All media are copyright to their respective owners.

+
diff --git a/static/npost.html b/static/npost.html index dd5c898..6c837cf 100644 --- a/static/npost.html +++ b/static/npost.html @@ -23,10 +23,10 @@
  • [Top]
  • [Refresh]
  • -
    - [Post a Reply] - {{ $replies := (index .Posts 0).Replies }} - {{ $replies.TotalItems }} / {{ $replies.TotalImgs }} +{{ $replies := (index .Posts 0).Replies }} +{{ $replies.TotalItems }} / {{ $replies.TotalImgs }} +
    + [Post a Reply]

    {{ end }} diff --git a/static/posts.html b/static/posts.html index 086c5b5..6bdc7b5 100644 --- a/static/posts.html +++ b/static/posts.html @@ -105,7 +105,7 @@ if(getMIMEType({{ (index .Attachment 0).MediaType }}) == "audio"){ var audio = document.createElement("audio") audio.controls = 'controls' - audio.preload = 'metadata' + audio.preload = 'none' audio.src = '{{ (index .Attachment 0).Href }}' audio.type = '{{ (index .Attachment 0).MediaType }}' audio.style = "float: left; margin-right: 10px; margin-bottom: 10px; width: 250px;" @@ -116,7 +116,7 @@ if(getMIMEType({{ (index .Attachment 0).MediaType }}) == "video"){ var video = document.createElement("video") video.controls = 'controls' - video.preload = 'metadata' + video.preload = 'none' video.muted = 'muted' video.src = '{{ (index .Attachment 0).Href }}' video.type = '{{ (index .Attachment 0).MediaType }}' diff --git a/static/rules.html b/static/rules.html new file mode 100644 index 0000000..574435a --- /dev/null +++ b/static/rules.html @@ -0,0 +1,12 @@ + + + + [Back] +

    Rules and Agreements:

    +
      +
    1. Do not break or violate United States laws.
    2. +
    3. Age Restriction is 18 years and older.
    4. +
    5. Any blue boards are restricted to work safe posts only.
    6. +
    + + -- cgit v1.2.3