|
@@ -4,6 +4,8 @@ app.controller('uploadCtrl', function ($scope, $http,video,notify) {
|
|
|
$scope.texto2="";
|
|
$scope.texto2="";
|
|
|
$scope.video = video;
|
|
$scope.video = video;
|
|
|
$scope.diapos = [];
|
|
$scope.diapos = [];
|
|
|
|
|
+ $scope.profesores = [];
|
|
|
|
|
+
|
|
|
var canvas = document.getElementById('c');
|
|
var canvas = document.getElementById('c');
|
|
|
var container = canvas.parentNode;
|
|
var container = canvas.parentNode;
|
|
|
var ctx = canvas.getContext('2d');
|
|
var ctx = canvas.getContext('2d');
|
|
@@ -19,11 +21,21 @@ app.controller('uploadCtrl', function ($scope, $http,video,notify) {
|
|
|
diapos = JSON.parse(d);
|
|
diapos = JSON.parse(d);
|
|
|
parseMessage(diapos[0]);
|
|
parseMessage(diapos[0]);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ function getProf(){
|
|
|
|
|
+ $http.get("https://plataforma.especificosba.com.ar/back/getAllProfesores.php?auth_token=4b494d6c7ffc74d387d8cfdef8ca1691").then(
|
|
|
|
|
+ function(data){
|
|
|
|
|
+ $scope.profesores = data.data;
|
|
|
|
|
+ },
|
|
|
|
|
+ function(data){
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
function respondCanvas(){
|
|
function respondCanvas(){
|
|
|
canvas.setAttribute('width', container.offsetWidth);
|
|
canvas.setAttribute('width', container.offsetWidth);
|
|
|
canvas.setAttribute('height', container.offsetWidth/4*3);
|
|
canvas.setAttribute('height', container.offsetWidth/4*3);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ getProf();
|
|
|
respondCanvas();
|
|
respondCanvas();
|
|
|
|
|
|
|
|
if (!String.prototype.format) {
|
|
if (!String.prototype.format) {
|