Skip to content

Commit e693067

Browse files
authored
📦 Updated
1 parent 1b936d0 commit e693067

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

‎assets/js/scripts/modal-toggle.js‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,17 @@ const recommendationSystemClose = document.getElementById('recommendationSystemC
3838
recommendationSystemBtn.onclick = function() { recommendationSystemModal.style.display = 'block'; }
3939
recommendationSystemClose.onclick = function() { recommendationSystemModal.style.display = 'none'; }
4040

41+
/* NLP */
42+
const nlpModal = document.getElementById('nlpModal');
43+
const nlpBtn = document.getElementById('nlpBtn');
44+
const nlpClose = document.getElementById('nlpClose');
45+
46+
nlpBtn.onclick = function() { nlpModal.style.display = 'block'; }
47+
nlpClose.onclick = function() { nlpModal.style.display = 'none'; }
48+
4149
/* Closing modals when user taps outside the modal */
4250
window.onclick = function(event) {
43-
const modalsArray = [kaggleModal, liveProjectsModal, datasetsModal, dashboardModal, recommendationSystemModal];
51+
const modalsArray = [kaggleModal, liveProjectsModal, datasetsModal, dashboardModal, recommendationSystemModal, nlpModal];
4452
if (modalsArray.includes(event.target)) { event.target.style.display = 'none'; }
4553
}
4654

@@ -52,5 +60,6 @@ window.onkeydown = function(event) {
5260
else if (datasetsModal.style.display == 'block') { datasetsModal.style.display = 'none'; }
5361
else if (dashboardModal.style.display == 'block') { dashboardModal.style.display = 'none'; }
5462
else if (recommendationSystemModal.style.display == 'block') { recommendationSystemModal.style.display = 'none'; }
63+
else if (nlpModal.style.display == 'block') { nlpModal.style.display = 'none'; }
5564
}
5665
}

‎assets/js/scripts/tooltips.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ tippy('#recommendationSystemBtn', {
4141
content: 'How to build an Anime Recommendation step-by-step!',
4242
});
4343

44+
tippy('#nlpBtn', {
45+
...tippyParams,
46+
content: 'My Natural Language Processing journey!',
47+
});
48+
4449
tippy('#dsStudiesBtn', {
4550
...tippyParams,
4651
content: 'Data Science Contents on GitHub!',

0 commit comments

Comments
 (0)