From 14c8aac76b7e4a9dd416dbcc19b70b52c80f0e70 Mon Sep 17 00:00:00 2001
From: Kevin Froman
Date: Fri, 9 Oct 2020 07:44:04 +0000
Subject: [PATCH] restructured directories
---
style.css => css/style.css | 0
index.html | 37 +++++++++++++--------
hush-hush.js => js/hush-hush.js | 10 ++++--
main.js => js/main.js | 0
marked.min.js => js/marked.min.js | 0
message-creator.js => js/message-creator.js | 0
onionr-blocks.js => js/onionr-blocks.js | 0
peer-lookup.js => js/peer-lookup.js | 0
powworker.js => js/powworker.js | 0
purify.min.js => js/purify.min.js | 0
sha3.js => js/sha3.js | 0
tordetect.js => js/tordetect.js | 0
worker-handler.js => js/worker-handler.js | 0
13 files changed, 30 insertions(+), 17 deletions(-)
rename style.css => css/style.css (100%)
rename hush-hush.js => js/hush-hush.js (93%)
rename main.js => js/main.js (100%)
rename marked.min.js => js/marked.min.js (100%)
rename message-creator.js => js/message-creator.js (100%)
rename onionr-blocks.js => js/onionr-blocks.js (100%)
rename peer-lookup.js => js/peer-lookup.js (100%)
rename powworker.js => js/powworker.js (100%)
rename purify.min.js => js/purify.min.js (100%)
rename sha3.js => js/sha3.js (100%)
rename tordetect.js => js/tordetect.js (100%)
rename worker-handler.js => js/worker-handler.js (100%)
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