1var csrfloginHash = $('#csrfloginHash').val(); 2 3 4app.controller('AdminGalleryServicesCtrl', function ($scope, $http, toastr) { 5 $scope.AdminGalleryInit = function () { 6 $scope.GalleryImagesArr = []; 7 $scope.activeYear = ''; 8 $scope.getAllgalleryListService(); 9 $scope.base_url = base_url; 10 } 11 12 $scope.getAllgalleryListService = () => { 13 14 var transform = function (data) { 15 return $.param(data); 16 } 17 $http.post(window.site_url + 'FrontEndAPI/getGallery', { 18 inputSearchValue: $scope.inputSearchValue, 19 }, { 20 headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' }, 21 transformRequest: transform 22 }).then(function (response) { 23 if (response.data.status.status == "201") { 24 $scope.GalleryImagesArr = response.data.data; 25 $scope.activeYear = Object.keys(response.data.data)[0]; 26 Object.keys($scope.GalleryImagesArr).map((key) => { 27 let imgArr = []; 28 29 for (let i = 0; i < $scope.GalleryImagesArr[key].length; i++) { 30 let path = $scope.GalleryImagesArr[key][i]["galleryImage"].split("~^~") 31 32 imgArr = []; 33 34 path.map((p) => { 35 let pathAndCaption = p.split("~%~"); 36 imgArr.push({ 37 imgPath: pathAndCaption[0], 38 caption: pathAndCaption[1], 39 }) 40 }) 41 $scope.GalleryImagesArr[key][i].galleryImage = imgArr; 42 43 } 44 }); 45 46 $scope.activeYear = Object.keys($scope.GalleryImagesArr)[0]; 47 48 // jQuery(".gallery-holder").html5lightbox(); 49 } else { 50 toastr.error(response.data.status.message); 51 } 52 }) 53 } 54 55 $scope.isGalleryPresent = () => { 56 return Object.keys($scope.GalleryImagesArr).length > 0 ? true : false; 57 } 58 59 $scope.changeActiveYear = (year) => { 60 $scope.activeYear = year; 61 } 62 63}); 64 65
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.