Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Using document.getElementById(id) to implent a splash screen

$
0
0

Hi,

I am trying to implement a splash screen and use the document.getElementById(id) javascript  to get the element id and then add or remove the necessary css class.


var element = document.getElementById($parameters.canvasId);

element.classList.add('splashAnimationShow');

element.classList.remove ('splashAnimationHide');



I have tryed different codes for the getElement but not being able to get a working one, and the element variable keeps returning null.

Please find an example of the code attached, it´s on the OnInitialize Screen1 action.


Thank you

Sam A.




Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>