I have a code sample that basically tries to get the link i.e. a element within a li element using querySelector with 4 OR conditions. The sample is at QuerySelector sample. The problem is that when I use 4 OR conditions then I get nothing returned for clickedLink1, but when I use only the last 2 OR condition…
Tag: html
javascript InnerHTML adding cards only one time
I’m trying to add a bootstrap card inside a div called [itemscontainer] using javascript by document.getElementById(“itemscontainer”).innerHTML so i want the cards to be inserted inside the itemscontainer only one time like this :- but the problem is the items cards keeps reapet them salves …
change the alpha for the background color of the canvas
Hi guy i am trying to clone colol wheel picker from adobe color wheel, i am having a problem with changing the alpha for the color wheel, the code i used to generate the color wheel is referenced from here.Below is the code i use to change the alpha for the background of the canvas(default alpha is 255), but …
Javascript template called inside html
I have the below code to show a timeline modal. It’s called on click using: How can I show it on my page as part of the page, not opening as a modal? I want to be always visible on that page instead of clicking on a menu to see it Any help will be much appreciated as pretty much
Why it doesn’t show the bluish in blue majority?
So I was creating an app in which I would click on a button and it would generate a color with its details in JavaScript (vanilla), details are given in a <h1> tag. One of the details is telling if the thing is red, green or blue majority. The website functions properly, but there’s a bug. When th…
Js .classList.add() is not working properly
I’m in a procces of creaing simple movie site. cruntly working there home page. in the home page there is a carosol. in CSS I hidden the visibility of all slide. what I’m going do is in JS creat a array for all silds and switch between silds when I clicked the arrow icon. as a first stem I want
After clicking button, alert is not showing up
I am doing a project on paper-rock-scissor that has UI. So, I have four buttons, Start game, rock, paper and scissor. I want if I click on the Start game button, an alert (“Please choose rock, paper, or scissor”) will pop-up. Right now if I click on the Start game. There’s nothing happening.…
How can I disable my click/drag selection box after one use?
I was wondering if anyone could help provide some input as to how I could disable the mousedown function after one instance of its use. The way I want it to work is so that it only works when enabled = true, and I change its value throughout the code in order to make it false by the end of
How do I sort the movies according to their star ratings and filter the movies with lower rating than the specified threshold
I want to sort the movies according to their star ratings and filter the movies with lower rating than the specified threshold. I want to sort movie and TV information in descending order by stars, search by each ID, and display data.json format and socre. However, I get a’module’ object does not …
class is active but won’t highlight the corresponding menu item
I don’t know why I’m not able to make the menu item to the corresponding active class highlighted. The active classes are working fine, they pop up and disappear as they should and in the appropriate places. But I don’t know why it just won’t show up on the menu bar. I would like it so…