Skip to content

Commit

Permalink
deleted a bunch of old code that was commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
flbarfield committed Feb 21, 2024
1 parent 284a1dc commit f4dbe98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 72 deletions.
2 changes: 1 addition & 1 deletion public/assets/js/fitnessApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function populateExerciseBank () {
function populateBankInfo (prop) {

// converts variable property from classList into an expression
const {photo, instructions, video, muscleGroups} = eval(`exercises.` + `${prop}`)
const {photo, instructions, video, muscleGroups} = eval(`exercises.${prop}`)

document.querySelector('.bankInfoExerciseTitle').innerText = prop.replaceAll('_', ' ')
document.querySelector('.bankImg').src = photo
Expand Down
71 changes: 0 additions & 71 deletions public/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
var $nav = $('#nav');

if ($nav.length > 0) {

// Shrink effect.
$main
.scrollex({
Expand All @@ -53,77 +52,7 @@
},
});

// // Links.
// var $nav_a = $nav.find('a');

// $nav_a
// .scrolly({
// speed: 1000,
// offset: function() { return $nav.height(); }
// })
// .on('click', function() {

// var $this = $(this);

// // External link? Bail.
// if ($this.attr('href').charAt(0) != '#')
// return;

// // Deactivate all links.
// $nav_a
// .removeClass('active')
// .removeClass('active-locked');

// // Activate link *and* lock it (so Scrollex doesn't try to activate other links as we're scrolling to this one's section).
// $this
// .addClass('active')
// .addClass('active-locked');

// })
// .each(function() {

// var $this = $(this),
// id = $this.attr('href'),
// $section = $(id);

// // No section for this link? Bail.
// if ($section.length < 1)
// return;

// // Scrollex.
// $section.scrollex({
// mode: 'middle',
// initialize: function() {

// // Deactivate section.
// if (browser.canUse('transition'))
// $section.addClass('inactive');

// },
// enter: function() {

// // Activate section.
// $section.removeClass('inactive');

// // No locked links? Deactivate all links and activate this section's one.
// if ($nav_a.filter('.active-locked').length == 0) {

// $nav_a.removeClass('active');
// $this.addClass('active');

// }

// // Otherwise, if this section's link is the one that's locked, unlock it.
// else if ($this.hasClass('active-locked'))
// $this.removeClass('active-locked');

// }
// });

// });

}

// Scrolly.
$('.scrolly').scrolly({
speed: 1000
Expand Down

0 comments on commit f4dbe98

Please sign in to comment.