Skip to content

Commit f4cac6a

Browse files
authored
Update index.html
1 parent c96fa47 commit f4cac6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3854,6 +3854,7 @@ <h3>Safety Levels</h3>
38543854
});
38553855
}
38563856

3857+
// Highlight active navigation item based on scroll position
38573858
function setActiveNavItem() {
38583859
const sections = document.querySelectorAll('section[id]');
38593860
const navLinks = document.querySelectorAll('.nav-link');
@@ -3897,11 +3898,13 @@ <h3>Safety Levels</h3>
38973898
}
38983899
});
38993900

3901+
// Set GitHub repository URL
39003902
const githubRepoUrl = 'https://github.com/CPScript/SystemScript';
39013903

3902-
// (Used to be the download URL but now will send you to the IDE wiki page which there you can download the IDE from thr same button)
3904+
// Set download URL for the latest release
39033905
const downloadUrl = 'https://cpscript.github.io/SystemScript/IDE_wiki.html';
39043906

3907+
// Add click event listener for GitHub button
39053908
if (githubButton) {
39063909
githubButton.addEventListener('click', function() {
39073910
window.open(githubRepoUrl, '_blank');
@@ -3919,6 +3922,7 @@ <h3>Safety Levels</h3>
39193922
downloadLink.href = downloadUrl;
39203923
downloadLink.download = 'ssIDE.zip';
39213924

3925+
// Append to body, click, and remove
39223926
document.body.appendChild(downloadLink);
39233927
downloadLink.click();
39243928
document.body.removeChild(downloadLink);

0 commit comments

Comments
 (0)