PageSourceSearch

https://paraty.rj.gov.br/scripts/angular/controllers/quizListCtrl.js

js paraty.rj.gov.br collected 2026-10-02 16:20:05 UTC 1,502 bytes, 49 lines download raw bytes

1app.controller('QuizListController', function ($scope, Questionarios, $filter) {
2
3    var page = 1;
4
5    $scope.limitforPage = 6;
6    $scope.palavra = '';
7    $scope.datainicio = '';
8    $scope.datafim = '';
9    $scope.questionarios = [];
10
11    $scope.statusid = {
12        Id: 0
13    }
14
15    var request = function () {
16        Questionarios._getDados(page, $scope.limitforPage, $scope.palavra, $scope.datainicio, $scope.datafim, $scope.statusid.Id)
17            .then(function successCallback(response) {
18                if (response.data.length != 0) {
19                    $scope.questionarios = $scope.questionarios.concat(response.data);
20                    console.log($scope.questionarios[0].QuizQuestions[0]);
21                }
22                else {
23                    $scope.disabled = true;
24                }
25            });
26    };
27
28    $scope.loadMore = function () {
29        page++;
30        request();
31    }
32
33    $scope.searchFilter = function () {
34
35        page = 1;
36        $scope.disabled = false;
37
38        var inicio = $filter('date')($scope.datainicio, "dd/MM/yyyy");
39        var fim = $filter('date')($scope.datafim, "dd/MM/yyyy");
40
41        Questionarios._getDados(page, $scope.limitforPage, $scope.palavra, inicio, fim, $scope.statusid.Id)
42            .then(function successCallback(response) {
43                console.log(response.data);
44                $scope.questionarios = response.data;
45            });
46    };
47
48    request();
49});

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.