All web code and ignore json files

This commit is contained in:
Thefeli73
2021-08-19 21:57:49 +02:00
parent 76fc3918bb
commit 8444a983c2
35 changed files with 1066 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/favicon/apple-touch-icon.png?v=1.3.0">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon/favicon-32x32.png?v=1.3.0">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon/favicon-16x16.png?v=1.3.0">
<link rel="manifest" href="/assets/img/favicon/site.webmanifest?v=1.3.0">
<link rel="mask-icon" href="/assets/img/favicon/safari-pinned-tab.svg?v=1.3.0" color="#68f442">
<link rel="shortcut icon" href="/assets/img/favicon/favicon.ico?v=1.3.0">
<meta name="apple-mobile-web-app-title" content="Plebnet">
<meta name="application-name" content="Plebnet">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-config" content="/assets/img/favicon/browserconfig.xml?v=1.3.0">
<meta name="theme-color" content="#ffffff">

View File

@ -0,0 +1,14 @@
const Graph = ForceGraph3D()
(document.getElementById('3d-graph'))
.jsonUrl('graphs/graph3d_full.json')
.nodeLabel('id')
.nodeAutoColorBy('group')
.nodeThreeObject(node => {
const sprite = new SpriteText(node.name);
sprite.material.depthWrite = false; // make sprite background transparent
sprite.color = node.color;
sprite.textHeight = 8;
return sprite;
});
Graph.d3Force('charge').strength(-220);