Questions tagged [javascript]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], etc.
2,196,531
questions
0
votes
0answers
3 views
Set Material UI Table cell background colour based on cell value using Javascript?
This may be a basic question, but i cant wrap my head around it. I am using React and JS and would like to change the background of the "Charge Left" cell based on the value of the cell. E.G....
0
votes
0answers
3 views
Snoowrap API reddit with node js
How to search all posts form subreddit in last 20 days. And how to search for one specific word 'help' inside that subreddit that appears in title and text?
This is my code I got tokens and everything ...
0
votes
0answers
3 views
How to acces image in json data and use it in a slider
I found this code for a slider with jQuery: https://codepen.io/doodlemarks/pen/aFcly and I want to use 4 images urls from this api https://api.thecatapi.com/v1/breeds in that slider. (Or make ...
-1
votes
0answers
5 views
How to add dropdown in a table for every row of image icons in jquery?
I have seen many dropdown adding solutions but they are not working as img tag is needed to show the dropdown. * Please do not downmark this question I need actually help from experts.* Thank you
0
votes
0answers
11 views
Get discord members roles by id
I am looking to get the id of every role a user has. the user being the message author in my case.
i've tried various things suggested such as let roles = message.author.roles.id = [] and message....
0
votes
0answers
7 views
Astronomy picture of the day Vue application
I am new to vue and I am trying to call the APOD (Astronomy picture of the day) from NASA so that I can display a new picture every day. I am making a new Vue component called Picture.vue where I do ...
1
vote
0answers
5 views
Error: while using devtool=“source-map” option in webpack config version 5
I am getting this error while using "source-map" as value to the devtool option in webpack configurations but while using "eval" it works. It could be a chance that asset can be ...
0
votes
1answer
12 views
How can I create a shorter version of my parallax?
Basically, I have created a parallax effect with 6 images with media queries for desktop and mobile. The images display fine in desktop mode. However, once I shrink my screen to mobile mode, some of ...
0
votes
1answer
28 views
Java Script random char with number
How to crate this random value
61b97fcbe7351853c5156c2fc18dbf42
ca6e4686bc6889f319331adba74a45e6
i don 't know exactly what is this kid of random but we use it to verify the email address like this
...
1
vote
2answers
9 views
Uncaught ReferenceError: cartRowContents is not defined
CODE
Here's the code for a function which is triggered when a person clicks on "Add to Cart" button. It creates a row inside the cart using the data from localStorage about the items ...
0
votes
0answers
14 views
How do I solve a problem with my DB connection and require?
I have an Express app that was created with express generator. I have a standard app.js file that exports app. I also have a standard www file that imports app and is a starting point of the ...
0
votes
0answers
8 views
PHP - Adding extra shipping fee if time is between 8pm and 8am
I have a food ordering script which I want to add If delivery time is between 8:00:00PM - 7:59:59AM to add an extra fee of $5 and if it is between 8:00:00 AM and 7:59:59 PM to keep delivery as is in ...
1
vote
0answers
6 views
How to return a string as JS code that can be used to graph points?
I am generating and graphing the Fourier series of a square wave by creating a string that contains the information needed to graph the Fourier series. I need the string to be returned as usable code (...
0
votes
0answers
5 views
How do you wrap an addEventListener within a matchMedia query?
I need to wrap an addEvent Listener within a matchMedia query but everything I've tried just won't work.
Basically, I am trying to achieve a result where, on mobile devices (1080px and below) the ...
0
votes
1answer
19 views
javascript output random line from input
Is there a way to chose a random line from an input or textarea with a javascript?
Currently I find a few results that seems to be working, but mostly use jquery and other additional languages. I'm ...