Skip to main content

Questions tagged [javascript]

JavaScript is a versatile, high-level programming language. It is the programming language in all browsers.and can be used for back-end programming with node.js. Use this tag for questions regarding vanilla JavaScript; optionally tagged with an ECMAScript version. If you are using a preprocessor such as TypeScript please tag with that too.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Runtime agnostic WebSocket server

A runtime agnostic WebSocket server. Tested with node, deno, bun, ...
guest271314's user avatar
6 votes
3 answers
93 views

Function to reduce dead band when reading a pressure transducer that has calibration device under test information

When reading a pressure transducer, I'm currently using the following code to apply the "device under test data" from the calibration report. How can I determine which range segment of ...
Lenny Cunningham's user avatar
1 vote
1 answer
74 views

A Pacman clone in Javascript with binary heap and A*-based AI

rodde's Pacman clone I have this clone implementation of Pacman. It looks pretty much like the original, yet I had to impose some relaxations as I am not sufficiently masochistic to implement all the ...
coderodde's user avatar
  • 31k
2 votes
0 answers
85 views

openprocessing.org program - After screen tap, erase red circle, pause and lastly draw new white circle

I am new to programming using the site openprocessing.org. The code given does the following on my iPad: Draw a red circle Wait until I finger tap near the red circle’s center Erase the red circle ...
Will.Octagon.Gibson's user avatar
6 votes
2 answers
108 views

WebRTC Data Channel over WHATWG Streams

There's been talk about implementing WebRTC Data Channel over WHATWG Streams for a while https://github.com/w3c/webrtc-pc/issues/1732 https://github.com/w3c/webrtc-nv-use-cases/issues/44 https://...
guest271314's user avatar
4 votes
4 answers
203 views

JavaScript live validation for a registration form

I am working on a blogging application in Laravel 8. I have added "live validation" to the registration form with JavaScript. For password strength, I use Zxcvbn. The registration form ...
Razvan Zamfir's user avatar
2 votes
1 answer
82 views

Deploying a chatbot on Vercel

I developed a chatbot using the Telegraf.js framework. Although the latest version of Telegraf offers TypeScript support, I chose to use JavaScript. I followed a tutorial to deploy it and would like ...
Vilela's user avatar
  • 21
2 votes
1 answer
92 views

Locate \r\n\r\n in a HTTP POST request (Uint8Array)

The requirement is to split the headers from the request body, most efficiently. Possible approaches I have employed and/or considered Decode to text, match ...
guest271314's user avatar
2 votes
1 answer
170 views

Flash Card Program I Wrote in JavaScript

I really don't post a lot on here, but decided to share this because I thought first that it could be helpful and second that it could be improved. In my first versions, It was all javascript, like ...
Charles G's user avatar
2 votes
2 answers
97 views

State management patterns in vanilla JavaScript

I am trying to manage state in vanilla JavaScript—without using frameworks like React or Vue. I am also not using state management libraries. My requirements are: Reactivity Time Travel (Undo/Redo) ...
Ahmad Ismail's user avatar
1 vote
1 answer
158 views

FreeCodeCamp todo list

I'm writing JS for the FreeCodeCamp todo list; the corresponding HTML and CSS for this can be found on their page. I have made one edit to the HTML - the button with type "submit" has been ...
ApexPolenta's user avatar
5 votes
1 answer
52 views

Generate Javascript call graph in Graphviz DOT language

I use the following code to create a call graph from javascript file(s). I generate the output in Graphviz DOT language in order to create visualizations of that graph using the Graphviz command line. ...
Ahmad Ismail's user avatar
3 votes
1 answer
215 views

Image preview and delete for Laravel blog application

I am working on a blogging application in Laravel 8. I have put together a way to preview and remove the main article image. In the ArticleController.php controller,...
Razvan Zamfir's user avatar
3 votes
1 answer
244 views

HTML Editor: Online HTML Editor with Real-Time Preview (version 6)

Overview HTML Editor is a web-based HTML editor designed for web developers, designers, and learners. It offers a lightweight, minimalist environment for writing and previewing HTML, CSS, and ...
Mori's user avatar
  • 197
3 votes
1 answer
163 views

Bulk Text Replacer

I have created a simple text editor with a "replace all" feature. It's meant to be part of a larger project, so it needs to be robust and work reliably across various scenarios. Please ...
Mori's user avatar
  • 197

15 30 50 per page
1
2 3 4 5
628