Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorHanzei <hanzei@mailbox.org>2018-07-01 14:08:26 +0300
committerHanzei <hanzei@mailbox.org>2018-07-01 14:08:26 +0300
commit0d6371f6eb072f7e6e902a78ecad2824b4323f1c (patch)
tree18bc894d79ec434f91d8a8f7d14a3619db1a704e /static
parent015b4bbd4115e2d8ef41ee644e794848d89f43e2 (diff)
Remove updlicate ids
Diffstat (limited to 'static')
-rw-r--r--static/js/index.js4
1 files changed, 2 insertions, 2 deletions
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) {