Create main parts of short codes

This commit is contained in:
2023-10-25 14:38:54 +02:00
parent e15b181a99
commit 71c823a653
10 changed files with 209 additions and 17 deletions

View File

@@ -0,0 +1,18 @@
$(function() {
$(".tsc-gallery-img a").click(function(ev){
// console.debug(ev)
const url = ev.currentTarget.dataset.url
console.debug(url)
$('#overlay').removeClass('hidden')
$('#overlay .img img').attr('src', url)
})
$('#overlay .background, #overlay .spacer').click(function(ev) {
$('#overlay').addClass('hidden')
$('#overlay .img img').attr('src', '')
})
// $('#overlay').on('keydown', function(ev){
// if(ev.keyCode === 27) {
// console.log('closing')
// }
// })
})