Submitted over 1 year agoA solution to the Rock, Paper, Scissors game challenge
Rock, Paper, Scissors. (Lizard + Spock can be enabled after playing).
accessibility, bem
@Grego14

Solution retrospective
What are you most proud of, and what would you do differently next time?
Proud completed the challenge... It took time but next time I'll focus more on doing the challenge rather than making it look good.
What challenges did you encounter, and how did you overcome them?Most of my problems were with the design, but not that difficult and I was able to solve them easily. I just didn't want to use a lot of styles and that's what got complicated for me.
What specific areas of your project would you like help with?Help with using media querys and preloading resources using javascript. I've been looking at a few ways to preload resources and ended up using this one:
function preloadSource(url, source, callback) {
source.src = url
if(callback) {
source.addEventListener('load', () => {
callback(source.src)
}, {once: true})
}
}
preloadSource(soundsUrls.win, sounds.win)
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Grego's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord