3
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 15 Jul 2023
3 points (100.0% liked)
Web Development
3430 readers
2 users here now
Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development
What is web development?
Web development is the process of creating websites or web applications
Rules/Guidelines
- Follow the programming.dev site rules
- Keep content related to web development
- If what you're posting relates to one of the related communities, crosspost it into there to help them grow
- If youre posting an article older than two years put the year it was made in brackets after the title
Related Communities
- !html@programming.dev
- !css@programming.dev
- !uiux@programming.dev
- !a11y@programming.dev
- !react@programming.dev
- !vuejs@programming.dev
- !webassembly@programming.dev
- !javascript@programming.dev
- !typescript@programming.dev
- !nodejs@programming.dev
- !astro@programming.dev
- !angular@programming.dev
- !tauri@programming.dev
- !sveltejs@programming.dev
- !pwa@programming.dev
Wormhole
Some webdev blogs
Not sure what to post in here? Want some web development related things to read?
Heres a couple blogs that have web development related content
- https://frontendfoc.us/ - [RSS]
- https://wesbos.com/blog
- https://davidwalsh.name/ - [RSS]
- https://www.nngroup.com/articles/
- https://sia.codes/posts/ - [RSS]
- https://www.smashingmagazine.com/ - [RSS]
- https://www.bennadel.com/ - [RSS]
- https://web.dev/ - [RSS]
founded 1 year ago
MODERATORS
Update: I’ve been banging my head against this for another day and have made a bit of progress. I think part of my original problem has to do with CORS issues. I’ve gotten around this by running a local server and navigating to the local html file via http (http://local host:8080/tennis.html) instead of file (file:///drive/path/tennis.html).
After this, I was running into an error with https. I believed something in the js was forcing redirection to https protocol. I “fixed” this by changing the value of _0x15ea[1] from “https:” to “http:” in the tennis.js file.
Now, I am able to get the locally saved page to load in a browser, but none of the actions that normally update the score on the scoreboard are working. For example, when loaded from the original website (scorching.com), clicking on the game score (white boxes on right) will increase that player’s score by 1. Likewise, the “z” and “x” keyboard keys will increase the player 1 and 2 scores, respectively. (In case anyone isn’t familiar with tennis scoring, the game score numbers advance through 15, 30, 40…, so don’t be surprised that they aren’t going 1, 2, 3…
The other things on the page all seem to be working. Just the scoring isn’t working,~~or the inputs to activate scoring changes aren’t being recognized.~~ (In the browser’s console I can see “scores 1” or “scores 2” being logged, which is the first instruction in the “scores” function, so I know the inputs are being recognized.) Appreciate any thoughts that might help me.