+ 3
Animation Using Keyframes, Audio Bug
Hello! My code has several đ đ· đ đȘł. Well, maybe not đȘłâŠ. 1. Grass isnât displaying. 2. Credits should marquee across the width of the window. Both my container and credit seem to be blocked by a margin that prevents: a) getting container to span width of window b) getting marquee to scroll the width of the window. 3. What to use instead of <pre> to force footer to bottom of page? NEW: Audio not playing? https://code.sololearn.com/Wj0e9xP8Sg1i/?ref=app. Thanks!
10 Respostas
+ 2
1 in line 40 you need to put } that's why the grass doesn't appear
2 inside "credit" includes position : absolute and bottom : 10px or how much you need to move away from the bottom, in percentage pixels...
and your credits section is outside the body <body> has to be inside
+ 1
L.M.Paredes I seriously cannot believe I overlooked the }. Thank you đ
+ 1
Anyone know why audio isnât playing? I used a Dropbox link to it. It doesnât work regardless of whether I add âmutedâ or not.
+ 1
Solomoni Railoa Ni sa bula vinaka đ . I greatly appreciate the time and effort you took to figure this one out, my friend. âVinakaâ.
Iâve only checked it with a Mac and iphone, and still donât hear it (Safari must be one of âthoseâ browsers you refer to) but Iâll check a bit later using a PC. I read some time ago that adding âmutedâ will allow it to play in all browsers, albeit muted. At any rate, Iâm learning a ton from this seemingly simple feature. I thank you again for this helpful info and for fixing the issue! I hope you liked the audio. đ On to the tutorial. Vinaka.
+ 1
Solomoni Railoa I finally got to test the audio on a few different machines & browsers. First, I had two different audio files (one from Dropbox & one from Internet). The non-DropBox file works fine, so I kept it for my project. Hereâs what happened in testing the Dropbox file that you fixed:
Chromebook: (Chrome OS)
1. Error numbered 16 âReferenceError: playNoise is not defined at HTMLHtmlElement.onmouseover (https://solocode.azurewebsites.net/:1:54)â
2. âSyntaxError: Unexpected end of inputâ
3. No sound with or without mouseover
Dell laptop: (MS Edge) Same as with ChromeBook. Same errors.
iPhone: (Safari)
1. No sound. No console errors.
Mac: (Firefox)
1. Sound works!
Unrelated to your code fix, sun stays stationary, and I get major lagging with Firefox.
Mac: (Safari)
1. âundefinedâ
2. Error numbered 28 âonmouseover@https://solocode.azurewebsites.net/:1:10â
Mac: (Edge)
No sound. Errors same as with Chromebook.
đ„đŠđ
+ 1
Yes, I can try that. Iâve previously learned that itâs better to separate the three (HTML, CSS, JS) I think for readability, but I can try that. Thanks!