diff --git a/style.css b/css/style.css
similarity index 100%
rename from style.css
rename to css/style.css
diff --git a/index.html b/index.html
index 1dddf63..e983d6b 100644
--- a/index.html
+++ b/index.html
@@ -11,16 +11,16 @@
-
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
@@ -38,13 +38,19 @@
JavaScript is required for this app. The server has no knowledge of posts, so content must be served by P2P nodes.
kiccan is a message board program that utilizes the Onionr network.
- posts are rate-limited using a partial hash collision proof of work function.
+ posts are rate-limited and protected using a partial hash collision proof of work function.
+ kiccan is decentralized as in power
⚠️ the host of this web page has no control over posts. Browse and post at your own risk.
-
+
+
Last reached network: never
+
+
+
+
feed size: 0kb | page size: 289kb
You do not seem to be able to reach .onion services. Please use Tor Browser.
@@ -70,6 +76,9 @@
+
+
+
diff --git a/hush-hush.js b/js/hush-hush.js
similarity index 93%
rename from hush-hush.js
rename to js/hush-hush.js
index 2edd03a..f7722a0 100644
--- a/hush-hush.js
+++ b/js/hush-hush.js
@@ -17,7 +17,8 @@
*/
var findMessageIntervalTime = 5000
var publicNodes = [
- "ty3rq3kub6gvzpngnrvfsk5emhoh2ltkti62u4ophca6ijciajotqqid"
+ "ty3rq3kub6gvzpngnrvfsk5emhoh2ltkti62u4ophca6ijciajotqqid",
+ "aekulizc7lsl4bh3ainlnnbfqtboavitfxuvanqq3eyposdifzzeddqd"
]
var messageHashes = []
var blocks = []
@@ -118,9 +119,12 @@ async function apiGET(path, queryString, raw=false){
if (response.ok) { // if HTTP-status is 200-299
// get the response body (the method explained below)
if (raw){
+ connectedToOnionr = true
return await response.blob()
}
clearTimeout(requestTimeout)
+ document.getElementById("lastReached").classList.replace("has-text-warning", "has-text-success")
+ document.getElementById("lastReached").innerText = "Onionr network reached"
return await response.text()
} else {
console.debug("HTTP-Error: " + response.status)
@@ -128,9 +132,9 @@ async function apiGET(path, queryString, raw=false){
}
async function findMessages(){
+ findMessageIntervalTime = 5000
if (document.hidden){
- setTimeout(function(){findMessages()}, 1000)
- return
+ findMessageIntervalTime = 10000
}
let messages = (await apiGET("getblocklist", "?type=" + postTopic + "&date=" + lastLookup)).split('\n')
lastLookup = Math.floor((Date.now() / 1000))
diff --git a/main.js b/js/main.js
similarity index 100%
rename from main.js
rename to js/main.js
diff --git a/marked.min.js b/js/marked.min.js
similarity index 100%
rename from marked.min.js
rename to js/marked.min.js
diff --git a/message-creator.js b/js/message-creator.js
similarity index 100%
rename from message-creator.js
rename to js/message-creator.js
diff --git a/onionr-blocks.js b/js/onionr-blocks.js
similarity index 100%
rename from onionr-blocks.js
rename to js/onionr-blocks.js
diff --git a/peer-lookup.js b/js/peer-lookup.js
similarity index 100%
rename from peer-lookup.js
rename to js/peer-lookup.js
diff --git a/powworker.js b/js/powworker.js
similarity index 100%
rename from powworker.js
rename to js/powworker.js
diff --git a/purify.min.js b/js/purify.min.js
similarity index 100%
rename from purify.min.js
rename to js/purify.min.js
diff --git a/sha3.js b/js/sha3.js
similarity index 100%
rename from sha3.js
rename to js/sha3.js
diff --git a/tordetect.js b/js/tordetect.js
similarity index 100%
rename from tordetect.js
rename to js/tordetect.js
diff --git a/worker-handler.js b/js/worker-handler.js
similarity index 100%
rename from worker-handler.js
rename to js/worker-handler.js