Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions docs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,6 @@
});
}

// OS-detecting download button
var heroDl = document.getElementById('hero-download');
if (heroDl) {
var ua = navigator.userAgent;
if (/Mac/i.test(ua)) {
heroDl.textContent = 'Download for macOS';
heroDl.href = 'https://github.com/nelsonduarte/PDFApps/releases/latest/download/PDFApps-macOS.zip';
} else if (/Linux/i.test(ua)) {
heroDl.textContent = 'Download for Linux';
heroDl.href = 'https://github.com/nelsonduarte/PDFApps/releases/latest/download/PDFApps-Linux.tar.gz';
} else {
heroDl.textContent = 'Download for Windows';
heroDl.href = 'https://github.com/nelsonduarte/PDFApps/releases/latest/download/PDFAppsSetup.exe';
}
}

// Scroll-reveal animations
var reveals = document.querySelectorAll('.reveal');
if (reveals.length && 'IntersectionObserver' in window) {
Expand Down
Loading