I’m really struggling with a basic javascript problem and I can’t find the right way to Google help. I’ve been practicing Javascript, but thus far I’ve mainly been just following prompts, not coding my own ideas. I genuinely tried to solve this problem on my own for several hours. This…
jQuery selector for all in a div if class includes a certain string
I would like to be able to select both of these with a single css selector: Ideally, something like “class includes ‘foo’” to capture both those images at once. I know i can use .children().last().remove() twice but I’d like to make sure my code is a bit more dynamic than that. EDIT: r…
Multiple conditions for result filter
I have an array of objects that I am filtering through based on a query. If the query matches a title inside the array of objects I return it. These words if I just search on a word like “xbox”, however, if I search “xbox controller” it returns nothing. I was thinking of splitting req.…
drawStar() with mouse inside canvas mouse up mouse down
What am I missing? The drawCircle and DrawPolygon (it is located in codepen https://codepen.io/mancod/pen/oNYdrVL work fine. I am still very new to all this still, and beat myself up as nothing in life should be this messy. A star is a circle as is a polygon. I get that the star has an inner and outer radius,…
I can`t read the data after I update my rules on firestore (React Native)
the rules I set is allow read: if resource.data.uid == request.auth.uid; how I call it is like this How can i fix it? firebase rule image for the data https://1drv.ms/u/s!Ag7uBMx2FuEijuILje2xJIv8RawcFA?e=Gy6jeC Answer Rules don’t filter data on their own. Instead they merely ensure that the data that is…
Upload to Azure Blob via javascript upload ticket
I am building an upload tool for our website. One of the requirements is the ability to store large files into specific azure blobs. I am running into limitations of Azure Web Apps being able to handle this on the server side. Is there a way out there to create an upload ticket (similar to vimeo) that our ser…
Vue 3 Event Bus with Composition API
I have setup mitt and trying to dispatch event to another component but I am having hard time because in the setup() method it doesn’t have this for accessing app instance. Here is what I tried: And in the component, I want to dispatch an event As this doesn’t exist, I can’t access the .emit…
How can I get the URL of the current tab from a Microsoft Edge extension
I’m experimenting with edge extensions , I’m trying to make one that reads the URL of the current tab, removes the string ‘%0A’ and then redirects to the cleaned URL, but I dont know how to read the current tab URL, I found how to do it in chrome: but It doesnt seem to work for Edge, I…
Nested Arrays and returning non-labeled values
I’ve got an API that returns the following: I’m able to get the second metric using the following three lines of code: &value would equal 28.24. Is there a way to combine these into one line of code? I’m looking for something like this: &value=jsonObj.data.values[0].[1] The issue is …
React Router Linking using
I am using React Router. I want when the user clicks on the button, it directs them to the page (endpoint) /form which has the UserForm component. Here is my code wrapping the button: Answer