正规体育投注官网

Search less. Build more. Use Stack Overflow for Teams at work to share knowledge with your colleagues. Free 30 day trial. Start your trial.

Questions tagged [javascript]

JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, object-oriented, prototype-based, weakly-typed, and interpreted language used for both client-side and server-side scripting. Its primary use is in the rendering and manipulation of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript).

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Updating the Amplify Redirect URI?

If we want to update the Amplify signout redirect URI in aws-exports how do we go about doing that? Can we just edit the file directly and run amplify push?
0
votes
0answers
5 views

d3js: resize two horizontal svgs to scale with window size

I'm creating a bar chart with a connected map that I'd like to scale in size to always be next to the bar plot [until the mobile size where the map should be under the bar plot] but do not know how to ...
0
votes
0answers
12 views

Trying to communicate between iFrame and Angular apps using Window.postMessage()

I'm trying to communicate between an iFrame (AngularJS) and an Angular 8 app. When the user clicks a link on the iFrame I open the Angular 8 app. The problem I'm having is that no matter if the user ...
0
votes
0answers
9 views

How to update nested mongo object

I am trying to make a report function for my app in the front end I make a put request : .put(`http://localhost:3000/api/posts/report`, { params: { ...
0
votes
0answers
20 views

Function to multiply checkbox/textbox values not working properly

My code works (applying a 10 or 15% discount to both the running CPC and total cost textboxes depending on which checkbox is selected) on the running CPC textbox, but only works one way on the total ...
0
votes
0answers
17 views

How do I keep my state from persisting across all browsers?

I'm trying to create a simple counter app in React that keeps track across all browsers and through refreshes. Essentially a counter that anyone on the internet can interact with and effect. I've ...
0
votes
0answers
7 views

FullCalendar 4.2 How to remove a CSS class from all events when an event is clicked?

I'm trying to remove a CSS class ('selected') from any/all events in FullCalendar 4.2 when an event is clicked. The idea being that only one event can be selected at a time. I was able to add the ...
0
votes
0answers
37 views

How to show input date in YYYY-MM-DD format [duplicate]

I want to show input date in YYYY-MM-DD format. I don't want to use moment.js like shown in the link enter link description here When I select date I want date to be shown as "YYYY-MM-DD" format. ...
0
votes
1answer
23 views

Why does Array.prototype.filter() throw an error in Magnolia JavaScript models?

I'm attempting to filter a FreeMarker list in a Magnolia JavaScript model using Array.prototype.filter(). List [#assign list = [1, 2, 3]] Model var Model = function() { this.filterList = ...
0
votes
1answer
29 views

ReactJS Working with API calls - data changes everytime I use a component

For my project I'm using data from http://api.randomuser.me/ which basically returns a random person every time you fetch the data. I've created a component (for the purpose of the question I've ...
-1
votes
1answer
20 views

How to pass elements from an array object to a new object

I have an array of objects and I would like to put these profiles from the array into a new object {} which is empty in the beginning. In the end I want to be able to use this object to get all of the ...
0
votes
0answers
5 views

What is the difference between gtag implementation and gtm implementations?

I'm new with the new API of google analytics, so I noticed now we also have GTM and as far as I understand is now we can use it to configure events and some other things using GTM tool directly ...
-1
votes
1answer
31 views

How can I use onClick on stateless component in React?

I want to use onClick on a stateless compoenent but it's reject an error like : Expected onClick listener to be a function, instead got a value of object type. I need to show and hide a component on ...
0
votes
0answers
6 views

d3.geo.mercator displays shifted right in Chrome

The map displays in the correct position in Firefox and Safari but in Chrome the g element is shifted right (by about 100 px) inside the svg element. After some help in Google forum I may have ...
0
votes
2answers
47 views

Output the index of map()

I want to output the index of each element using map(). const arr = [1,2,3,4,5,6,7,8,9]; const div = document.querySelector('.container') div.innerHTML = arr.map((index,val) => "<div ...

15 30 50 per page
1 2 3 4 5 129926