PageSourceSearch

https://www.royaldraw.com/app/js/directives/newsAdItemCardDir.directive.js

js royaldraw.com collected 2026-10-03 22:00:48 UTC 1,020 bytes, 33 lines download raw bytes

1'use strict';
2angular
3 .module('app')
4 .directive("newsAdItemCardDir", function () {
5	//console.log('newsAdItemCardDir()');
6	return {
7		restrict: 'E',
8		priority: 9999,
9		scope: {newsAdItemData:'='},
10		templateUrl: 'app/views/newsAdItemCardDir.view.html',
11		controller:
12			['$scope', '$timeout',
13			function($scope, $timeout){
14				//console.log('newsAdItemCardDirController()');
15				//console.log("\$scope.timeDraw=\n" + utils.dump($scope.timeDraw));
16				//console.log("\$scope.timeDeal=\n" + utils.dump($scope.timeDeal));
17				$timeout(function(){
18					if ( $scope.timeDraw ) {
19						if ( ! $scope.timeDraw.past ) {
20							displayCountdown(parseEndDate($scope.timeDraw.endDateTime), $scope.timeDraw.drawID);
21						}
22					} else if ( $scope.timeDeal ) {
23						displayCountdown(parseEndDate($scope.timeDeal.endDate), $scope.timeDeal.dealID);
24					}
25				});
26			}],
27		link: function ( scope, element, attrs ) {
28			element.on('$destroy', function(){
29				//console.log('$destroy() in newsAdItemCardDir()');
30			});
31		}
32	};
33});

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.