PageSourceSearch

https://repertorio.org/scripts/controllers/education.js

js repertorio.org collected 2026-10-02 12:14:38 UTC 972 bytes, 28 lines download raw bytes

1'use strict';
2
3/**
4 * @ngdoc function
5 * @name repertorioApp.controller:EducationCtrl
6 * @description
7 * # ContactCtrl
8 * Controller of the repertorioApp
9 */
10angular.module('repertorioApp').controller('EducationCtrl', function ($scope, $rootScope, PageLoader, $location, $filter) {
11
12	$rootScope.page_id = 21;
13	PageLoader.getPage($rootScope.page_id, function(data) {
14	    $rootScope.pageData = data;
15		$scope.shareUrl = encodeURIComponent($location.absUrl());
16		$scope.shareText = encodeURIComponent("Since its beginning, Repertorio Español has committed its resources to making theatre accessible and part of the classroom experience");
17	});
18	
19	$scope.getImage = function(img_id) {
20		var result = $filter('filter')($rootScope.pageData.attachments, {id:img_id})[0];
21  		return result.url;
22  	};
23	
24	function vimeoTrusted($scope, $sce) {
25		$scope.vimeoUrl = $sce.trustAsResourceUrl('http://player.vimeo.com/video/'+$scope.v);
26		console.log('Vimeo url is: '+vimeoUrl);
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.