1var app = angular.module('Index', ['ngSanitize']); 2 3angular 4 .module('Index') 5 .controller('IndexCtrl', IndexCtrl); 6 7function IndexCtrl($scope, $http, $sce) 8{ 9 10 $scope.toTrusted = function(html) { 11 //console.log(html); 12 return $sce.trustAsHtml(html); 13 } 14 15 $scope.getLast = function() 16 { 17 18 $scope.resultByStrong = null; 19 20 var strongSearch = document.getElementById('strong').value; 21 //alert(strongSearch); 22 23 if (strongSearch) { 24 $scope.url = '/api/json/palavra.php?callback=JSON_CALLBACK'; 25 26 $scope.params = { 27 tipoRetorno: 'jsonp', 28 acao: 'searchByContent', 29 s: strongSearch, 30 strong: strongSearch 31 }; 32 33 $http({ 34 method: 'JSONP', 35 url: $scope.url, 36 params: $scope.params 37 }).success(function(data) { 38 if (data.resultado === 'sucesso') 39 { 40 //console.log('ok'); 41 $scope.resultByStrong = data.retorno; 42 } 43 else 44 { 45 alert(data.mensagem); 46 } 47 }).error(function(data, status) 48 { 49 //alert('Erro ao carregar.'); 50 }); 51 52 } 53 54 }; 55}
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.