Skip to content

Commit

Permalink
added network animation to the YaCy home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbiter committed Jun 7, 2024
1 parent b5b6e44 commit 5670d3f
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,44 @@ Imagine if, rather than relying on the proprietary software of a large professio

Here is a live image of the YaCy network:

![YaCy P2P Network](https://yacy.searchlab.eu/NetworkPicture.png?width=960&height=720&bgcolor=2C3E4F&pal=10080&pol=10080&coronaangle=120)
<img id="NetworkPicture" src="https://yacy.searchlab.eu/NetworkPicture.png?width=960&height=720&bgcolor=2C3E4F&pal=10080&pol=10080&coronaangle=0" alt="YaCy P2P Network" width="960" height="720" />
<script type="text/javascript">
<!--
imagestub = "https://yacy.searchlab.eu/NetworkPicture.png?width=960&height=720&bgcolor=2C3E4F&pal=10080&pol=10080&coronaangle=";
imageanimindex = 0;
imageloadindex = 0;
imagecycles = 0;
imagearray = new Array(6);
setTimeout("initanimation()", 100);
setTimeout("doanimation()", 1000);
function initanimation() {
handle = new Date().getTime();
for (j = 0; j < 6; j++) initanimationphase(j, handle);
}
function initanimationphase(phase, handle) {
imagearray[phase] = new Image(1024, 720);
angle = phase * 60;
imagearray[phase].src = imagestub + angle + "&handle=" + handle;
}
function doanimation() {
var networkPicture = document.getElementById("NetworkPicture");
if (networkPicture != null) {
networkPicture.src = imagearray[imageanimindex].src;
imageanimindex++;
if (imageanimindex == 6) { imageanimindex = 0; }
imagecycles++;
if (imagecycles == 25) {
initanimationphase(imageloadindex, new Date().getTime());
imageloadindex++;
if (imageloadindex == 6) { imageloadindex = 0; }
imagecycles = 0;
}
setTimeout("doanimation()", 100);
}
}
-->
</script>

## Installation is easy!

Expand Down

0 comments on commit 5670d3f

Please sign in to comment.