|
1 | | -// --- Seline Analytics --- |
2 | | -function initSeline() { |
3 | | - if (typeof seline !== "undefined") { |
4 | | - seline.init({ |
5 | | - token: "091747081ed47e6", |
6 | | - autoPageView: true |
7 | | - }); |
8 | | - console.log("Seline initialized"); |
9 | | - } else { |
10 | | - setTimeout(initSeline, 100); |
11 | | - } |
12 | | -} |
13 | | -document.addEventListener("DOMContentLoaded", initSeline); |
| 1 | +// // --- Seline Analytics --- |
| 2 | +// function initSeline() { |
| 3 | +// if (typeof seline !== "undefined") { |
| 4 | +// seline.init({ |
| 5 | +// token: "091747081ed47e6", |
| 6 | +// autoPageView: true |
| 7 | +// }); |
| 8 | +// console.log("Seline initialized"); |
| 9 | +// } else { |
| 10 | +// setTimeout(initSeline, 100); |
| 11 | +// } |
| 12 | +// } |
| 13 | +// document.addEventListener("DOMContentLoaded", initSeline); |
14 | 14 |
|
15 | | -function scrollToMission() { |
16 | | - document.getElementById('mission').scrollIntoView({ |
17 | | - behavior: 'smooth' |
18 | | - }); |
19 | | -} |
| 15 | +// function scrollToMission() { |
| 16 | +// document.getElementById('mission').scrollIntoView({ |
| 17 | +// behavior: 'smooth' |
| 18 | +// }); |
| 19 | +// } |
20 | 20 |
|
21 | 21 | // Add some interactive animations |
22 | 22 | document.addEventListener('DOMContentLoaded', function() { |
@@ -80,18 +80,21 @@ document.addEventListener('DOMContentLoaded', function() { |
80 | 80 | const html = await res.text(); |
81 | 81 | document.querySelector('#content').innerHTML = html; |
82 | 82 | window.history.pushState({ page: 'mission' }, "Mission", "#Mission"); |
| 83 | + seline.page(); |
83 | 84 | } |
84 | 85 | else if (target === '#Projects') { |
85 | 86 | const res = await fetch('pages/projects.html'); |
86 | 87 | const html = await res.text(); |
87 | 88 | document.querySelector('#content').innerHTML = html; |
88 | 89 | window.history.pushState({ page: 'projects' }, "Projects", "#Projects"); |
| 90 | + seline.page(); |
89 | 91 | } |
90 | 92 | else if (target === '#Blogs') { |
91 | 93 | const res = await fetch('pages/blogs.html'); |
92 | 94 | const html = await res.text(); |
93 | 95 | document.querySelector('#content').innerHTML = html; |
94 | 96 | window.history.pushState({ page: 'blogs' }, "Blogs", "#Blogs"); |
| 97 | + seline.page(); |
95 | 98 | } |
96 | 99 |
|
97 | 100 | setActiveNav(target); // highlight correct nav link |
|
0 commit comments