DESCRIPTION
Building modern pop-up dialogs in e-learning can be a real challenge. It often involves multiple layers and complex setups. That’s why I created this custom pop-up feature to make life easier for us. This tool blurs the background and smoothly adds a sleek, customizable pop-up to your course. It's inspired by Apple’s minimal design and adds a familiar, polished touch that learners will recognize and appreciate. No coding headaches, just click, add your content, and engage your learners effortlessly.
SEE IT WORKING IN A COURSE
Curious to see the pop-up feature in action? Check out this LIVE DEMO I created in an Articulate Storyline course. Go ahead, give it a try and see how your courses can pop (pun intended)!
HOW TO USE
- Copy the Pop-Up Code: Here’s the JavaScript code you need to add a sleek pop-up to your eLearning course:
- Open Your Authoring Tool: Launch your favorite authoring tool like Articulate Storyline, Adobe Captivate, or any other tool that supports JavaScript.
-
Add a Button or Shape:
- Insert a button and label it or insert a shape of your choice.
- For a modern look, add a sleek info icon or a custom graphic to the shape or the button. -
Add a Trigger to the Button:
- In Articulate Storyline:
1. Select the button or shape.
2. Open the Triggers Panel.
3. Click “Create a New Trigger”.
4. Set the options:
- Action: Execute JavaScript
- When: User clicks the button
- In Adobe Captivate:
1. Select the button or shape.
2. Go to the Properties Panel.
3. Under the Actions tab, set On Success to “Execute JavaScript”. - Paste the JavaScript Code: In the JavaScript editor, paste the code you copied earlier.
-
Modify the Pop-Up Content:
Want to customize the heading and message? Here’s how:
- To change the heading: Look for this line in the code:heading.textContent = 'Welcome to the Future!';
Replace 'Welcome to the Future!' with your own text (keep the double quotes!).
- To change the message: Look for this line in the code:message.textContent = "I'm your supercharged popup! I'm here to dazzle, inform, and look insanely cool while doing it. Customize my text and let's make learning fun! ";
Replace the text inside the double quotes with your custom message.
That’s it! Just be careful not to remove the double quotes or change the structure of the code. -
Preview or Publish and Test:
- Preview Your Project:
- In Storyline: Click “Preview” > “This Slide” or “Entire Project”.
- In Captivate: Click “Preview” > “Project”.
- Publish Your Project (Optional):
- In Storyline: Go to Publish > Web or your preferred format.
- In Captivate: Go to Publish > Publish to HTML5.
- Test the Pop-Up:
1. In the preview or published project, click the button or shape you added.
2. The pop-up should appear with your custom heading and message.
3. Ensure everything works as expected and the design looks sleek and polished.
JOIN ME IN MAKING BETTER TOOLS
Building custom tools for instructional design takes a lot of creativity, time, and (let’s be honest) a lot of caffeine! My goal is to create features that help us build more engaging and learner-centered courses. If you’ve found these tools helpful, your support means the world. It helps me keep creating, improving, and sharing new solutions for the community.