text: const num_image_range=12;function get_base_url(){let a=window.location.href,e=window.location.pathname;return a.replace(e,"")}$(document).ready(function(){let a,e=Ractive({el:"#gallery_container",template:"#gallery_images",data:{images:[],max_images:0}});window.ractive_gallery=e,e.on("add_gallery_images",()=>{e.set("max_images",e.get("max_images")+12),a&&a.destroy(),a=$("#gallery_container .gallery_links").simpleLightbox({navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>']})}),$.ajax({url:get_base_url()+"/api/gallery_images",method:"GET",data:{page_id:$("#page_id").attr("value")},dataType:"json"}).done(a=>{a.data&&(e.set("images",a.data),e.fire("add_gallery_images"))})});