Index: lams_tool_doku/web/pages/learning/learning.jsp
===================================================================
diff -u -r876e644c066e81c2721ffa085fd12f386e2f3bb6 -r4b9716d28667d58ca04bcef7da9e500248d7344d
--- lams_tool_doku/web/pages/learning/learning.jsp (.../learning.jsp) (revision 876e644c066e81c2721ffa085fd12f386e2f3bb6)
+++ lams_tool_doku/web/pages/learning/learning.jsp (.../learning.jsp) (revision 4b9716d28667d58ca04bcef7da9e500248d7344d)
@@ -73,38 +73,38 @@
let timeLimitExceeded = ${timeLimitExceeded};
initWebsocket('dokuTimeLimit${sessionMap.toolContentID}',
- ''.replace('http', 'ws')
- + 'learningWebsocket?toolContentID=${sessionMap.toolContentID}',
- function (e) {
- // create JSON object
- var input = JSON.parse(e.data);
+ ''.replace('http', 'ws')
+ + 'learningWebsocket?toolContentID=${sessionMap.toolContentID}',
+ function (e) {
+ // create JSON object
+ var input = JSON.parse(e.data);
- if (input.clearTimer == true) {
- // teacher stopped the timer, destroy it
- $('#countdown').countdown('destroy').remove();
- } else if (typeof input.secondsLeft != 'undefined'){
- // teacher updated the timer
- var secondsLeft = +input.secondsLeft,
- counterInitialised = $('#countdown').length > 0;
+ if (input.clearTimer == true) {
+ // teacher stopped the timer, destroy it
+ $('#countdown').countdown('destroy').remove();
+ } else if (typeof input.secondsLeft != 'undefined'){
+ // teacher updated the timer
+ var secondsLeft = +input.secondsLeft,
+ counterInitialised = $('#countdown').length > 0;
- if (counterInitialised) {
- // just set the new time
- $('#countdown').countdown('option', 'until', secondsLeft + 'S');
- } else if (timeLimitExceeded){
- if (secondsLeft > 0) {
- // teacher gave extra time, reload to writable Etherpad
- location.reload();
- return;
- }
- } else {
- // initialise the timer
- displayCountdown(secondsLeft);
- }
+ if (counterInitialised) {
+ // just set the new time
+ $('#countdown').countdown('option', 'until', secondsLeft + 'S');
+ } else if (timeLimitExceeded){
+ if (secondsLeft > 0) {
+ // teacher gave extra time, reload to writable Etherpad
+ location.reload();
+ return;
}
+ } else {
+ // initialise the timer
+ displayCountdown(secondsLeft);
+ }
+ }
- // reset ping timer
- websocketPing('dokuTimeLimit${sessionMap.toolContentID}', true);
- });
+ // reset ping timer
+ websocketPing('dokuTimeLimit${sessionMap.toolContentID}', true);
+ });
$('[data-toggle="tooltip"]').bootstrapTooltip();
});
@@ -286,12 +286,12 @@
-
- <%-- show no button for non-leaders until leader will finish activity --%>
-
+ class="btn btn-primary voffset5 pull-right na"
+
+ style="display: none"
+ >