All web code and ignore json files
This commit is contained in:
11
plebnet/includes/favicon.html
Normal file
11
plebnet/includes/favicon.html
Normal 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">
|
14
plebnet/includes/graph3d.js
Normal file
14
plebnet/includes/graph3d.js
Normal 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);
|
Reference in New Issue
Block a user