Mojolicious-Plugin-Obrazi

 view release on metacpan or  search on metacpan

lib/Mojolicious/Command/Author/generate/obrazi.pm  view on Meta::CPAN


$('h1,h2,h3').click(function(e) {
    e.stopPropagation();
    let idx = $(e.target).data('index');
    let section = $('section.idx' + idx);
    section.toggle('slow');
})

/*
    Clicking on a thumbnail opens a full-sized image in a 100%x100% screen-sized
    overlay box. Sets a more visible border on the thumbnail to remind the user
    where he/she was.
*/
$('section .card').click(function(e){
    e.stopPropagation();
    let self = $(e.target);
    let id = self.data('index');
    $('#' + id).toggle('slow');
    $('section .card').css({border:"0px"});
    self.css({border: "1px solid #333"});
    // let url  = location.toString().replace(/#.*?$/,'');



( run in 1.475 second using v1.01-cache-2.11-cpan-49f99fa48dc )