1var acegsApp = angular.module('acegsApp', ['ngSanitize', 'ngAnimate']); 2 3var tutoriaisCtrl = acegsApp.controller('tutoriaisCtrl', ['$scope', '$http', function ($scope, $http) { 4 $scope.listTutoriais = []; 5 6 $scope.currentPage = 1; 7 8 $scope.max_num_pages = 1; 9 10 $scope.isLoading = false; 11 12 $scope.completo = false; 13 14 $scope.loadTutorial = function () { 15 if (!$scope.completo) { 16 $scope.isLoading = true; 17 var param = angular.element.param({ 18 action: 'get_tutoriais', 19 p: ++$scope.currentPage 20 }); 21 var req = $http.get(ajaxurl + '?' + param); 22 23 req.success(function (response) { 24 console.log(response); 25 if (response.success) { 26 $scope.listTutoriais = $scope.listTutoriais.concat(response.data.posts); 27 $scope.max_num_pages = response.data.max_num_pages; 28 if (response.data.max_num_pages == response.data.page) { 29 $scope.completo = true; 30 jQuery(".carregar-texto").text("Todas as mensagens carregas"); 31 } 32 } 33 $scope.isLoading = false; 34 $scope.$applyAsync(); 35 }); 36 } else { 37 jQuery(".carregar-texto").text("Todas as mensagens carregas"); 38 } 39 40 }; 41 42 43}]); 44 45jQuery(document).ready(function ($) { 46 $(".bx-slider-main").bxSlider( 47 { 48 randomStart: false, 49 infiniteLoop: true, 50 pager: false, 51 auto: true, 52 pause: 10000 53 } 54 ); 55 $('.selectArea').customSelect(); 56 $('.colorbox-site').click(function (e) { 57 e.preventDefault; 58 $(this).colorbox({ 59 inline: true, 60 width: "50%", 61 maxWidth: "480px", 62 href: $(this).attr("href"), 63 height: "50%", 64 maxHeight: "200px" 65 }); 66 }); 67});
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.