Posts by Gabriel Polidoro • 112 points
12 posts
-
1
votes2
answers283
viewsQ: Array ordering based on the order of another array
Next, I have two vectors each with a numerical sequence. Let’s call them Array1 and Array2. The values are below... Array1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; Array2 = [7, 6, 3, 9, 4, 5, 1, 10, 8,…
-
0
votes1
answer648
viewsA: Trace destination from address or zip code using Google Maps API
To run this. You need 3 Google Apis: Javascript, Geocoding and Directions. Basically, what you need to do is do the geocoding request process through the zip code or the address and, if it exists.…
-
1
votes4
answers12426
viewsA: How do I detect a mobile device in Javascript?
To check if a user is accessing from a mobile device, use the condition below: if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { // Seu código } Then…
-
-2
votes4
answers18311
viewsA: How to flip (mirror/flip) an image
Boy, what you’re trying to do is called image mirroring. CSS has this feature, as Miguel said. But there are several image editors out there that mirror images and that I, in particular, choose to…
-
1
votes2
answers2376
viewsA: Insert button to reach a map
If you use HTML5 in your code, it’s a very simple task that you need to perform. First of all, it is necessary to obtain the location of the company. It will be easily obtained through the following…
google-mapsanswered Gabriel Polidoro 112 -
1
votes1
answer676
viewsA: Compare if there is a point on a given route
Google Maps does not provide the option to see how many tolls there are on a route. Unlike various Google Maps conditions, you cannot enter within a code for it to calculate the amount of x…
-
1
votes1
answer239
viewsA: Grid (col-Xs) bootstrap 4: 2 or 3 columns?
I speak from experience that often people will want something more minimalist. Both 2 columns and 3 are minimalist, because it does not "fill" information in a single row. In my opinion, I prefer it…
twitter-bootstrapanswered Gabriel Polidoro 112 -
0
votes2
answers130
viewsA: Google Maps Key
In fact, creating a command to load a script is a bit complicated and can cost processing. In my scripts, I always call the Google Maps API, followed by the commands async and defer. These commands…
-
0
votes0
answers208
viewsQ: Problem - Add Google Maps bookmarks from JSON
I have a problem that is the following: I have to make a call from a JSON that contains latitude and longitude of several locations and then add them to a Google Maps map as markers. I can upload…
-
0
votes3
answers404
viewsA: jQuery - How to filter a JSON file from an external link?
With the help of jlHertel, I was able to make a Javascript that works by name only. Here it is (it got a little big, but it’s commented and it’s very understandable): $(document).ready(function () {…
-
1
votes3
answers404
viewsQ: jQuery - How to filter a JSON file from an external link?
I have a headache that is: I need to make a filter by names of the following JSON (summarized)... [ { "index": 0, "age": 25, "eyeColor": "green", "name": "Peck Murphy", "gender": "male", "company":…
-
2
votes1
answer190
viewsQ: How to show connection errors in Htmls with a JSON?
I was developing an HTML that accessed a JSON file. When, out of nowhere, the internet fell off my house and I ended up thinking about this question: Is there a way to catch a connection error and…