I have a quick question, My project is a quick 4 option answers, With radio buttons and pictures displayed, Now I have the pictures and the answers stored in a text file, That way my JS detects what it reads and then passes it to HTML, Now I use this function to pick a random line: Now How would I
Tag: html
Repeating function calls
When i change a frame size, like 3×3, 4×4, 5×5 etc. canvas draw n number of times constantly calculation in progression. I can’t figure out where the error might be. Can you help me fix this bug. I suspect that the problem is in the function call in the class, or in one of the functions. …
Slick Carousel – RTL function
I am facing an issue in Slick Carousel to work in both LTR and RTL. It works by default in LTR, but when I change the page to RTL I get a blank container. There is an option “rtl: true” but that would make it always working in rtl. I have tried to add a conditional function in JS file
Displaying data from a google sheet onto an html table
As the title says, I’m having some issues properly displaying data from a google spreadsheet onto a table in HTML. For context, what my program is supposed to do is: when the button ‘New Alert’ is pressed, a form pops up that allows for user input. After inputting all the information that th…
How to force JAVA app to open the page in specific browser
When I add microsoft-edge prefix to the URL(microsoft-edge:https://google.com) it opens the page in edge regardless what browser i am using to run the app. Is there an equivalent prefix for chrome and Firefox ? Thank you in advance Answer If you are using Java and you want to run a certain browser with a cert…
Increasing a progress bar by clicking a button
The idea is that the progress bar should increase when you click the button, for example, if you click on the button play the happiness should increase. Answer There are many issues and typos in your code. Clean programming will solve them all. You want a bar for which HTML has a specific tag for: <progres…
Multiple buttons with the same class name but only the first one works
I’m fairly new to JS and I currently working on the front-end of a very basic ecommerce page as a personal project. Here’s my question, all the “items” on the page are exact the same aside from their name. When I click on “buy”, I’d like to send the name of the respec…
How can I add a CSS class to the button that is clicked among multiple buttons using jQuery?
My motive is when someone will click on a particular button then will show the particular cards and will add a class named category_btn_active that clicked. Suppose Services will be clicked then the service cards will be shown. Here the filtering is working well, the problem is here $(this).addClass(‘ca…
Viewport affecting relative position of a nested element in resizable div
In this app I made, where I use Vue and OpenLayers to create animations, a img element with position: relative is placed at the top right corner of a canvas element with resize: both; overflow: auto;. The problem (CodePen) is said element is used to create an animation in a for loop where at each iteration th…
HTML5 videos don’t autoplay with tippy js
I use tippy.js and when I add a <video loop muted playsinline autoplay> inside a tooltip using allowHTML: true, the video won’t autoplay on chrome. It works on firefox and safari though. How can I achieve this? Here is my js: And here is my html: I tried to add but it doesn’t work eather. Th…