BackBackNextNext
5.8 Bounce code
  1. You may decide to have an eLearning course and a SmartPhone course.
  1. A nice feature is to have your SmartPhone learner who navigates to your eLearning courses automatically bounced to the SmartPhone version of the course.
  1. To bounce the SmartPhone learner, add the following code to the inside of the <head>...</head> region of your eLearning course's main page.
<script type="text/javascript">
if (window.matchMedia)
{
isMobile = window.matchMedia('(max-device-width: 960px)').matches;
}
else
{
isMobile = screen.width <= 960;
}
if (isMobile)
{
location.href="/mobile/index.htm"; // **** Change URL here *****
}
</script>
BackBackNextNext
Tips Using ReadyGo WCB
1. Questions
2. Hidden features
3. Page Tips
4. Course Tips
5. SmartPhone Tips
Bookmark Page
Go to Bookmark