Forum Discussion
AyseSahin-3327f
3 years agoCommunity Member
Javascript not working on the LMS
Hello, I have integrated Javascript into my storyline (and one line into "story.html). It works when I open it locally (once it's been scormed and I click on story.html).
However, IT DOES NOT WORK...
AyseSahin-3327f
3 years agoCommunity Member
Update, just paste the Jquery in the "index.lms.html", no need to paste it into the story.html. It will work :)
- RebeccaPartr6794 months agoCommunity Member
Hi, I know this is an older thread but I am having the same issue with a date javascript in my LMS. I am very new to storyline this is my date code. Where would I add the index.lms bit please?
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var dateString = day + "/" + month + "/" + year;
var player = GetPlayer();
player.SetVar("TODAYSDATE", dateString);