thanks Paulie_D and AmruthPillai. I was able to find a solution that worked, although it is far more complex than Paulie_D’s version, will I will use some of :-).
I also totally forgot about using codepen.io. likely because my code wasn’t working, but i will in future. A good learning experience. so thanks all.