0

JavaScript Part of My Web Code Bit Doesn't Work

Hello guys! I shared a web code bit recently and the JavaScript part does not work as expected. The same code works fine on my local machine and on GitHub webpages. https://code.sololearn.com/WPXTUpZFX11d/?ref=app https://github.com/THammami01/Simple-GUI-Calculator Please make sure not to view the output on portrait mode if you are using a phone because I didn't intend to make it responsive. Thanks.

17th Jun 2020, 1:01 PM
Tarek Hammami
Tarek Hammami - avatar
2 odpowiedzi
+ 2
Wrap your js in an onload listener. Like this onload = function(){ //All your javascript code }
17th Jun 2020, 2:32 PM
Ore
Ore - avatar
+ 1
Ore Thank you so much. Problem is solved :)
17th Jun 2020, 2:47 PM
Tarek Hammami
Tarek Hammami - avatar