PageSourceSearch

https://devintersection.com/showinfo/showsponsorship.js

js devintersection.com collected 2026-10-03 19:16:33 UTC 1,977 bytes, 52 lines download raw bytes

1'use strict';
2
3angular.module('myApp.showsponsorship', ['ngRoute'])
4    .config([
5        '$routeProvider', function($routeProvider) {
6            $routeProvider.when('/showinfo', {
7                templateUrl: 'showinfo/showsponsorship.html',
8                controller: 'SponsorsCtrl'
9            });
10        }
11    ])
12    .controller('SponsorsCtrl', [
13        '$scope', '$http', function($scope, $http) {
14
15            $scope.allSponsors = [];
16            $scope.diamondCategory = [];
17            $scope.platinumCategory = [];
18            $scope.goldCategory = [];
19            $scope.silverCategory = [];
20            $scope.mediaCategory = [];
21            $scope.sponsorCategory = [];
22            $scope.exhibitorCategory = [];
23
24            $scope.loadAllSponsors = function() {
25                $http.get('/api/showinfo').then(
26		          function successCallback(sponsors) {
27		                // $scope.allSponsors = sponsors.data;
28                        // $scope.diamondCategory = getSponsorsByCategory("Diamond");
29                        // $scope.platinumCategory = getSponsorsByCategory("Platinum");
30                        // $scope.goldCategory = getSponsorsByCategory("Gold");
31                        // $scope.silverCategory = getSponsorsByCategory("Silver");
32                        // $scope.mediaCategory = getSponsorsByCategory("Media Sponsor");
33                        // $scope.sponsorCategory = getSponsorsByCategory("Sponsor");
34                        // $scope.exhibitorCategory = getSponsorsByCategory("Exhibitor");
35                    },
36          function errorCallback(response) {
37              console.log("Failed to load sponsors");
38          }
39      	)
40  };
41
42            var getSponsorsByCategory = function(category) {
43                var filteredList = $scope.allSponsors.filter(function(item) {
44                    return (item.Category === category);
45                });
46
47                return filteredList;
48            };
49
50        }
51    ]);
52

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.