-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
32 lines (28 loc) · 797 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function pdfLink(PDF_DRIVE_ID) {
return `https://drive.google.com/file/d/${PDF_DRIVE_ID}/preview`;
}
const SDE = pdfLink("1rp2AgZpijxoqIVqGVgD966VbUgYUAcuF");
const DS = pdfLink("1DuJBWk6YelsFyKxRFWUtxkJ4ActIHaUU");
/**
* @type {HTMLButtonElement}
*/
const SDEButton = document.getElementById("SDE");
/**
* @type {HTMLButtonElement}
*/
const DSButton = document.getElementById("DS");
/**
* @type {HTMLIFrameElement}
*/
const resumeEL = document.getElementById("resume");
function setResumeLink(choice) {
if (choice == "SDE") {
resumeEL.src = SDE;
SDEButton.classList.add("active");
DSButton.classList.remove("active");
} else {
resumeEL.src = DS;
SDEButton.classList.remove("active");
DSButton.classList.add("active");
}
}