name change again
This commit is contained in:
parent
bcccae1c46
commit
497211818a
10
index.html
10
index.html
@ -3,13 +3,13 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<title>kiccan</title>
|
<title>lycan - decentralized message board</title>
|
||||||
|
|
||||||
<meta name="description" content="Generate Onionr block">
|
<meta name="description" content="Generate Onionr block">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
||||||
<meta name="referrer" content="no-referrer">
|
<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/bulma-dark.min.css">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<script src="js/tordetect.js" async></script>
|
<script src="js/tordetect.js" async></script>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
kiccan
|
lycan
|
||||||
</h1>
|
</h1>
|
||||||
<p class="subtitle">
|
<p class="subtitle">
|
||||||
anonymous decentralized message board 🌐
|
anonymous decentralized message board 🌐
|
||||||
@ -38,9 +38,9 @@
|
|||||||
<noscript><p class="has-text-warning">
|
<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.
|
JavaScript is required for this app. The server has no knowledge of posts, so content must be served by P2P nodes.
|
||||||
</p></noscript>
|
</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>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>
|
<p>⚠️ the host of this web page has no control over posts. Browse and post at your own risk.</p>
|
||||||
<br>
|
<br>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
|
@ -38,23 +38,23 @@ if (document.location.protocol === "file:"){
|
|||||||
function shuffleArray(array) {
|
function shuffleArray(array) {
|
||||||
if (document.hidden){return}
|
if (document.hidden){return}
|
||||||
for (let i = array.length - 1; i > 0; i--) {
|
for (let i = array.length - 1; i > 0; i--) {
|
||||||
const j = Math.floor(Math.random() * (i + 1));
|
const j = Math.floor(Math.random() * (i + 1))
|
||||||
[array[i], array[j]] = [array[j], array[i]];
|
[array[i], array[j]] = [array[j], array[i]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
shuffleArray(initialNodes)
|
shuffleArray(initialNodes)
|
||||||
|
|
||||||
//https://stackoverflow.com/q/10420352
|
//https://stackoverflow.com/q/10420352
|
||||||
function getReadableFileSizeString(fileSizeInBytes) {
|
function getReadableFileSizeString(fileSizeInBytes) {
|
||||||
var i = -1;
|
var i = -1
|
||||||
var byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'];
|
var byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB']
|
||||||
do {
|
do {
|
||||||
fileSizeInBytes = fileSizeInBytes / 1024;
|
fileSizeInBytes = fileSizeInBytes / 1024
|
||||||
i++;
|
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)
|
setInterval(function(){shuffleArray(publicNodes)}, 5000)
|
||||||
|
Loading…
Reference in New Issue
Block a user