I hope this isn’t breaking any rules here. I’ve been struggling with a personal web project for the past week, and I’m hoping some smart people here could get me pointed in the right direction.

I’ve already posted a full explanation in another community here, with some informational comments.

Long story slightly shorter… trying to get a website that is great for scoring a tennis match, and making it work offline so I can have it run locally on an offline machine. For some reason that I can’t figure out, the js refuses to work as expected.

First, I thought there may have been a CORS issue. And, the js is checking the protocol and changing it from “file” to “http” (see comments in like above). I worked past this issue, but it’s still not really working.

Now, I can see the first action of the “score” function is working (it logs to console), but nothing after that does anything at all, and I can’t figure it out!

Edit: A very kind person (what’s the lemmy equivalent for “redditor”?) offered some insight through a DM that got me on the right track! I won’t put all the details here because it could be considered borderline “unethical” if the wrong person was trying to follow my path. Thanks to that person and to the community! Ive learned a lot in the past weeks.

  • defunct account
    link
    fedilink
    21 year ago

    If you don’t mind me asking, why this scorekeeper? The fact that it isn’t open-source leaves me hesitant to dig around in the code.

    • @captsneezeOP
      link
      31 year ago

      I don’t mind. I’m locked into this one because it functions well, handling all of the idiosyncrasies that can be involved in tennis scoring (3 vs 5 game sets, tie breaks, etc.).

      It started as “I could use this for table tennis scoring at our cabin, it can’t be the at hard…” (we use tennis scoring instead of ping pong scoring because we’re all tennis players), but now I just feel like it’s a challenge I want to figure out.