Learn how to use a JavaScript snippet to display the current time in Articulate Storyline 360. This tutorial is perfect for beginners looking to enhance their eLearning design skills. Discover advanced techniques for customizing your Storyline projects using JavaScript. Dive into the world of mobile learning and eLearning authoring tools with Articulate 360. Watch now to elevate your Storyline projects with this innovative approach!
If you would like learn more visit https://learningdojo.ninja.
CODE USED
// Get Date Info
let currentDate = new Date();
let hours = currentDate.getHours();
let minutes = currentDate.getMinutes();
//Combine both
let timeStamp = hours + ":" + minutes;
//Pushing data to Storyline
let player = GetPlayer();
player.SetVar("currentTime", timeStamp);
player.SetVar("hours", hours);
Chapters
00:00 Introduction
00:56 Storyline and JavaScript
01:17 Time Use Cases
01:50 Setting Up Storyline
02:25 Changing My Image
03:28 Variables Used
04:17 Adding the JavaScript Snippet
04:33 Wallking Through the Code
06:50 Previewing Your Project
08:01 Adjusting the Time
08:18 Conclusion