Thats a really nice site! I can’t help with simplifying as you’re code looks super neat to me (on the same project right now) but if you are looking for changes maybe a collapsable nav bar? At the moment If I reduce the width of my browser the bar takes up so much that you need to scroll to read the quote.
I’m very interested in the responsive text section and a massive thank you for commenting where you found the info! Best of luck with it.
In computing, a cache KASH,[1] is a hardware or software component that stores data so future requests for that data can be served faster; the data stored in a cache might be the result of an earlier computation, or the duplicate of data stored elsewhere. A cache hit occurs when the requested data can be found in a cache, while a cache miss occurs when it cannot. Cache hits are served by reading data from the cache,which is faster than recomputing a result or reading from a slower data store; thus, the more requests can be served from the cache, the faster the system performs.
/**
* Never called in the script: I use 'onclick' attribute in the HTML
* @param {string} element - The url of ???
*/
function changeImage(element) {
document.getElementById("imageReplace").src = element;
}
Thanks @Diego_Perez! I really appreciate your comments and will spend some time digesting the feedback and improving the code.
I’ve worked on the $bp and it’s doing much better, but how do you preview size options like you did? I’ve also fixed the data loading problem with each click - thanks again!
Also, on the onclick - I tried using addEventListener with each of the nav items, but it wouldn’t change after the first click. I’ll recreate it and share if I can’t get it to work.