Source code of filesite.io.
https://filesite.io
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
645 B
22 lines
645 B
3 years ago
|
/* for theme GoogleImage */
|
||
|
(function() {
|
||
|
//show modal
|
||
|
$('.btn-open').click(function(evt) {
|
||
|
var target_id = $(evt.target).parents('.btn-open').attr('href');
|
||
|
if ($(evt.target).hasClass('btn-open')) {
|
||
|
target_id = $(evt.target).attr('href');
|
||
|
}
|
||
|
$(target_id).css('display', 'block');
|
||
|
});
|
||
|
|
||
|
//hide modal
|
||
|
$('.btn-close').click(function(evt) {
|
||
|
$(evt.target).parents('.modal-mask').css('display', 'none');
|
||
|
});
|
||
|
$('.modal-mask').click(function(evt) {
|
||
|
if ($(evt.target).hasClass('modal-mask')) {
|
||
|
$(evt.target).css('display', 'none');
|
||
|
}
|
||
|
});
|
||
|
|
||
|
})();
|