PageSourceSearch

https://www.museobiassono.it/app/scripts/factories/newsFactory.js

js museobiassono.it collected 2026-10-02 07:28:44 UTC 1,071 bytes, 42 lines download raw bytes

1(function(){
2  'use strict';
3
4  angular
5  .module('newsFactory',[])
6  .factory('news', newsFactory);
7    //factory('news', ['$http',newsFactory]);
8
9    newsFactory.$inject = ['$http'];
10    function newsFactory($http){
11      return {
12        list: function (year, lang, callback){
13          if(year!==undefined)
14          {
15            $http({
16              method: 'GET',
17              url: 'data/news/'+lang+'/'+year+'/news.json',
18              cache: true
19            }).success(callback);
20          }
21          else
22          {
23            $http({
24              method: 'GET',
25              url: 'data/news/'+lang+'/newest.json',
26              cache: true
27            }).success(callback);
28          }
29        },
30        find: function(year, lang, id, callback){
31          if(year!==undefined && lang!==undefined && id!==undefined)
32          {
33            $http({
34              method: 'GET',
35              url: 'data/news/'+lang+'/'+year+ '/news-' + id + '.json',
36              cache: true
37            }).success(callback);
38          }
39        }
40      };
41    }
42})();

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.