1app.controller('EuropeanGeoportalsCtrl', [ '$scope', 'EuropeanGeoportalsService', 2 function($scope, EuropeanGeoportalsService) { 3 /** 4 * List of geoportals. 5 */ 6 $scope.geoportals = []; 7 8 /** 9 * Obtains the list of geoportals from the service. 10 */ 11 EuropeanGeoportalsService.getEuropeanGeoportals() 12 .success(function(data) { 13 $scope.geoportals = data; 14 }) 15 .error(function(data, status) { 16 $scope.geoportals = []; 17 console.error('Error'); 18 }); 19 20 /** 21 * Shows the geoportal's image, changing its position depending on the link. 22 */ 23 $scope.focusImage = function(geoportal){ 24 geoportal.style = getStyleLinkHoveredImage('linkGeoportal' + geoportal.country, 25 'imgGeoportal' + geoportal.country); 26 geoportal.hoverImage = true; 27 }; 28 29 /** 30 * Hides the geoportal's image. 31 */ 32 $scope.hideImage = function(geoportal){ 33 geoportal.hoverImage = false; 34 }; 35 } 36]);
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.