diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index 8e2c057..afba803 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -15,7 +15,7 @@ {{ else }}
{{ end }} -
+ {{ end }} {{ end }} diff --git a/static/js/index.js b/static/js/index.js index 847d6a4..195ad57 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -10,10 +10,10 @@ $('a[href^="#"]').click(function(e) { // Modal closer $('.card').click(function () { - $('#'+this.id+'.modal').addClass('is-active'); + $($(this).attr('data-target')).addClass('is-active'); }); $('.modal-close').click(function () { - $('#'+$(this).parent('.modal').get(0).id+'.modal').removeClass('is-active'); + $($(this).attr('data-target')).removeClass('is-active'); }); $(document).keypress(function(e) { if(e.which == 0) {