I’m trying to create a reviews area within my website, to display some clients reviews I gathered + their logo. For now, I’ve managed to change both (review+logo) every 5 seconds :)! it works! What I’m trying to achieve now is to fade/out and fade/in the next review + logo. I’m not sure where should I search about it, can
Tag: css
Showing the line numbers in in Django project using Pygments
I’m using the Pygments package in my Django project. When I try to render the code snippet in my template, it renders the whole data as follows: Template: Final rendered HTML: It actually works with no pain. The entire code block is being highlighted properly. The thing is that I want to show the line number as well. Should I
Is there a way to set the first element in this .map method to a default class on load?
I am currently rendering three buttons using a .map method in React. The buttons are being pulled from an array in a useState. When clicked, the buttons have a .active class added to them. How can I set the first element to have the .active class when the page is first loaded? Current Code: https://codesandbox.io/s/recursing-lake-oetxj?file=/src/App.js Tried setting the first activeObject
how to scroll years using pikaday?
I am using pikaday.min.js and pikaday.min.css in my project. The problem is with the years. When I click the year, the options are the chosen year -/+ 10 years, but there is no scroll option when the grey box pops up. For ex. if I want to select year 2002 in the example below, I must select years <2012 in
What is the quickest way to change the classes of multiple elements?
I want to change the classes of a group of elements into other classes. The current classes of the elements are all different and so are the classes I want to change their current classes in to. Currently, the best idea I have is to check the current class of the element, and then change it according to its class,
Make HTML Content Clickable Over Three.js Content
I am making an animation with moving objects in Three.js. In this animation, I create a text bubble when an object is clicked, and it has an “X” button to close it. However, if the x button overlays a 3D Object from Three.js, then the button is ignored entirely and the 3D Object gets clicked instead. How can I avoid
Cant override the color with javascript
i want to make the color of the number green if its more than zero to make it green and want to be red when its below zero but i cant do it i dont get why can anyone explain Answer The order in your code is not correct. You must get an element after it is added to DOM.
Dropdown on click doing nothing
I am just starting JS, so this may be a stupid question. I want to make a dropdown, where if you pick one option the related paragraph would be visible. I didn’t really know how to start this so I created the cars function to make the “e38value” paragraph visible when clicking the e38 button, but nothing happens when I
Jquery Show just one Item by the same class after click-event
i am new in scripting Jquery/Javascript and actually i’ve some struggle. How can i show one item by the same class without affect the other items? My code: Thanks a lot. Answer The first line will hide all of them, which may be what you want to do (if you want to collapse all and expand the clicked one, for
Vanilla JavaScript: How to dynamically create a button that shows up after user has selected some text and then do something with that text?
I’m working on a little project in which users can upload their .docx files and then read those files (and files from other users) right in the app. For this purpose I have extracted text from docx and displayed it in a div in separate view and html page. Now, I would like to give my users an option to