Skip to content

Commit 1b6cc60

Browse files
unknownunknown
authored andcommitted
#5-08-2024
1 parent 7509270 commit 1b6cc60

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

appsTeacher/lectures/site_files/html/view-video.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,21 @@
2929
display: block;
3030
z-index: 999999;
3131
}
32+
#blocker2 {
33+
position: fixed;
34+
bottom: 0px;
35+
height: 5%;
36+
width: 30%;
37+
background-color: transparent;
38+
border: none;
39+
display: block;
40+
z-index: 999999;
41+
}
3242
</style>
3343
</head>
3444
<body class="##session.lang##" ng-controller="view-video">
3545
<div id="blocker"></div>
46+
<div id="blocker2"></div>
3647
<iframe src="##data.videoURL##" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
3748
<div x-import="teacher-theme/scripts.html"></div>
3849
<script x-import="lectures/view-video.js"></script>

appsTeacher/lectures/site_files/js/lectureView.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ app.controller("lectureView", function ($scope, $http, $timeout) {
165165
$scope.busy = false;
166166
}
167167
);
168-
} else if (site.isMobile()) {
168+
/* } else if (site.isMobile()) { */
169+
} else {
169170
$http({
170171
method: "POST",
171172
url: `${$scope.baseURL}/api/lectures/changeViewMobile`,
@@ -179,10 +180,11 @@ app.controller("lectureView", function ($scope, $http, $timeout) {
179180
window.open(`/view-video?code=${link.code}&id=${$scope.item._id}`);
180181
}
181182
});
182-
} else {
183+
}
184+
/* else {
183185
site.showModal("#socialBrowserModal");
184186
return;
185-
}
187+
} */
186188
};
187189

188190
$scope.finishQuiz = function (quiz) {
@@ -282,4 +284,4 @@ app.controller("lectureView", function ($scope, $http, $timeout) {
282284
};
283285

284286
$scope.view();
285-
});
287+
});

0 commit comments

Comments
 (0)