I've got a jssor gallery which I blurred by adding a CSS class "blur". I'd like to "unblur" this gallery when user clicks on div. To do this I added this simple JS code:
jQuery(document).ready(function($) {
$("js1").click(function(){
$("jssor_1").removeClass("blur");
});
});
where "js1" is my div's id and "jssor_1" is my gallery's id. Unfortunately, this doesn't work at all. I'm new to JS, but I thought this should work fine as click function checks whether an HTML element was clicked... Here's my HTML code for the gallery:
<div id="gallery" class="section gallery-section">
<div class="container-fluid">
<div id="jssor_1" class="blur" style="top: 0px; left: 0px; width: 800px; height: 445px; overflow: hidden; visibility: hidden; background-color: #000;">
<div data-u="slides" style="cursor: default; top: 0px; left: 0px; width: 800px; height: 400px; overflow: hidden;">
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/realizacje/01.jpg" />
<img data-u="thumb" src="img/realizacje/01t.jpg" />
</div>
...other gallery images...
</div>
<div data-u="thumbnavigator" class="jssort01" data-autocenter="1">
<div data-u="slides" style="cursor: default;">
<div data-u="prototype" class="p">
<div class="w">
<div data-u="thumbnailtemplate" class="t"></div>
</div>
<div class="c"></div>
</div>
</div>
</div>
<span data-u="arrowleft" class="jssora05l" style="top: 158px; left: 8px; width: 40px; height: 40px;"></span>
<span data-u="arrowright" class="jssora05r" style="top: 158px; right: 8px; width: 40px; height: 40px;"></span>
</div>
<div id="js1" class="naglowekgalerii">PRZYKŁADOWE REALIZACJE</div>
</div>
</div>
CSS:
.blur {
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
filter: blur(5px);
}
.naglowekgalerii {
font-family: 'Bitter', serif;
font-size: 28px;
color: white;
background: none;
padding-left: 24px;
padding-top: 18px;
padding-bottom: 8px;
margin: 0 auto;
text-transform: uppercase;
text-shadow: 1px 1px black;
position: absolute;
top: 50%;
left: 50%;
}
.naglowekgalerii:hover {
cursor:pointer;
}
.jssora05l, .jssora05r {
display: block;
position: absolute;
width: 40px;
height: 40px;
cursor: pointer;
background: url('../img/a17.png') no-repeat;
overflow: hidden;
}
.jssora05l { background-position: -10px -40px; }
.jssora05r { background-position: -70px -40px; }
.jssora05l:hover { background-position: -130px -40px; }
.jssora05r:hover { background-position: -190px -40px; }
.jssora05l.jssora05ldn { background-position: -250px -40px; }
.jssora05r.jssora05rdn { background-position: -310px -40px; }
.jssort01 {
position: absolute;
left: 0px;
width: 760px;
height: 45px;
}
.jssort01 .p {
position: absolute;
top: 0;
left: 0;
width: 60px;
height: 45px;
}
.jssort01 .t {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
.jssort01 .w {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
.jssort01 .c {
position: absolute;
top: 0px;
left: 0px;
width: 60px;
height: 45px;
}
.jssort01 .pav .c {
top: 0px;
_top: 0px;
left: 0px;
_left: 0px;
width: 60px;
height: 45px;
background: rgba(255,255,255,0.8);
transition: all .3s;
}
.jssort01 .p:hover .c {
top: 0px;
left: 0px;
width: 60px;
height: 45px;
background: rgba(255,255,255,0.8);
transition: all .3s;
}
.jssort01 .p.pdn .c {
width: 60px;
height: 45px;
background: rgba(255,255,255,0.8);
transition: all .3s;
}