Skip to content

Commit 622e7a5

Browse files
authored
📦 Updated
1 parent f7b5a03 commit 622e7a5

File tree

2 files changed

+8
-30
lines changed

2 files changed

+8
-30
lines changed

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

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ const dashboardClose = document.getElementById('dashboardClose');
3030
dashboardBtn.onclick = function() { dashboardModal.style.display = "block"; }
3131
dashboardClose.onclick = function() { dashboardModal.style.display = "none"; }
3232

33-
/* ML Algorithms */
34-
const mlAlgorithmsModal = document.getElementById('mlAlgorithmsModal');
35-
const mlAlgorithmsBtn = document.getElementById('mlAlgorithmsBtn');
36-
const mlAlgorithmsClose = document.getElementById('mlAlgorithmsClose');
37-
38-
mlAlgorithmsBtn.onclick = function() { mlAlgorithmsModal.style.display = "block"; }
39-
mlAlgorithmsClose.onclick = function() { mlAlgorithmsModal.style.display = "none"; }
40-
4133
/* Recommendation System */
4234
const recommendationSystemModal = document.getElementById('recommendationSystemModal');
4335
const recommendationSystemBtn = document.getElementById('recommendationSystemBtn');
@@ -46,21 +38,9 @@ const recommendationSystemClose = document.getElementById('recommendationSystemC
4638
recommendationSystemBtn.onclick = function() { recommendationSystemModal.style.display = 'block'; }
4739
recommendationSystemClose.onclick = function() { recommendationSystemModal.style.display = 'none'; }
4840

49-
/* Statistic and Probability */
50-
const statisticProbabilityModal = document.getElementById('statisticProbabilityModal');
51-
const statisticProbabilityBtn = document.getElementById('statisticProbabilityBtn');
52-
const statisticProbabilityClose = document.getElementById('statisticProbabilityClose');
53-
54-
statisticProbabilityBtn.onclick = function() { statisticProbabilityModal.style.display = 'block'; }
55-
statisticProbabilityClose.onclick = function() { statisticProbabilityModal.style.display = 'none'; }
56-
5741
/* Closing modals when user taps outside the modal */
5842
window.onclick = function(event) {
59-
const modalsArray = [
60-
kaggleModal, liveProjectsModal, datasetsModal, dashboardModal
61-
, mlAlgorithmsModal, recommendationSystemModal, statisticProbabilityModal
62-
]
63-
43+
const modalsArray = [kaggleModal, liveProjectsModal, datasetsModal, dashboardModal, recommendationSystemModal];
6444
if (modalsArray.includes(event.target)) { event.target.style.display = 'none'; }
6545
}
6646

@@ -71,8 +51,6 @@ window.onkeydown = function(event) {
7151
else if (liveProjectsModal.style.display == 'block') { liveProjectsModal.style.display = 'none'; }
7252
else if (datasetsModal.style.display == 'block') { datasetsModal.style.display = 'none'; }
7353
else if (dashboardModal.style.display == 'block') { dashboardModal.style.display = 'none'; }
74-
else if (mlAlgorithmsModal.style.display == 'block') { mlAlgorithmsModal.style.display = 'none'; }
7554
else if (recommendationSystemModal.style.display == 'block') { recommendationSystemModal.style.display = 'none'; }
76-
else if (statisticProbabilityModal.style.display == 'block') { statisticProbabilityModal.style.display = 'none'; }
7755
}
7856
}

‎assets/js/scripts/tooltips.js‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ tippyParams = {
1616
// *************************
1717
// ** Tooltips - Projects **
1818
// *************************
19-
tippy('#mlAlgorithmsBtn', {
20-
...tippyParams,
21-
content: 'Explanation about Machine and Deep Learning Algorithms!',
22-
});
23-
2419
tippy('#dashboardBtn', {
2520
...tippyParams,
2621
content: 'Live Dashboards made with Streamlit!',
@@ -41,6 +36,11 @@ tippy('#liveProjectsBtn', {
4136
content: 'Test out Live Projects (Google Chrome is Recommended)!',
4237
});
4338

39+
tippy('#recommendationSystemBtn', {
40+
...tippyParams,
41+
content: 'How to build an Anime Recommendation step-by-step!',
42+
});
43+
4444
tippy('#dsStudiesBtn', {
4545
...tippyParams,
4646
content: 'Data Science Contents on GitHub!',
@@ -56,9 +56,9 @@ tippy('#partnerLuisFelipeBtn', {
5656
content: 'Luis Felipe!',
5757
});
5858

59-
tippy('#partnerMateusMaffiBtn', {
59+
tippy('#partnerMMaffiBtn', {
6060
...tippyParams,
61-
content: 'Mateus Maffi!',
61+
content: 'MMaffi!',
6262
});
6363

6464
tippy('#partnerMenceBtn', {

0 commit comments

Comments
 (0)