So basically, I’m trying to create multiple slideshows on the page with dots to switch between the slides (because I’ve already tried the arrow type button and it doesn’t workout for me idk), and the issue is that when I use more than one slideshow the dots on the first one either stop worki…
How to move ellipse filled with an image to mask similar background?
I am a super early user of coding from Italy. I came up with an idea to promote a company logo on their website and I almost reached the goal so I am sharing this problem. The idea is to obtain a sort of clipping mask effect when the mouse/cursor move on the image I’ve made so far a code
Modal not opening when I click on button
I am trying to display data in the Modal when I click the button. This is the HTML code I wrote everything is looking fine but it won’t open the Modal when I click the button. If I put an alert inside the script it popup when I click the button but anything else like the modal is not working.
Regex for hashtags tree takes too long to execute
In our app we have topics which user can create, and each topic must have it’s own hashtag (or hashtags hierarchy). We have this kinda Regex for validation: What i need is for user to be able to create hashtags which have structure like this: (#) symbol Text in lowercase Optional slash (/) followed by l…
How do I use websockets with gjs(Gnome JavaScript)?
I am trying to create a simple application in GJS that sends desktop notifications based on json received via WebSocket. What is the easiest way to use WebSocket in GJS? Thanks in advance. Answer In GJS you’ll probably have to use libsoup for this. The GJS documentation is at https://gjs-docs.gnome.org/…
MYR Currency Rounding
Looking for help in rounding the money to the nearest 0.05 in js language. Input & Expected Output: From: https://www.bnm.gov.my/misc/-/asset_publisher/2BOPbOBfILtL/content/frequently-asked-questions-faqs-on-rounding-mechanism Answer You could take an offset and take a multiple floored value. If you need …
How to render icon based on props using react and typescript?
I’m using react-feather to render icons in a component. I’m able to get it to import a static icon by hard coding it in. But how do I make it render the icon based on what has been passed to it in the IconLeft.icon props? Answer You can use cloneElement to dynamically render any component you want…
Breaking a div without content into a new line (no text)
I am taking typed characters from input and depending what it is styling them differently and rendering in a container with different colour and shape. This what I am trying to achieve is when user types a space in the input, the line breaks, so you have 2 divs in one line, 7 divs in second line and 5 divs
JavaScript not printing out values
So I’m trying to print all values of x,y,z from this equation x − 2y + 3z = 0 (value of between 1-5, the value of y is between 6-10, and z is between 3-7) on HTML through javascript but the Only displays the maximum value of x, y, z. instead of any possible solution. So I’m unsure whether there
How should I configure workbox to support offline caching of third party requests?
I am currently using the workbox-build module, specifically the generateSW mode, to generate my service worker scripts to deploy my web application to Netlify. My site is a static site. Here is my worker-config.js: This configuration works well for online use. However, third party requests to certain assets (…