Skip to content

Commit

Permalink
Quick Fix for Fetching Release Info
Browse files Browse the repository at this point in the history
  • Loading branch information
Starkium committed Oct 15, 2024
1 parent 95265b1 commit 7f1c145
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 76 deletions.
4 changes: 3 additions & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
<link rel="stylesheet" href="static/css/style.css" />
<link rel="stylesheet" href="static/css/effects.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />


<!-- Fetch Release Info -->
<script type="text/javascript" src="static/js/background.js"></script>

</head>

Expand Down
77 changes: 2 additions & 75 deletions static/js/background.js
Original file line number Diff line number Diff line change
@@ -1,74 +1,3 @@
document.addEventListener('DOMContentLoaded', function () {
particlesJS("particles", {
"particles":{
"number":{
"value":256,"density":{
"enable":true,"value_area":974
}
},
"color":{
"value":"#ffffff"
},
"shape":{
"type":"circle","stroke":{
"width":0,"color":"#000000"
},
"polygon":{
"nb_sides":5
},
"image":{
"src":"img/github.svg","width":100,"height":100
}
},
"opacity":{
"value":0.5,"random":false,"anim":{
"enable":false,"speed":1,"opacity_min":0.1,"sync":false
}
},
"size":{
"value":3,"random":true,"anim":{
"enable":false,"speed":40,"size_min":0.1,"sync":false
}
},
"line_linked":{
"enable":true,"distance":150,"color":"#ffffff","opacity":0.4,"width":1
},
"move":{
"enable":true,"speed":6,"direction":"none","random":false,"straight":false,"out_mode":"out","bounce":false,
"attract":{
"enable":false,"rotateX":600,"rotateY":1200
}
}
},
"interactivity":{
"detect_on":"canvas","events":{
"onhover":{
"enable":true,"mode":"repulse"
},
"onclick":{
"enable":true,"mode":"push"
},
"resize":true
},"modes":{
"grab":{
"distance":400,"line_linked":{
"opacity":1
}
},
"bubble":{
"distance":400,"size":40,"duration":2,"opacity":8,"speed":3
},
"repulse":{
"distance":200,"duration":0.4
},
"push":{
"particles_nb":4
},"remove":{
"particles_nb":2
}
}
},"retina_detect":true
});

function fetchReleaseInfo() {
const protocol = window.location.protocol;
Expand Down Expand Up @@ -109,11 +38,9 @@ function fetchReleaseInfo() {
console.error('Error fetching release information:', error);
document.getElementById('release-message').innerHTML = 'Error fetching release information. Please try again later.';
});
}
};

// Call the function to fetch the release info when the page loads
window.onload = fetchReleaseInfo;

var intro = document.getElementById('intro');
intro.style.marginTop = - intro.offsetHeight / 2 + 'px';
}, false);

0 comments on commit 7f1c145

Please sign in to comment.