Forum Discussion
Check users sreen size/resolution using Javascript and report to Storyline?
Hi all,
I have an idea, but I'm unsure about how to put it into practise. I know it's possible to check a visitors screen size using Javascript, but I was wondering how this information could be reported to Storyline. I'm working on some system simulations, and the systems in questions are NOT suited for laptop screens. I want to allow Storyline to respond to this and tell the user what to do.
I realize I can just put it a warning stating "Warning! This course is best viewed on a large screen minimim 1920x1080!" or something along those lines. But it would be cool, if I could just bother users that actually use small screens.
Any ideas?
1 Reply
- MathNotermans-9Community Member
Storyline does this internally. And offcourse you can use Javascript to get the screensize. To pass data to Storyline the best solution is use custom variables. Then add a trigger with conditions to show some SlideLayer with your message.