Responsive code - build 2 versions desktop and mobile, used to replace return url line of code is not longer found in the lms_index.html after update


I am working on a project for a client where we have decided to build 2 version of our course (desktop and mobile version). We have used a code where it will detect the user's screen size when the SCORM package is loaded. To either open up the Desktop or Mobile version.

Once published to SCORM 1.2 we used to be able to open the lms_index.html and modify line code 166

return url


var folder = "";
var w = window.innerWidth;
var h = window.innerHeight;
if(h>w) folder = "mobile/"
return folder + url;

However after installing the latest update I can no longer allocate this line of code in the lms_index.html. The code in the lms_index.html now looks different. I've tried going back to older version but when publishing the file out the published still has the new code. 

By any chance do you know if there another way we could do this in the new lms_index.html code?




Be the first to reply