PageSourceSearch

https://www.officialcatholicdirectory.com/assets/controllers/web.horizontal.partials.controller.js

js officialcatholicdirectory.com collected 2026-10-02 12:57:20 UTC 5,619 bytes, 148 lines download raw bytes

1// 'use strict';
2// angular.module('web')
3//     .controller('web.right.partials.controller', ['$scope', '$location', '$dataService', '$sce', '$http', 'FeedService', '$rootScope', '$state', function($scope, $location, $dataService, $sce, $http, FeedService, $rootScope, $state) {
4//             setTimeout(function() {
5//             $('.bxslider').bxSlider({
6//             default: false,
7//             auto: true,
8//             autoControls: true,
9//             mode: 'horizontal',
10//             useCSS: true,
11//             infiniteLoop: true,
12//             hideControlOnEnd: true,
13//             easing: 'easeOutElastic',
14//             speed: 1500,
15//         });
16//         $(".bx-controls-auto").hide();
17//         $(".bx-default-pager").hide();
18//         $(".bx-prev").hide();
19//         $(".bx-next").hide();
20
21//             }, 300);
22//         $scope.direcoryName = $rootScope.currentDirectory.name;
23//         $scope.stload = function() {
24//             //$state.reload($state.current.name);
25//             window.location = document.URL.slice(0, document.URL.indexOf($scope.direcoryName)) + $scope.direcoryName + '/news';
26//         };
27
28//         $dataService.get('web-data?pageName=museum-news',
29//             function(data) {
30//                 if (data != null) {
31//                     $scope.sections = data
32//                 }
33//             },
34//             function(error) {
35//                 console.log(error)
36//             })
37
38//         if ($scope.direcoryName == 'OCD') {
39//             $scope.feedSrc = 'https://cnsblog.wordpress.com/feed/';
40//         } else if ($scope.direcoryName == 'OMD') {
41//             $scope.feedSrc = 'http://www.museumsassociation.org/rss/news';
42//         }
43
44//         FeedService.parseFeed($scope.feedSrc).then(function(res) {
45//             var data = res.data.responseData.feed.entries;
46
47//             if ($scope.direcoryName == 'OCD') {
48//                 for (var i = 0; i < data.length; i++) {
49//                     var publishDate = new Date(data[i].publishedDate);
50//                     data[i].publishDate = publishDate;
51//                 }
52//             }
53//             $scope.feeds = data;
54//         });
55
56
57//     }])
58
59'use strict';
60angular.module('web')
61    .controller('web.horizontal.partials.controller', ['$scope', '$location', '$dataService', '$sce', '$http', 'FeedService', '$rootScope', '$state', function($scope, $location, $dataService, $sce, $http, FeedService, $rootScope, $state) {
62        $scope.todayDate = new Date().toISOString();
63        // $('.bxslider').bxSlider({
64        //     default: false,
65        //     auto: true,
66        //     autoControls: true,
67        //     mode: 'horizontal',
68        //     useCSS: true,
69        //     infiniteLoop: true,
70        //     hideControlOnEnd: true,
71        //     easing: 'easeOutElastic',
72        //     speed: 1500,
73        //     pause: 10000,
74        // });
75
76        setTimeout(function() {
77            $('.bxsliderforhorizontal').show().bxSlider({
78                // onSliderLoad: function() {
79                //     $(".bxslider-wrap").css("visibility", "visible");
80                // },
81                default: false,
82                auto: true,
83                autoControls: true,
84                mode: 'horizontal',
85                useCSS: true,
86                infiniteLoop: true,
87                hideControlOnEnd: true,
88                easing: 'easeOutElastic',
89                slideWidth: 840,
90                speed: 1500,
91                pause: 7000,
92                touchEnabled:false,
93            });
94            $(".bx-controls-auto").hide();
95            $(".bx-default-pager").hide();
96            $(".bx-prev").hide();
97            $(".bx-next").hide();
98
99        }, 500);
100
101        $(".bx-controls-auto").hide();
102        $(".bx-default-pager").hide();
103        $(".bx-prev").hide();
104        $(".bx-next").hide();
105        $scope.direcoryName = $rootScope.currentDirectory.name;
106        $scope.stload = function() {
107            //$state.reload($state.current.name);
108            window.location = document.URL.slice(0, document.URL.indexOf($scope.direcoryName)) + $scope.direcoryName + '/news';
109        };
110        $dataService.get('web-data?pageName=museum-news',
111            function(data) {
112                console.log(data);
113                if (data != null) {
114                    $scope.sections = data;
115                }
116            },
117            function(error) {
118                console.log(error)
119            })
120        if ($scope.direcoryName == 'OCD') {
121            $scope.feedSrc = 'https://cnsblog.wordpress.com/feed/';
122        } else if ($scope.direcoryName == 'OMD') {
123            $scope.feedSrc = 'http://www.museumsassociation.org/rss/news';
124        }
125        FeedService.parseFeed($scope.feedSrc).then(function(res) {
126            var data = res.data.responseData.feed.entries;
127
128            if ($scope.direcoryName == 'OCD') {
129                for (var i = 0; i < data.length; i++) {
130                    var publishDate = new Date(data[i].publishedDate);
131                    data[i].publishDate = publishDate;
132                }
133            }
134            $scope.feeds = data;
135        });
136        $dataService.get('web-data?pageName=museum-advertise',
137            function(data) {
138                if (data != null) {
139                    $scope.section = data;
140                }
141            },
142            function(error) {
143                console.log(error)
144            }
145        )
146
147
148    }])

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.