Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksptang committed Nov 21, 2023
1 parent ce0b4e0 commit 4a7505d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions step-web/src/main/webapp/start.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -446,17 +446,13 @@
<div class="sidebar-offcanvas" dir="${ ltr ? "ltr" : "rtl" }" id="sidebar" style="overflow-y:hidden" role="navigation"></div>
</div>
</div>

<% if (request.getParameter("mobile") == null) {
String langCode = ValidateUtils.checkLangCode(request.getParameter("lang"), locale); %>
<script src="intl/<%= URLEncoder.encode(langCode, "UTF-8") %>.${project.version}.js" type="text/javascript"></script>
<% } %>
<% String langCode = ValidateUtils.checkLangCode(request.getParameter("lang"), locale); %>
<script src="intl/<%= URLEncoder.encode(langCode, "UTF-8") %>.${project.version}.js" type="text/javascript"></script>
<%@include file="jsps/initLib.jsp"%>
<%
String userCountry = request.getHeader("cf-ipcountry");
userCountry = (userCountry == null) ? "UNKNOWN" : userCountry.toUpperCase();
%>
<%-- Now do javascript --%>
<script type="text/javascript">
window.tempModel = ${ not empty passageModel ? passageModel : 'undefined' };
if (!window.step) {
Expand All @@ -467,7 +463,7 @@ userCountry = (userCountry == null) ? "UNKNOWN" : userCountry.toUpperCase();
step.userCountryCode = "<%=userCountry%>";
// code to enable mobile device swipe to go back or forward one chapter
var ua = navigator.userAgent.toLowerCase();
var ua = navigator.userAgent.toLowerCase();
if ((ua.indexOf("android") > -1) || (ua.indexOf("iphone") > -1) || (ua.indexOf("ipad") > -1) ||
((ua.indexOf("macintosh") > -1) && (navigator.maxTouchPoints == 5))) {
step.touchDevice = true;
Expand All @@ -486,6 +482,7 @@ userCountry = (userCountry == null) ? "UNKNOWN" : userCountry.toUpperCase();
step.touchDevice = false;
</script>
<%-- The following 3 were added to the step.version_num.min.js. Keep them as comment in case we want to reverse the change --%>
<%-- <script src="libs/jquery-1.10.2.min.js" type="text/javascript"></script> --%>
<%-- <script src="libs/bootstrap.min.js" type="text/javascript"></script> --%>
<%-- <script src="libs/introjs.min.js" type="text/javascript"></script> --%>
Expand Down

0 comments on commit 4a7505d

Please sign in to comment.