HTML/JS Integration in Lectora

tmichael9734
Community Member Posts: 142 ♪ Opening Act ♪
Hi Everyone,
I'm novice in JS and I'm trying to integrate this customized progress bar: https://www.w3schools.com/howto/howto_js_progressbar.asp into my Lectora title. For two days now, I've been reading most of the articles on this topic, in forum and on the Internet, but to no avail.
Can anyone please describe for me in simple bullets how to do that? I'm looking also for simple steps to use whenever I want to use JS in Lectora.
Many thanks,
I'm novice in JS and I'm trying to integrate this customized progress bar: https://www.w3schools.com/howto/howto_js_progressbar.asp into my Lectora title. For two days now, I've been reading most of the articles on this topic, in forum and on the Internet, but to no avail.
Can anyone please describe for me in simple bullets how to do that? I'm looking also for simple steps to use whenever I want to use JS in Lectora.
Many thanks,
Comments
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 631 eLearning ROCKSTAR Admin TeamHi Therese @tmichael9734,
I'm curious as to why you don't use the Progress Bar object that is part of Lectora?
Thanks, - Joe -
Hi Joe,
Thank you for your quick response. I want to customize the Progress bar for 2 reasons:
1- I need the percentage of completion for accessibility reasons. AT users cannot see the bar when it advances but at least they can hear the remaining percentage.
2- I really would love to learn how to integrate JS in Lectora, for some fun stuff. People are saying that Lectora provides flexibility of using JS and HTML gadgets and creating more appealing and interactive courses, and I want to taste this experience myself.
Thank you again, -
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 631 eLearning ROCKSTAR Admin TeamTherese @tmichael9734
Thank you for the explanation!
There are many ways to do this, I decided to put all the code inside a HTML Extension as an example. You can then size the HTML Extension object as you would like and it will be the progress bar.
I have attached my example as a Lectora Online Package file. It can be imported into either Lectora Online or Lectora Desktop.
See if this helps you. There are many skilled developers in the forums, so I hope they post some other solutions, maybe with some more details
Hope this helps.
- Joe -
-
One of the first things you need to know when starting with Javascript is the use of selectors. A 'selector' is a way to select part of a page. That can be an image, a text or anyother page-element. JQuery for example is a library originally designed to select page-elements easily.
So when you are familiar with the most common Javascript selectors, both in plain javascript ( often called 'Vanilla Javascript' ) and using libraries like JQuery to select page-elements...you will need to combine that knowledge to select elements in Lectora.
There is a big difference in selecting page-elements with javascript in Lectora Online and the desktop versions, so be quite aware of that...and always mention which Lectora version your working with when asking for Javascript help.
Kind regards ,
Math -
Although this is far from ready i uploaded some course i planned on Javascript in Lectora. Time and work prevented me from finishing it, but you might find some usefull tips in it...
https://community.trivantis.com/shared-content/first-steps-in-javascript/ -
And another unfinished but usefull part of that course...
https://community.trivantis.com/shared-content/getting-started-with-javascript/ -
Hi Math,
Thanks a lot for the tips and the sample courses. I'm sure they'll be very helpful for me, no matter finished or not:) I'll look at them and will come back to you with questions if you don't mind. BTW I'm using Lectora Inspire (the desktop version).
Many thanks again and appreciate all your help and time. -
Categories
- 4.7K All Categories
- 3 New Feature Releases
- The Training Arcade®
- Arcades™
- 57 ✫ Announcements
- 6 ✪ Contests
- 34.1K eLearning Brothers® Products
- 33.6K Lectora®
- 31.5K Lectora Discussions
- 1.9K Lectora Feature Requests
- 64 Lectora User Groups
- 16 Asset Library
- 10 AssetLibrary Discussions
- 6 AssetLibrary Feature Requests
- 291 CenarioVR®
- 169 CenarioVR Discussions
- 122 CenarioVR Feature Requests
- 29 Rockstar Learning Platform®
- 20 Rockstar Learning Platform Discussions
- 9 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 114 CourseMill®
- 107 CourseMill Discussions
- 43 ReviewLink®
- 31 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 2 The Training Arcade®
- 1 The Training Arcade Discussions
- 1 The Training Arcade Feature Requests
- 10 Additional Learning Products
- 2 Adobe®
- 4 Articulate®
- 2 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 911 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 11 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 545 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 5 Visual Design
- 328 Web Accessibility
- 1.2K ♪ The Green Room
- 7 ♡ Community Feedback
- 7 Community Tips