Skip to content

Commit

Permalink
fixed span in footer adding class for course margin
Browse files Browse the repository at this point in the history
  • Loading branch information
szack25 committed Jan 16, 2024
1 parent 3d696ff commit c71d2b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/js/post-tag-add.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ onload = () => {
const coursesArticles = document.querySelectorAll('.tag-course');

coursesArticles.forEach(article => {
const coursesSpans = article.querySelectorAll('span');
const coursesSpans = article.querySelectorAll('.post-tag');

coursesSpans.forEach(span => {
span.classList.add('tag-courses-span')
Expand Down Expand Up @@ -69,7 +69,5 @@ onload = () => {
coursePostTitles.forEach(title => {
title.classList.add('course-post-title-margin-top');
});
console.log(postTopMarginIntPlusString);
$('.course-post-title-margin-top').css('margin-top', postTopMarginIntPlusString);

};

0 comments on commit c71d2b0

Please sign in to comment.