1var csrfloginHash = $('#csrfloginHash').val(); 2 3app.filter('unsafe', function ($sce) { return $sce.trustAsHtml; }); 4 5app.controller('researchMainPageServicesCtrl', function ($scope, $http, toastr, $sce, $location) { 6 $(".clearActiveClass").removeClass("active"); 7 setTimeout(() => { 8 $("#researchDetailsLi").addClass("active"); 9 $("#" + localStorage.getItem('research_name').split(' ').join('') + "_" + localStorage.getItem('research_id')).addClass('active'); 10 $("#" + localStorage.getItem('researchDetailsLi')).addClass('active'); 11 }, 500) 12 $scope.researchMainPageInit = function () { 13 14 $scope.parameters = $location; 15 $scope.url = $scope.parameters.absUrl(); 16 $scope.researchPageNameUrl = $scope.url.split("/"); 17 $scope.researchPageName = $scope.researchPageNameUrl[$scope.researchPageNameUrl.length - 1].split('-'); 18 $scope.researchUrl = $scope.researchPageName.join(' '); 19 20 $(".breadcrumbTitle").html(" " + $scope.researchUrl); 21 $(".breadcrumbPageTitle").html("" + $scope.researchUrl); 22 $scope.activitiesName = localStorage.getItem('research_name'); 23 $scope.research_id = localStorage.getItem('research_id'); 24 $scope.base_url = base_url; 25 26 $scope.sectionInformationArray = []; 27 $scope.researchListArray = []; 28 $scope.getResearch(); 29 30 } 31 32 33 $scope.getResearch = () => { 34 var transform = function (data) { 35 return $.param(data); 36 } 37 $http.post(window.site_url + 'FrontEndAPI/getResearch', { 38 'researchUrl': $scope.researchUrl, 39 }, { 40 headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' }, 41 transformRequest: transform 42 }).then(function (response) { 43 if (response.data.status.status == "200") { 44 $scope.dsl_id_content = response.data.data[0].res_id; 45 setTimeout(() => { 46 $scope.getSectionsWithContent(); 47 }, 100) 48 } else { 49 toastr.error(response.data.status.message); 50 } 51 }) 52 } 53 54 $scope.getSectionsWithContent = () => { 55 var transform = function (data) { 56 return $.param(data); 57 } 58 $http.post(window.site_url + 'FrontEndAPI/getresearchSection', { 59 'dsl_id': $scope.dsl_id_content, 60 }, { 61 headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' }, 62 transformRequest: transform 63 }).then(function (response) { 64 if (response.data.status.status == "200") { 65 $scope.sectionInformationArray = response.data.data; 66 console.log('$scope.sectionInformationArray', $scope.sectionInformationArray); 67 68 setTimeout(() => { 69 $scope.getresearch(); 70 $('.newsCustomeClass').children().first().find("div").click(); 71 }, 200) 72 } else { 73 toastr.error(response.data.status.message); 74 } 75 }) 76 } 77 78});
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.