maindrive Posted February 21 Posted February 21 (edited) Hello. I've had a motorcycle gearing calculator on my website for years, but just recently discovered that it isn't working anymore...even though I haven't touched it. The calculator normally accepts 4 input values and then automatically calculates the overall gear ratio. Oddly enough, when I run the code on online HTML testers, it still works great on some testers (but not all). Any ideas? I'm just a motorcycle guy, and a lot of this is over my head. https://www.maindrivecycle.com/gearing Thanks in advance, Cory Edited February 21 by maindrive added URL
Solution creedon Posted February 21 Solution Posted February 21 Someone has removed jQuery which the calculator code depends on. Add the following to Website > Pages > Website Tools > Code Injection > HEADER. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> This is the latest version of jQuery. It is possible that the calculator code depended on features that were in an older version of jQuery. If the calculator still doesn't work this might be the reason. Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
maindrive Posted February 21 Author Posted February 21 creedon, that absolutely fixed it! I can't thank you enough for taking the time to assist me. You rock, sir! zebi824 and creedon 1 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment