diff --git a/faq.php b/faq.php index 3b6eded7..4f8923d2 100644 --- a/faq.php +++ b/faq.php @@ -23,7 +23,7 @@ $body = <<If either of those is true, the board was deleted automatically. You are free to recreate it. I cannot restore it, so don't bother emailing me about it.

How do I post as a volunteer on my board?

-

Make sure you are using the volunteer interface to view your board. The URL of your browser should be https://8chan.co/mod.php?/yourboard. Then, put "## Board volunteer" in the name field. Write your post and click "Reply". It will appear with your volunteer capcode.

+

Make sure you are using the volunteer interface to view your board. The URL of your browser should be https://8chan.co/mod.php?/yourboard. Then, put "## Board Volunteer" in the name field. Write your post and click "Reply". It will appear with your volunteer capcode.

How do I donate?

Donations can be sent to 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C (Bitcoin) or LUPgSCJt3iGeJXUETVhmnbQ89Riaq1yjZm (Litecoin). PayPal is also accepted @ fredrick.brennan1@gmail.com .

diff --git a/js/threadscroll.js b/js/threadscroll.js new file mode 100644 index 00000000..c3c6deef --- /dev/null +++ b/js/threadscroll.js @@ -0,0 +1,37 @@ +if(active_page == "index" || active_page == "ukko"){ + var hoverElem = null; + + $(document).mouseover(function(e){ + var x = e.clientX, y = e.clientY, + elementOnMouseOver = document.elementFromPoint(x, y); + hoverElem = $(elementOnMouseOver); + }); + + $(document).keydown(function(e){ + //Up arrow + if(e.which == 38){ + var ele = hoverElem; + var par = $(ele).parents('div[id^="thread_"]'); + + if(par.length == 1){ + if(par.prev().attr("id") != null){ + if(par.prev().attr("id").match("^thread")){ + window.location.href = window.location.protocol+"//"+window.location.host+window.location.pathname+"#"+par.prev().attr("id"); + } + } + } + //Down arrow + }else if(e.which == 40){ + var ele = hoverElem; + var par = $(ele).parents('div[id^="thread_"]'); + + if(par.length == 1){ + if(par.next().attr("id") != null){ + if(par.next().attr("id").match("^thread")){ + window.location.href = window.location.protocol+"//"+window.location.host+window.location.pathname+"#"+par.next().attr("id"); + } + } + } + } + }); +} diff --git a/templates/index.html b/templates/index.html index 178c1ed0..6c89bb0e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -94,5 +94,7 @@ + +