-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
22 lines (19 loc) · 971 Bytes
/
Copy pathscript.js
File metadata and controls
22 lines (19 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const notesList = document.getElementById('notes-list');
// Example: Manually add links to your notes here
const notes = [
{ name: 'Math Notes - 31-08-2024', link: 'https://drive.google.com/drive/folders/14CKS0bfDHXANqTISQyxP5ssKHvu-zJNC?usp=sharing' },
{ name: 'Chemistry Notes - 31-08-2024', link: 'https://drive.google.com/drive/folders/14CKS0bfDHXANqTISQyxP5ssKHvu-zJNC?usp=sharing' },
{ name : 'BEE Notes - 31-08-2024' , link: 'https://drive.google.com/drive/folders/14CKS0bfDHXANqTISQyxP5ssKHvu-zJNC?usp=sharing'},
];
notes.forEach(note => {
const li = document.createElement('li');
const a = document.createElement('a');
a.href = note.link;
a.textContent = note.name;
a.target = '_blank';
li.appendChild(a);
notesList.appendChild(li);
});
document.getElementById('upload-button').addEventListener('click', () => {
alert('To upload files, manually add them to your website’s directory.');
});