copy and paste of html and javascipt doesn't work

i copied and pasted the code from stack overflow into weebly.

and it doesn't work.

how to fix it?

origin:

https://stackoverflow.com/a/59837605/12753275

where it is:

https://www.windshieldtime.studio/calculate.html

516 Views
Message 1 of 5
Report
4 REPLIES 4

it works perfectly at stack overflow.

weebly doesn't support php.

so i have no choice but javascript.

515 Views
Message 6 of 5
Report

The closing tag of your script code is missing a /  @luggagedonkey. If you change that closing script tag to </script> instead of <script> that should help.

503 Views
Message 6 of 5
Report

there are so many programmer jokes about typos in code.  

that's my life.

THANKS!

498 Views
Message 6 of 5
Report

Anyone who has ever coded anything knows the pain! Sometimes you just need a second pair of eyes. Smiley Happy

494 Views
Message 6 of 5
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.