I need to embed a booking service into my webpage. I got the javascript to doit but when I insert it Ijust get a blank page. After running the code through a validator it turns out there are some errors ornon compliance. Can youplease hep me makeit compliant and run
html tags are invalid code inside script tags. Remove the html comment from inside the script tag.
In javascript you also need to declare all your variables with let or const
Also, welcome to the forums.
While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too. Some of what you are asking is pretty trivial in the Free Code Camp context, so you might find that if youβre not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess Iβd say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at https://www.freecodecamp.org/learn.
Iβm unable to test on these sites, due to some cross-site issue,
but the errors are with HTML comment tag(<!--, -->) and undeclared variable as mentioned by @ilenia and me earlier
It seems to work just fine for me, it creates the iframe and adds the data from the variables.
You may have to check the height you set on _fez_height, it is possible that the iframe is collapsed. You can add a fixed height in pixels or make sure the iframe is getting the height from its parent element. You might try adding a height to the html/body in the CSS.
html, body {
height: 100%;
}
Use https for the links to the script and CSS files