Add frontend assets and plugin bundles
Add the legacy frontend themes, scripts, and plugin assets required by the main SPOTA interfaces.
This commit is contained in:
31
assets/js/pages-gallery.js
Normal file
31
assets/js/pages-gallery.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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();
|
||||
}
|
||||
};
|
||||
}();
|
||||
Reference in New Issue
Block a user