name change again
This commit is contained in:
parent
bcccae1c46
commit
497211818a
10
index.html
10
index.html
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>kiccan</title>
|
||||
<title>lycan - decentralized message board</title>
|
||||
|
||||
<meta name="description" content="Generate Onionr block">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🏴☠️</text></svg>">
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🐺</text></svg>">
|
||||
<link rel="stylesheet" href="css/bulma-dark.min.css">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<script src="js/tordetect.js" async></script>
|
||||
@ -27,7 +27,7 @@
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title">
|
||||
kiccan
|
||||
lycan
|
||||
</h1>
|
||||
<p class="subtitle">
|
||||
anonymous decentralized message board 🌐
|
||||
@ -38,9 +38,9 @@
|
||||
<noscript><p class="has-text-warning">
|
||||
JavaScript is required for this app. The server has no knowledge of posts, so content must be served by P2P nodes.
|
||||
</p></noscript>
|
||||
<p>kiccan is a message board program that utilizes the <a href="https://onionr.net/">Onionr</a> network.</p>
|
||||
<p>lycan is a message board program that utilizes the <a href="https://onionr.net/">Onionr</a> network.</p>
|
||||
<p>posts are rate-limited and protected using a partial hash collision proof of work function.</p>
|
||||
<p>kiccan is <i>decentralized as in power</i></p>
|
||||
<p>lycan is <i>decentralized as in power</i></p>
|
||||
<p>⚠️ the host of this web page has no control over posts. Browse and post at your own risk.</p>
|
||||
<br>
|
||||
<div class="columns">
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user