Index: lams_tool_doku/web/pages/learning/learning.jsp =================================================================== diff -u -r4b9716d28667d58ca04bcef7da9e500248d7344d -r81f928586161dd03042b6353f68c7d7b8279ccde --- lams_tool_doku/web/pages/learning/learning.jsp (.../learning.jsp) (revision 4b9716d28667d58ca04bcef7da9e500248d7344d) +++ lams_tool_doku/web/pages/learning/learning.jsp (.../learning.jsp) (revision 81f928586161dd03042b6353f68c7d7b8279ccde) @@ -1,8 +1,9 @@ <%@ include file="/common/taglibs.jsp"%> + <%-- param has higher level for request attribute --%> - + @@ -12,308 +13,295 @@ - - - - <%@ include file="/common/header.jsp"%> - - + .lower-to-fit-countdown { + margin-top: 55px; + } + - - - - - - + + + + + //handle screenreaders + var screenCountdown = $("#screenreader-countdown"); + var hours = $("#countdown").countdown('getTimes')[4]; + var minutes = $("#countdown").countdown('getTimes')[5]; + if (screenCountdown.data("hours") != hours || screenCountdown.data("minutes") != minutes) { + var timeLeftText = " "; + if (hours > 0) { + timeLeftText += hours + " "; + } + timeLeftText += minutes + " "; + screenCountdown.html(timeLeftText); - <%@ include file="websocket.jsp"%> - - + screenCountdown.data("hours", hours); + screenCountdown.data("minutes", minutes); + } + }, + onExpiry: function(periods) { + if (isWebsocketClosed('dokuTimeLimit${sessionMap.toolContentID}')){ + console.error('Time limit websocket closed on time expire, reloading page'); + alert('Connection issue. The page will now reload.'); + document.location.reload(); + return; + } + $.blockUI({ + message: '' + + ' ' + + '' + + '' + }); + setTimeout(function() { + location.reload(); + }, 4000); + }, + description: "" + }); + } + + <%@ include file="websocket.jsp"%> - - - - - - - - + - - - - - - - - - - - - - + + + + + + + + - + + + + + + + + + + + + - + - - - - - + + + - - - - - - - - - - + + + + + - - - - - - - - - - - - - - + + + + + - - - - - - - - - + + + + + + + title="" + onClick="javascript:location.href = location.href + '&galleryWalk=forceStart'" + + + title="" + + + > + + + - - - - - - - title="" - onClick="javascript:location.href = location.href + '&galleryWalk=forceStart'" - - - title="" - - - > - - - - - - - - - - - style="display: none" - > - - - - - - - - - - - - - - - + + + + + - + + <%-- show no button for non-leaders until leader will finish activity --%> + - - + + + + + + + + + + + + + + + - - - \ No newline at end of file + + \ No newline at end of file
- - - -
- -