Skip to content

Category: Questions

Flip Card Component in VueJs 3

I want to achieve a Flip card component like the one here by developing a generic Vue Component, but I’m confused about how can I assign a whole face component (front/back) as a back or front face of the card, and how can I lock the flipping property (as an option), an example of the face (front/back) i…

How to trigger wheel event on mobile

I’m trying to implement a new feature on my site, namely moving between form pages using the mouse wheel. I tried to use event “wheel” which perfectly works on desktop, however does not trigger on mobile (iphone – Safari and Chrome). I assume the mobile APIs of these browsers just do n…

Extend JSON object by multiple JSON levels

trying to extend existing empty JSON object. After first 2 simple extends I will get {size: 10, from: 0}. But when trying $.extend function with multiple level JSON I have no success. But getting “Uncaught SyntaxError: missing ) after argument list” error. I believe overlooked something simple but…

How to delete a file in NX generator

According to https://nx.dev/recipes/generators/creating-files Generators provide an API for managing files within your workspace. You can use generators to do things such as create, update, move, and delete files. it’s possible to delete files in an NX generator. I have the following code that generates…

Change the background-color on a button after clicking

Hello i write on a rating button and i wanted to change the background color from the button after i clicked it but my code does nothing. Answer const btn = document.querySelector(‘.btn’); is only targeting the first button. You need to use querySelectorAll to select all buttons and add event list…

Trigger for input is not invoking in jquery

I have a small snippet that changes the textbox size based on its input I want to use jquery for all functions as much as possible but when I try with Its not invoking. Answer As mentioned in my comment, you were listening for the native input event instead of jQuery’s event system, so when you used tri…

I want slider autoplay

I want the slider in the example to play automatically. I want to add autoplay feature to the code in the example. Answer Its very easy you just need to add autoplay property in your code. Please check this code. I hope you will get your answer