+ 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 Answers
+ 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!