diff --git a/index.html b/index.html index ad35a21..3cf39e8 100644 --- a/index.html +++ b/index.html @@ -3,13 +3,13 @@ - kiccan + lycan - decentralized message board - + @@ -27,7 +27,7 @@

- kiccan + lycan

anonymous decentralized message board 🌐 @@ -38,9 +38,9 @@

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.

+

lycan is a message board program that utilizes the Onionr network.

posts are rate-limited and protected using a partial hash collision proof of work function.

-

kiccan is decentralized as in power

+

lycan is decentralized as in power

⚠️ the host of this web page has no control over posts. Browse and post at your own risk.


diff --git a/js/hush-hush.js b/js/hush-hush.js index a48b4d5..296bac6 100644 --- a/js/hush-hush.js +++ b/js/hush-hush.js @@ -38,23 +38,23 @@ if (document.location.protocol === "file:"){ function shuffleArray(array) { if (document.hidden){return} for (let i = array.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [array[i], array[j]] = [array[j], array[i]]; + const j = Math.floor(Math.random() * (i + 1)) + [array[i], array[j]] = [array[j], array[i]] } } shuffleArray(initialNodes) //https://stackoverflow.com/q/10420352 function getReadableFileSizeString(fileSizeInBytes) { - var i = -1; - var byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB']; + var i = -1 + var byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'] do { - fileSizeInBytes = fileSizeInBytes / 1024; + fileSizeInBytes = fileSizeInBytes / 1024 i++; - } while (fileSizeInBytes > 1024); + } while (fileSizeInBytes > 1024) - return Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i]; -}; + return Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i] +} setInterval(function(){shuffleArray(publicNodes)}, 5000)