1apollo.controller('videoControl',function($http,$scope,$sce){ 2 $scope.youtubePrefix = "https://www.youtube.com/embed/"; 3 $scope.prefix = function(id){ 4 return $sce.trustAsResourceUrl($scope.youtubePrefix+id); 5 } 6 7 // GET VIDEOS 8 $http.get('./json/videos.json').success(function(response){ 9 $scope.videos = response; 10 $scope.curVideo = response[0]; 11 }).error(function(response){ 12 $scope.videos = null; 13 alert('couldn\'t fetch videos'); 14 }); 15 16 $scope.getYtThumb = function(id){ 17 var string = ""; 18 string += "https://img.youtube.com/vi/"; 19 string += id; 20 string += "/mqdefault.jpg"; 21 return string; 22 } 23 24 $scope.switchVid = function(vidObj){ 25 $scope.curVideo = vidObj; 26 } 27 28});
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.