PageSourceSearch

https://sjb.rj.gov.br/scripts/controllers_rotas_app/control_rota_transporte_publico.js?v=1783716565

js sjb.rj.gov.br collected 2026-10-02 15:28:34 UTC 1,824 bytes, 54 lines download raw bytes

1'use strict';
2
3/**
4 * @ngdoc function
5 * @name minovateApp.controller: TransportePublicoCtrl
6 * @description
7 * # Chama seção de lugares para transporte_publico
8 * Controller of the portalgovApp
9 */
10angular.module('portalgovApp')
11	.controller('transporte_publicoCtrl', function ($scope, $modal, $http,$rootScope,MetaService) {
12		$scope.filteredTodos = []
13		$scope.pontos=[];
14		
15		$http({method: 'POST', url: 'controllers/transporte_publico/class_transporte_publico.php', data: $.param({func:'7'}), headers: {'Content-Type': 'application/x-www-form-urlencoded'} }).
16  		then(function(response) {
17  			var r=response.data;
18			$scope.pontos = r;
19  			
20  			$scope.$watch('pontos + data.currentPage + data.numPerPage', function() {
21  			  var begin = (($scope.data.currentPage - 1) * $scope.data.numPerPage), end = begin + $scope.data.numPerPage;
22  			  $scope.filteredTodos = $scope.pontos.slice(begin, end);
23  		    });
24  			
25  			$scope.data.totalItems = $scope.pontos.length;
26  		});
27		
28		$rootScope.metaservice = MetaService;
29  		$rootScope.metaservice.set("Lugares para TransportePublico","","");
30	
31		$scope.change_page = function(page){
32			$scope.data.currentPage=page;	
33		};
34	
35		$scope.data ={
36			currentPage: 1,
37	  		numPerPage: 15,
38  			maxSize: 5
39		};
40	})
41	.controller('transporte_publico_viewCtrl', function ($scope, $modal, $http, $stateParams,$rootScope,MetaService, $sce) {
42		var id = $stateParams.id;
43  		$http({method: 'POST', url: 'controllers/transporte_publico/class_transporte_publico.php', data: $.param({func:'8', id: id}), headers: {'Content-Type': 'application/x-www-form-urlencoded'} }).
44  		then(function(response) {
45  			var r=response.data;
46  			$scope.ponto = r[0];
47			
48  			$rootScope.metaservice = MetaService;
49  			$rootScope.metaservice.set($scope.ponto.nome,"","");
50  			
51  		});
52  		
53	});
54	

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.