Files
spota-dev/assets/js/pages-gallery.js
Power BI Dev a52c2a8462 Add frontend assets and plugin bundles
Add the legacy frontend themes, scripts, and plugin assets required by the main SPOTA interfaces.
2026-05-02 10:09:32 +07:00

31 lines
932 B
JavaScript

var PagesGallery = function () {
//function to initiate Colorbox
var runColorBox = function () {
$(".group1").colorbox({
rel: 'group1',
transition: "none",
width: "100%",
height: "100%",
retinaImage: true
});
};
//function to Image Picker
var runImagePicker = function () {
$('.wrap-image .chkbox').bind('click', function () {
if ($(this).parent().hasClass('selected')) {
$(this).parent().removeClass('selected').children('a').children('img').removeClass('selected');
} else {
$(this).parent().addClass('selected').children('a').children('img').addClass('selected');
}
});
};
return {
//main function to initiate template pages
init: function () {
runColorBox();
runImagePicker();
}
};
}();