Questions tagged as 'javascript'

1
answer

Duplicate div without duplicating JavaScript

I need the following help: I was able to put together two codes that I found on the internet, and edited the formatting to my liking. I have a gallery with images and overflow horizontally, my code works, however I need to repeat the complete...
asked by 14.08.2018 / 23:56
1
answer

Change color of a marker circle - Google Maps v3

The map loads correctly, the markers in the addresses that come from the database, so far so good, then a check happens if it has a marker overlapping the other, inside a if , I want to change the color of the circle, exactly the values of stro...
asked by 14.08.2018 / 15:39
1
answer

How to make Tyscript read a JSON file that is on disk?

I have a TypeScript (NodeJS-10.6.0) code and need to create a variable that will retrieve the contents of a JSON file. I've tried to import the contents of the file in the following ways: 1. import { orderPayload } = require('../../events/...
asked by 14.08.2018 / 15:17
1
answer

Row and column javascript / Jquery

I need a pure or jquery script that runs a row and column structure. Example, if the user type 7 I have to print the following structure: x xx xxx xxxx xxxxx xxxxxx xxxxxxx I tried to use for but only runs the line.     
asked by 15.08.2018 / 17:14
1
answer

Repeated data in html (ANGULAR)

I have a * ngFor that fills my html, and this data is fetched from an API, then I use schedule to reload the data every time it gives seconds = 15. Only the data is being placed below the old one in HTML. HTML <p [class]="mainColor...
asked by 22.08.2018 / 17:29
1
answer

Adding float values from a Table

I'm trying to add the value of the fields of a table, but it's not working, with parseInt works, only it has values that are not going to be integers, so I put it as a float, but it does not perform the sum: let result = 0; let columns = $("#t...
asked by 22.08.2018 / 19:44
1
answer

Print BSON of MongoDB with several different structures

Hello, I'm making an application using Python (Flask) and MongoDB. In this application the user can assemble his page inserting Images, Text or youtube link. With the sequence you want. This first part I did and I'm recording in Mongo. The...
asked by 23.08.2018 / 00:03
1
answer

Search with multiple filters

I have this structure, how can I do it so that I can have a select that gives me higher or lower price options? this script it just lists the data by category, I do not know how to implement so that it has the possibility to sort the prices, in...
asked by 18.08.2018 / 16:45
1
answer

Multiple bootstrap modal calls

Good morning. When you click a button, this button calls a modal, whose call happens twice, and I can not understand why this call is coming twice as you can see in the following image. Callingthemodel<p><ahref="#" id="btnDistrib...
asked by 17.08.2018 / 17:53
1
answer

Use javascript to trigger modal ulkit css

According to the Ulkit css documentation for displaying a modal window we have: <button uk-toggle="target: #my-id" type="button"></button> <!-- This is the modal --> <div id="my-id" uk-modal> <div class="uk-...
asked by 18.08.2018 / 20:28